fmcache 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/fmcache.gemspec +1 -1
- data/lib/fmcache/helper.rb +1 -8
- data/lib/fmcache/incomplete_info.rb +1 -1
- data/lib/fmcache/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 450fac8896504841b9ed4dcc1f8846c077678aa00f6e046377f0aaf1d9d5bca8
|
4
|
+
data.tar.gz: 66d1c2585c68faafc4949d41e5112ba798f16d985fd7e557c1c154ee34b294b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 829181d98d91b0d32fd9a95bca2991a908a8f0f25238e4d185b94c28fa83c543b9d0092d347bf5204add4212fc225eaa520a35697afb2634ccef4a487c5f60ff
|
7
|
+
data.tar.gz: c340dc530f656b75a33e5becfc7fe9562ff08a1c3f7b36a30f8f2614146d5480f804ab85e041c7e4cd0de32ef5e66d20c5a5e2f5cbb0a7dcedd67db3b81e6801
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fmcache (0.1.
|
5
|
-
field_mask_parser (~> 0.4.
|
4
|
+
fmcache (0.1.2)
|
5
|
+
field_mask_parser (~> 0.4.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -22,7 +22,7 @@ GEM
|
|
22
22
|
coderay (1.1.2)
|
23
23
|
concurrent-ruby (1.1.3)
|
24
24
|
diff-lcs (1.3)
|
25
|
-
field_mask_parser (0.4.
|
25
|
+
field_mask_parser (0.4.2)
|
26
26
|
i18n (1.2.0)
|
27
27
|
concurrent-ruby (~> 1.0)
|
28
28
|
method_source (0.9.2)
|
data/fmcache.gemspec
CHANGED
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency "mock_redis", "~> 0.19"
|
31
31
|
spec.add_development_dependency "redis", "~> 4.0"
|
32
32
|
spec.add_development_dependency "activerecord", "~> 5.2"
|
33
|
-
spec.add_dependency "field_mask_parser", "~> 0.4.
|
33
|
+
spec.add_dependency "field_mask_parser", "~> 0.4.2"
|
34
34
|
end
|
data/lib/fmcache/helper.rb
CHANGED
@@ -4,14 +4,7 @@ module FMCache
|
|
4
4
|
# @param [FieldMaskParser::Node] field_mask
|
5
5
|
# @return [<String>]
|
6
6
|
def to_fields(field_mask, prefix: [])
|
7
|
-
|
8
|
-
field_mask.attrs.each do |attr|
|
9
|
-
r << Field.to_s(prefix: prefix, attr: attr)
|
10
|
-
end
|
11
|
-
field_mask.assocs.each do |assoc|
|
12
|
-
r += to_fields(assoc, prefix: prefix + [assoc.name])
|
13
|
-
end
|
14
|
-
r
|
7
|
+
field_mask.to_paths(prefix: prefix, sort: false)
|
15
8
|
end
|
16
9
|
|
17
10
|
# @param [<Integer>] ids
|
data/lib/fmcache/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fmcache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nao Minami
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.4.
|
117
|
+
version: 0.4.2
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.4.
|
124
|
+
version: 0.4.2
|
125
125
|
description: Library for caching json masked by FieldMask
|
126
126
|
email:
|
127
127
|
- south37777@gmail.com
|