volt-pagination 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e65eb7e52ea0fb7c9a1a9ee3a4aa11ef971f0e2
4
- data.tar.gz: fbb222ee9d8ff831dc8988a2ff2c5e2873acb832
3
+ metadata.gz: c5435b773982080114f5e7ab7fd5ac6daad4e6aa
4
+ data.tar.gz: f9ce380a24897e1d1d05683987b2f4a065e4e24f
5
5
  SHA512:
6
- metadata.gz: 186400610afcc52340bfe7e0206ad5fd31d024f5300620360f7002417950876fda89cb0f8a23a9ef8093eb548db5fd180916b2ad0d2799e00563a5403353d041
7
- data.tar.gz: 8f7783af49ef7aa712292328dc2223b04df0a47c879f7f5889dd2206fafb443165fb27f3fbb53cd7a16508be631bba678dfd563ec360141562d80f84596b9644
6
+ metadata.gz: 28ddb51b61dd566d10ad2f1e1aff6912c26db70595aefeebbe5979db0753c78c571c9f48b496cbbf3de829d2f85cf77954835a263d6b0fb858d142aad23d616d
7
+ data.tar.gz: 0c59e7571e224029e11fa0eac2759ba9a7f463c5f17b1a3ad2f1ee8c4dcb448f8ee44c13c0b50aa2c69706db969bdfe811873660499b8e14c5d3af0c49aa0879
data/README.md CHANGED
@@ -37,4 +37,4 @@ The pagination tag supports the following options:
37
37
  - per_page (default: 10): how many items per page.
38
38
  - page (default: ```params._page```): the number of the current page (starting with 1)
39
39
  - window (default: 5): the number of pages to show around the current page
40
- - outer_window: (default: 0): the number of pages to show at the start and end of the pager.
40
+ - outer_window: (default: 1): the number of pages to show at the start and end of the pager.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -51,11 +51,11 @@ module Pagination
51
51
  end
52
52
 
53
53
  def window
54
- attrs.window.or(5)
54
+ attrs.window.or(5).to_i
55
55
  end
56
56
 
57
57
  def outer_window
58
- attrs.outer_window.or(0)
58
+ attrs.outer_window.or(1).to_i
59
59
  end
60
60
 
61
61
  def per_page
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt-pagination
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout