geared_pagination 1.1.0 → 1.1.1
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 +4 -4
- data/Gemfile.lock +4 -2
- data/geared_pagination.gemspec +1 -1
- data/lib/geared_pagination/cursor.rb +2 -0
- data/test/cursor_test.rb +5 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 750005ac1e001628bcb41a5fc7ff8c3816882df33785ff6038833d17ea9ea895
|
4
|
+
data.tar.gz: 983b5d46b9cb9174b1ced7931a0015b2d202f7f3bd578d6fd0172878ba57947a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e66422eaa4008173bef8c798283f9b56a73853e88453b7d12fee2a6f5e0d0c88af0ab145fd83972bd41af017cafe35c4e306750aa75cb556ffd2bb51c465f208
|
7
|
+
data.tar.gz: 5e76d1a248cf859854b3c53eaaadcba3d14f11e4dd14dafbbca2cef30eeb1f6d791b35db386a9131eb2b9f0e4671921dcbd6171005da0f4d9dca90e0bbe9b453
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
geared_pagination (1.1.
|
4
|
+
geared_pagination (1.1.1)
|
5
5
|
activesupport (>= 5.0)
|
6
6
|
addressable (>= 2.5.0)
|
7
7
|
|
@@ -82,7 +82,9 @@ GEM
|
|
82
82
|
marcel (0.3.3)
|
83
83
|
mimemagic (~> 0.3.2)
|
84
84
|
method_source (1.0.0)
|
85
|
-
mimemagic (0.3.
|
85
|
+
mimemagic (0.3.10)
|
86
|
+
nokogiri (~> 1)
|
87
|
+
rake
|
86
88
|
mini_mime (1.0.2)
|
87
89
|
mini_portile2 (2.4.0)
|
88
90
|
minitest (5.14.0)
|
data/geared_pagination.gemspec
CHANGED
data/test/cursor_test.rb
CHANGED
@@ -7,6 +7,11 @@ class GearedPagination::CursorTest < ActiveSupport::TestCase
|
|
7
7
|
assert_equal 1, GearedPagination::Cursor.from_param(" ").page_number
|
8
8
|
end
|
9
9
|
|
10
|
+
test "from an invalid param" do
|
11
|
+
assert_equal 1, GearedPagination::Cursor.from_param("aGVsbG8K").page_number
|
12
|
+
assert_equal 1, GearedPagination::Cursor.from_param("\o/ not base64").page_number
|
13
|
+
end
|
14
|
+
|
10
15
|
test "decode" do
|
11
16
|
assert_equal 1, GearedPagination::Cursor.decode("eyJwYWdlX251bWJlciI6MX0=").page_number
|
12
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geared_pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.12'
|
55
|
-
description:
|
55
|
+
description:
|
56
56
|
email: david@basecamp.com
|
57
57
|
executables: []
|
58
58
|
extensions: []
|
@@ -162,7 +162,7 @@ homepage: https://github.com/basecamp/geared_pagination
|
|
162
162
|
licenses:
|
163
163
|
- MIT
|
164
164
|
metadata: {}
|
165
|
-
post_install_message:
|
165
|
+
post_install_message:
|
166
166
|
rdoc_options: []
|
167
167
|
require_paths:
|
168
168
|
- lib
|
@@ -177,8 +177,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
177
|
- !ruby/object:Gem::Version
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
|
-
rubygems_version: 3.
|
181
|
-
signing_key:
|
180
|
+
rubygems_version: 3.1.4
|
181
|
+
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Paginate Active Record sets at variable speeds
|
184
184
|
test_files:
|