fetcheable_on_api 0.3.1 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -6
- data/lib/fetcheable_on_api/pageable.rb +1 -1
- data/lib/fetcheable_on_api/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d71da3322d2da67e94a8d5753ff04f081ac4e76c05d8afa198f1ebb8b1c2267c
|
4
|
+
data.tar.gz: 0034ae8441754659242bc72fd900384a3517402baf9ce31de8d01ff348104218
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28db2fe13b6a53cd50ed91bf7ac4c4ba73947676528299c95985cabfadecb174f884d61f15b8832779d65201ce2880149cbff0b7ae2ea8c06acad9f4930f5050
|
7
|
+
data.tar.gz: ff5e7e8aa569c28e194eaed67f6baeba238e7aa06c69df01983003fa07bd94fd1082ef58d72b7584f5f49ea45ce42ea53af0ab6569a962d9023cd6e743f8d1ad
|
data/Gemfile.lock
CHANGED
@@ -1,24 +1,25 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fetcheable_on_api (0.
|
4
|
+
fetcheable_on_api (0.3.1)
|
5
5
|
activesupport (>= 4.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (
|
10
|
+
activesupport (6.0.2.1)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 0.7, < 2)
|
13
13
|
minitest (~> 5.1)
|
14
14
|
tzinfo (~> 1.1)
|
15
|
+
zeitwerk (~> 2.2)
|
15
16
|
ast (2.4.0)
|
16
|
-
concurrent-ruby (1.1.
|
17
|
+
concurrent-ruby (1.1.5)
|
17
18
|
diff-lcs (1.3)
|
18
|
-
i18n (1.
|
19
|
+
i18n (1.7.0)
|
19
20
|
concurrent-ruby (~> 1.0)
|
20
21
|
jaro_winkler (1.5.1)
|
21
|
-
minitest (5.
|
22
|
+
minitest (5.13.0)
|
22
23
|
parallel (1.12.1)
|
23
24
|
parser (2.5.1.2)
|
24
25
|
ast (~> 2.4.0)
|
@@ -48,9 +49,10 @@ GEM
|
|
48
49
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
49
50
|
ruby-progressbar (1.10.0)
|
50
51
|
thread_safe (0.3.6)
|
51
|
-
tzinfo (1.2.
|
52
|
+
tzinfo (1.2.6)
|
52
53
|
thread_safe (~> 0.1)
|
53
54
|
unicode-display_width (1.4.0)
|
55
|
+
zeitwerk (2.2.2)
|
54
56
|
|
55
57
|
PLATFORMS
|
56
58
|
ruby
|
@@ -52,7 +52,7 @@ module FetcheableOnApi
|
|
52
52
|
def define_header_pagination(limit, count, page)
|
53
53
|
response.headers["Pagination-Current-Page"] = page
|
54
54
|
response.headers["Pagination-Per"] = limit
|
55
|
-
response.headers["Pagination-Total-Pages"] =
|
55
|
+
response.headers["Pagination-Total-Pages"] = (count.to_f / limit.to_f).ceil
|
56
56
|
response.headers["Pagination-Total-Count"] = count
|
57
57
|
end
|
58
58
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fetcheable_on_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabien
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -121,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
|
125
|
-
rubygems_version: 2.7.6
|
124
|
+
rubygems_version: 3.0.3
|
126
125
|
signing_key:
|
127
126
|
specification_version: 4
|
128
127
|
summary: A controller filters engine gem based on jsonapi spec.
|