From e5ca41c5ccf044db794a47ac21497be206839a96 Mon Sep 17 00:00:00 2001 From: Joel Hawksley Date: Fri, 20 Nov 2020 09:56:49 -0700 Subject: [PATCH] release v0.0.15 --- CHANGELOG.md | 6 ++++++ Gemfile.lock | 2 +- docs/content/components/counter.md | 2 +- lib/primer/view_components/version.rb | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b1fd10e5e..2fc9c44ac7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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* diff --git a/Gemfile.lock b/Gemfile.lock index 99d539b1bf..6067d803cc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) diff --git a/docs/content/components/counter.md b/docs/content/components/counter.md index d3dad98898..9d3c655527 100644 --- a/docs/content/components/counter.md +++ b/docs/content/components/counter.md @@ -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. | diff --git a/lib/primer/view_components/version.rb b/lib/primer/view_components/version.rb index cc99dadf5d..514333cb34 100644 --- a/lib/primer/view_components/version.rb +++ b/lib/primer/view_components/version.rb @@ -5,7 +5,7 @@ module ViewComponents module VERSION MAJOR = 0 MINOR = 0 - PATCH = 14 + PATCH = 15 STRING = [MAJOR, MINOR, PATCH].join(".") end