field_mask_parser 0.3.1 → 0.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: 24a97c0f3839431a595b8b7db8795f1be4d83b2a06ea356c09a36f6036c88b3f
4
- data.tar.gz: a4196c0318eca6e67014b1b963b6f44e52b8b375bbfdadbe777e519d53e126d8
3
+ metadata.gz: 1ffc85276d16c72328a2e3f875c9b4f4ec11a6b8bee4976c6aebf5d77e266c44
4
+ data.tar.gz: 04357c1acce3b82c820cf2d4855301cea0670c84bc266bf5a49c54745a900812
5
5
  SHA512:
6
- metadata.gz: 4808c9c79b5fe650c88213d758585d26358e248fdb1a62d926e638c3c3afcb3b8a69a4a4d3039991aefead0d9fa81cfb934165c9c54e2c6bfbb66ef9911e893a
7
- data.tar.gz: f99ba00dfc2636b266da1bad750269fd16d6eff54d6ab6dafe5593e4ced8949384de11c0812a0411cbf85681aaf21faa8e227087fb5342f49bb5b5068b165dfb
6
+ metadata.gz: 3345941f970b56f855e68b46ad25824f02c099c75a92fe9458b627124cccea6747b79d7ec22e80a61c0a7aa8b7da9a94046b8caf8137f978e68892aa20072f4b
7
+ data.tar.gz: 965aa5fdc3f14ffee21c1beeef5036183423de9682a5cc0265c0b589d53d8cbd4479316ed68a338c691f4c490d72c2fcfabdc2e21a8620e2c33c749c0ad64143
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- field_mask_parser (0.3.1)
4
+ field_mask_parser (0.3.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -20,6 +20,12 @@ module FieldMaskParser
20
20
  def ==(other)
21
21
  is_leaf == other.is_leaf && children == other.children
22
22
  end
23
+
24
+ def to_h
25
+ @children.map do |field, child|
26
+ [field, child.to_h]
27
+ end.to_h
28
+ end
23
29
  end
24
30
  end
25
31
  end
@@ -1,3 +1,3 @@
1
1
  module FieldMaskParser
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: field_mask_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
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-09-12 00:00:00.000000000 Z
11
+ date: 2018-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler