jsom-pagination 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -2
- data/Gemfile.lock +13 -12
- data/jsom-pagination.gemspec +1 -0
- data/lib/jsom/pagination/links.rb +4 -3
- data/lib/jsom/pagination/version.rb +1 -1
- metadata +26 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9683eaf9e2075be921220150497c259f70a86364bed959b44439baa69d967434
|
4
|
+
data.tar.gz: b0d4807a2c199739dea43e1cb381b8439621c838561939f14fff091d1c535e1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 870e1557784ce98ef46bc8f7d7e86b84ebc3bc7ad04d74de49963160ceb10046ef21b4ce60f9d7573582ed2282819e1246304f0cdbe7b5e73c79649365bf3dbb
|
7
|
+
data.tar.gz: 4c08dcc05cf729b7c53a760ae7e1e28aabe25690bc671858ec54502034d9c96f3cbbcaf7a7321cc7bb328937a4aeffc4fdb3f0b74b367b65b6f936c681dcd122
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jsom-pagination (0.1.
|
4
|
+
jsom-pagination (0.1.3)
|
5
|
+
addressable (~> 2.3, >= 2.3.7)
|
5
6
|
dry-struct (~> 1.3.0)
|
6
7
|
pagy (~> 3.8.3)
|
7
8
|
rack
|
@@ -9,38 +10,38 @@ PATH
|
|
9
10
|
GEM
|
10
11
|
remote: https://rubygems.org/
|
11
12
|
specs:
|
12
|
-
|
13
|
+
addressable (2.7.0)
|
14
|
+
public_suffix (>= 2.0.2, < 5.0)
|
15
|
+
concurrent-ruby (1.1.8)
|
13
16
|
diff-lcs (1.4.4)
|
14
17
|
docile (1.3.2)
|
15
|
-
dry-configurable (0.
|
18
|
+
dry-configurable (0.12.1)
|
16
19
|
concurrent-ruby (~> 1.0)
|
17
|
-
dry-core (~> 0.
|
18
|
-
dry-equalizer (~> 0.2)
|
20
|
+
dry-core (~> 0.5, >= 0.5.0)
|
19
21
|
dry-container (0.7.2)
|
20
22
|
concurrent-ruby (~> 1.0)
|
21
23
|
dry-configurable (~> 0.1, >= 0.1.3)
|
22
|
-
dry-core (0.
|
24
|
+
dry-core (0.5.0)
|
23
25
|
concurrent-ruby (~> 1.0)
|
24
26
|
dry-equalizer (0.3.0)
|
25
27
|
dry-inflector (0.2.0)
|
26
|
-
dry-logic (1.0
|
28
|
+
dry-logic (1.2.0)
|
27
29
|
concurrent-ruby (~> 1.0)
|
28
|
-
dry-core (~> 0.
|
29
|
-
dry-equalizer (~> 0.2)
|
30
|
+
dry-core (~> 0.5, >= 0.5)
|
30
31
|
dry-struct (1.3.0)
|
31
32
|
dry-core (~> 0.4, >= 0.4.4)
|
32
33
|
dry-equalizer (~> 0.3)
|
33
34
|
dry-types (~> 1.3)
|
34
35
|
ice_nine (~> 0.11)
|
35
|
-
dry-types (1.
|
36
|
+
dry-types (1.5.1)
|
36
37
|
concurrent-ruby (~> 1.0)
|
37
38
|
dry-container (~> 0.3)
|
38
|
-
dry-core (~> 0.
|
39
|
-
dry-equalizer (~> 0.3)
|
39
|
+
dry-core (~> 0.5, >= 0.5)
|
40
40
|
dry-inflector (~> 0.1, >= 0.1.2)
|
41
41
|
dry-logic (~> 1.0, >= 1.0.2)
|
42
42
|
ice_nine (0.11.2)
|
43
43
|
pagy (3.8.3)
|
44
|
+
public_suffix (4.0.6)
|
44
45
|
rack (2.2.3)
|
45
46
|
rake (12.3.3)
|
46
47
|
rspec (3.9.0)
|
data/jsom-pagination.gemspec
CHANGED
@@ -40,6 +40,7 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_dependency 'dry-struct', '~>1.3.0'
|
41
41
|
spec.add_dependency 'pagy', '~>3.8.3'
|
42
42
|
spec.add_dependency 'rack'
|
43
|
+
spec.add_dependency 'addressable', '~> 2.3', '>= 2.3.7'
|
43
44
|
|
44
45
|
spec.add_development_dependency 'simplecov'
|
45
46
|
spec.add_development_dependency 'simplecov-cobertura'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'rack'
|
4
|
-
|
3
|
+
require 'rack/utils'
|
4
|
+
require 'addressable'
|
5
5
|
module JSOM
|
6
6
|
module Pagination
|
7
7
|
class Links
|
@@ -39,7 +39,8 @@ module JSOM
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def parse_url(url)
|
42
|
-
uri = URI.parse(
|
42
|
+
uri = Addressable::URI.parse(url)
|
43
|
+
|
43
44
|
url_params = Rack::Utils.parse_nested_query(
|
44
45
|
uri.query
|
45
46
|
).delete_if { |key, _value| key == 'page' }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsom-pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Wilgosz
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
@@ -52,6 +52,26 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: addressable
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.3'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 2.3.7
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '2.3'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 2.3.7
|
55
75
|
- !ruby/object:Gem::Dependency
|
56
76
|
name: simplecov
|
57
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,7 +143,7 @@ metadata:
|
|
123
143
|
homepage_uri: https://github.com/useo-pl/jsom-pagination
|
124
144
|
source_code_uri: https://github.com/useo-pl/jsom-pagination
|
125
145
|
changelog_uri: https://github.com/useo-pl/jsom-pagination/releases
|
126
|
-
post_install_message:
|
146
|
+
post_install_message:
|
127
147
|
rdoc_options: []
|
128
148
|
require_paths:
|
129
149
|
- lib
|
@@ -138,8 +158,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
158
|
- !ruby/object:Gem::Version
|
139
159
|
version: '0'
|
140
160
|
requirements: []
|
141
|
-
rubygems_version: 3.1.
|
142
|
-
signing_key:
|
161
|
+
rubygems_version: 3.1.4
|
162
|
+
signing_key:
|
143
163
|
specification_version: 4
|
144
164
|
summary: A pagination support for JSON:API based web applications.
|
145
165
|
test_files: []
|