Skip to content

Commit

Permalink
Merge pull request #141 from primer/release-v0.0.15
Browse files Browse the repository at this point in the history
release v0.0.15
  • Loading branch information
joelhawksley authored Nov 20, 2020
2 parents 84d7549 + e5ca41c commit 5e4ca5f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## main

## 0.0.15

* Add ability to disable `limit` on Counter.

*Christian Giordano*

* Rename `v` system argument to `visibility`.

*Joel Hawksley*
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
primer_view_components (0.0.14)
primer_view_components (0.0.15)
octicons_helper (>= 9.0.0, < 12.0.0)
rails (>= 5.0.0, < 7.0)
view_component (>= 2.0.0, < 3.0)
Expand Down
2 changes: 1 addition & 1 deletion docs/content/components/counter.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Use Primer::CounterComponent to add a count to navigational elements and buttons
| :- | :- | :- | :- |
| `count` | `Integer, Float::INFINITY, nil` | `0` | The number to be displayed (e.x. # of issues, pull requests) |
| `scheme` | `Symbol` | `:default` | Color scheme. One of `SCHEME_MAPPINGS.keys`. |
| `limit` | `Integer, nil` | `5_000` | Maximum value to display, pass nil if you don't want any limit. (e.x. if count == 6,000 and limit == 5000, counter will display "5,000+") |
| `limit` | `Integer, nil` | `5_000` | Maximum value to display. Pass `nil` for no limit. (e.x. if `count` == 6,000 and `limit` == 5000, counter will display "5,000+") |
| `hide_if_zero` | `Boolean` | `false` | If true, a `hidden` attribute is added to the counter if `count` is zero. |
| `text` | `String` | `""` | Text to display instead of count. |
| `round` | `Boolean` | `false` | Whether to apply our standard rounding logic to value. |
Expand Down
2 changes: 1 addition & 1 deletion lib/primer/view_components/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module ViewComponents
module VERSION
MAJOR = 0
MINOR = 0
PATCH = 14
PATCH = 15

STRING = [MAJOR, MINOR, PATCH].join(".")
end
Expand Down

1 comment on commit 5e4ca5f

@vercel
Copy link

@vercel vercel bot commented on 5e4ca5f Nov 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.