cache_crispies 1.3.1 → 1.3.2

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: d6f64a24131b351a6748e8640f8745ade2ae3d84d14403fdd83e765a252adfe6
4
- data.tar.gz: 5ba42a9d345bdd03c5849d2af1d050b9561a83d3e4b2ce658e101ab3ada9b1a5
3
+ metadata.gz: 1a93c5ab1a386306488b41307cb945164dcf1a0d0646cd5b02f828b87b2836d8
4
+ data.tar.gz: dadb16037bb994b1a17157cc7568afbd962d446a007838ba003a0fea29e7745f
5
5
  SHA512:
6
- metadata.gz: fbd76029802fab2b03950f05ef4d778c50c854ced9c974dd15d8458627d8e157af34fc61bb38898817a4c593d2a9c19d7206b6991e9d7766a3414c4a9296b88e
7
- data.tar.gz: e9e61f6afbf49b8cbd189812041b5648f8a9a02c373a11acceea0b206b0d0a91eea13b5cbfb5bcde0909ab24b2a8f3c5e94a12767297b58d02e6caa76c1ce65b
6
+ metadata.gz: '078816fce3ff0dc88fd45dd378dec482843229bdc28b83c188dd0ae04e984b18b14e81ab1d62f5930e26d3724133df3b6aac2033fbd647acad278409ce77c47b'
7
+ data.tar.gz: 26ec8aa1c7f4a55c1e58b76606ca0cafb1384ce2579b0131d3f9a2fa09391da8c0882524a379420c92c13eda3e0173b2c4fbad3356bdd529eb35c1beb1348e18
@@ -41,7 +41,7 @@ module CacheCrispies
41
41
 
42
42
  def cached_json
43
43
  models_by_cache_key = collection.each_with_object({}) do |model, hash|
44
- plan = Plan.new(serializer, model, options)
44
+ plan = Plan.new(serializer, model, **options)
45
45
 
46
46
  hash[plan.cache_key] = model
47
47
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module CacheCrispies
4
4
  # The version of the gem
5
- VERSION = '1.3.1'
5
+ VERSION = '1.3.2'
6
6
  end
@@ -58,11 +58,11 @@ describe CacheCrispies::Collection do
58
58
 
59
59
  it 'fetches the cache for each object in the collection' do
60
60
  expect(CacheCrispies::Plan).to receive(:new).with(
61
- serializer, model1, options
61
+ serializer, model1
62
62
  ).and_return double('plan-dbl-1', cache_key: 'cereal-key-1')
63
63
 
64
64
  expect(CacheCrispies::Plan).to receive(:new).with(
65
- serializer, model2, options
65
+ serializer, model2
66
66
  ).and_return double('plan-dbl-2', cache_key: 'cereal-key-2')
67
67
 
68
68
  expect(CacheCrispies).to receive_message_chain(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_crispies
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Crownoble
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-02 00:00:00.000000000 Z
11
+ date: 2022-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 5.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.0'
22
+ version: '8.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 5.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.0'
32
+ version: '8.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: oj
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +53,7 @@ dependencies:
53
53
  version: 5.0.0
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: '7.0'
56
+ version: '8.0'
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -63,7 +63,7 @@ dependencies:
63
63
  version: 5.0.0
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
- version: '7.0'
66
+ version: '8.0'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: appraisal
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  - !ruby/object:Gem::Version
199
199
  version: '0'
200
200
  requirements: []
201
- rubygems_version: 3.2.15
201
+ rubygems_version: 3.3.7
202
202
  signing_key:
203
203
  specification_version: 4
204
204
  summary: Fast Rails serializer with built-in caching