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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90f1689a79fcae340f7c4d4634c1ca354ebc792862e67dc4861df0abc04e1bb0
4
- data.tar.gz: 66701f4aafd545d5ccf415fb979e6eb5658e55eee30388a0e5da2dd629a98641
3
+ metadata.gz: d71da3322d2da67e94a8d5753ff04f081ac4e76c05d8afa198f1ebb8b1c2267c
4
+ data.tar.gz: 0034ae8441754659242bc72fd900384a3517402baf9ce31de8d01ff348104218
5
5
  SHA512:
6
- metadata.gz: 6450d722cf306defbf4f22e8165c641f0ff451dc91b8c480a1eb27171fed0c63847d7ef19b8b02fdf6a1aea14395a7e0a5b21513c313203ad2b7de30709a49f0
7
- data.tar.gz: 435225bbe049a472e4dc9d23581221e5cfe936e70c098e99a459f9e1060cb2c315f073b7859f429da55e5cc68e7fa8611ebcf520091e1264d78b540467cf1688
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.2.4)
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 (5.2.2)
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.4)
17
+ concurrent-ruby (1.1.5)
17
18
  diff-lcs (1.3)
18
- i18n (1.5.3)
19
+ i18n (1.7.0)
19
20
  concurrent-ruby (~> 1.0)
20
21
  jaro_winkler (1.5.1)
21
- minitest (5.11.3)
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.5)
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"] = 1 + (count / limit).ceil
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FetcheableOnApi
4
- VERSION = '0.3.1'.freeze
4
+ VERSION = '0.4'.freeze
5
5
  end
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.3.1
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: 2019-05-21 00:00:00.000000000 Z
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
- rubyforge_project:
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.