fmcache 0.2.1 → 0.3.0

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: 681a0559134840d7fb2a89c83adb8ccf2ab337d52ba3874da6a98b414ab8c90a
4
- data.tar.gz: f4d2e887054ff80d5d72e75e29d8f4c945b6620f6fe35d4453a6a446705203ec
3
+ metadata.gz: 3b8c9d9c7ac9e3393596cfd826f53939f20d603cd2d2ce8b2368ea19672845bc
4
+ data.tar.gz: 4c71c46a1f950ac0c6980b85529e883e655025e6eed472b56e84d2d5bf499987
5
5
  SHA512:
6
- metadata.gz: ad936f1afa79d39ae0b94c5eb64db9921e04888d5b84bd3a97e7e18a52a009960ce6601d8917a868eb6549fb867e0f5fee00b502a07870a6e2a965643b59a213
7
- data.tar.gz: 8560db62119da8501bc671b900a06dc26fa600cb0cd8f5fc8cb304e0430ba894c14003002dff592b34da0da4d92ced535dc9476cae8b3615e19673896ba9c37a
6
+ metadata.gz: 54735e1b19f1699a959a4867be5e66992811d73b8eef96c666ebb99d3d41c469c601c821c88209ae090b292b2c021404fab6176cbe5f302164fc052d1a1e8598
7
+ data.tar.gz: c041b070719a1f808ae9e56cc50dc89a7917bea628e24f3927b8d7e6c7f28475b23665dd3e202346b1737af5a6408d2b0e8a263d3e5a5788556d5310812819fa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fmcache (0.2.1)
4
+ fmcache (0.3.0)
5
5
  field_mask_parser (~> 0.4.3)
6
6
 
7
7
  GEM
@@ -29,18 +29,18 @@ module FMCache
29
29
  end
30
30
 
31
31
  field_mask.has_ones.each do |assoc|
32
- v = value[assoc.name] || {}
33
- prefix = prefix + [assoc.name]
32
+ v = value[assoc.name] || {}
33
+ p = prefix + [assoc.name]
34
34
 
35
- traverse!(value: v, field_mask: assoc, prefix: prefix, p_id: id)
35
+ traverse!(value: v, field_mask: assoc, prefix: p, p_id: id)
36
36
  end
37
37
 
38
38
  field_mask.has_manies.each do |assoc|
39
39
  values = value[assoc.name] || []
40
- prefix = prefix + [assoc.name]
40
+ p = prefix + [assoc.name]
41
41
 
42
42
  values.each do |v|
43
- traverse!(value: v, field_mask: assoc, prefix: prefix, p_id: id)
43
+ traverse!(value: v, field_mask: assoc, prefix: p, p_id: id)
44
44
  end
45
45
  end
46
46
  end
@@ -1,3 +1,3 @@
1
1
  module FMCache
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fmcache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nao Minami
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-21 00:00:00.000000000 Z
11
+ date: 2018-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler