the_pb 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fb6041f0983f5e3855d14f58ff1940cf2e7e4d6a10c1f750428be00a36f98838
4
+ data.tar.gz: 590b5e5f3b7e1bd066ef7ce3590d0560017831db53ea3573662d5c446e8a45b9
5
+ SHA512:
6
+ metadata.gz: ac3d4f93ca96285c79804b3d5df669acc90e42590dfea9ef15074281258373c7c0d4efcbf5e75651648e4188c0b74993f975582d8b9813461eb39bcd684ee46d
7
+ data.tar.gz: 79519c5f2a45484f6b5f257f2e17d694327bd6a5991d9b6e65625e5e1798283e57d8623c6f7a6891f1a48d1ff0aaa06cc021c95d091fa3d54955630ba4f77f95
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,10 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install:
8
+ - gem install bundler -v 2.0.2
9
+ script:
10
+ - bundle exec rspec
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at south37777@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in pb.gemspec
4
+ gemspec
@@ -0,0 +1,43 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ the_pb (0.0.2)
5
+ google-protobuf (~> 3.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ coderay (1.1.2)
11
+ diff-lcs (1.3)
12
+ google-protobuf (3.11.4)
13
+ method_source (0.9.2)
14
+ pry (0.12.2)
15
+ coderay (~> 1.1.0)
16
+ method_source (~> 0.9.0)
17
+ rake (13.0.1)
18
+ rspec (3.9.0)
19
+ rspec-core (~> 3.9.0)
20
+ rspec-expectations (~> 3.9.0)
21
+ rspec-mocks (~> 3.9.0)
22
+ rspec-core (3.9.1)
23
+ rspec-support (~> 3.9.1)
24
+ rspec-expectations (3.9.0)
25
+ diff-lcs (>= 1.2.0, < 2.0)
26
+ rspec-support (~> 3.9.0)
27
+ rspec-mocks (3.9.1)
28
+ diff-lcs (>= 1.2.0, < 2.0)
29
+ rspec-support (~> 3.9.0)
30
+ rspec-support (3.9.2)
31
+
32
+ PLATFORMS
33
+ ruby
34
+
35
+ DEPENDENCIES
36
+ bundler (~> 2.0)
37
+ pry
38
+ rake (~> 13.0)
39
+ rspec (~> 3.0)
40
+ the_pb!
41
+
42
+ BUNDLED WITH
43
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Nao Minami
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,68 @@
1
+ # Pb
2
+
3
+ Utility for Google **P**rotocol **B**uffers.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'the_pb'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install the_pb
20
+
21
+ ## Usage
22
+
23
+ You can use `Pb` to generate protobuf objects.
24
+
25
+ ```ruby
26
+ [1] pry(main)> Pb.to_timestamp("2019-03-01T15:30:00")
27
+ => <Google::Protobuf::Timestamp: seconds: 1551421800, nanos: 0>
28
+
29
+ [2] pry(main)> Pb.to_strval("Hello")
30
+ => <Google::Protobuf::StringValue: value: "Hello">
31
+ ```
32
+
33
+ You can also use `Pb.to_proto` to generate nested objects.
34
+
35
+ ```proto
36
+ message Account {
37
+ int64 id = 1;
38
+ google.protobuf.Timestamp registered_at = 2;
39
+ Profile profile = 3;
40
+ }
41
+
42
+ message Profile {
43
+ int64 id = 1;
44
+ }
45
+ ```
46
+
47
+ ```ruby
48
+ [1] pry(main)> Pb.to_proto(Account, { id: 1, registered_at: Time.new(2019, 3, 1), profile: { id: 2 })
49
+ => <Account: id: 1, registered_at: <Google::Protobuf::Timestamp: seconds: 1551366000, nanos: 0>, profile: <Profile: id: 2>>
50
+ ```
51
+
52
+ ## Development
53
+
54
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
55
+
56
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
57
+
58
+ ## Contributing
59
+
60
+ Bug reports and pull requests are welcome on GitHub at https://github.com/wantedly/the_pb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
61
+
62
+ ## License
63
+
64
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
65
+
66
+ ## Code of Conduct
67
+
68
+ Everyone interacting in the Pb project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/wantedly/the_pb/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "pb"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ ENV["TZ"] = "Asia/Tokyo"
10
+
11
+ require "pry"
12
+ Pry.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,237 @@
1
+ require "date"
2
+ require "time"
3
+ require "google/protobuf"
4
+ require "google/protobuf/timestamp_pb"
5
+ require "google/protobuf/wrappers_pb"
6
+
7
+ require "pb/version"
8
+
9
+ module Pb
10
+ BUILTIN_PROTO_TYPES = [
11
+ Google::Protobuf::Timestamp,
12
+ Google::Protobuf::StringValue,
13
+ Google::Protobuf::Int32Value,
14
+ Google::Protobuf::Int64Value,
15
+ Google::Protobuf::UInt32Value,
16
+ Google::Protobuf::UInt64Value,
17
+ Google::Protobuf::FloatValue,
18
+ Google::Protobuf::DoubleValue,
19
+ Google::Protobuf::BoolValue,
20
+ Google::Protobuf::BytesValue,
21
+ ].freeze
22
+
23
+ class << self
24
+ # @param [Time, DateTime, Date, String, nil] t
25
+ # @return [Google::Protobuf::Timestamp, nil]
26
+ def to_timestamp(t)
27
+ return nil if t.nil?
28
+ return t if t.is_a?(Google::Protobuf::Timestamp)
29
+ case t
30
+ when DateTime, Date
31
+ t = t.to_time
32
+ when String
33
+ t = Time.parse(t)
34
+ else
35
+ # Do nothing
36
+ end
37
+ Google::Protobuf::Timestamp.new(seconds: t.to_i, nanos: t.nsec)
38
+ end
39
+
40
+ # @param [String, nil]
41
+ # @return [Google::Protobuf::StringValue, nil]
42
+ def to_strval(str)
43
+ return nil if str.nil?
44
+ return str if str.is_a?(Google::Protobuf::StringValue)
45
+ Google::Protobuf::StringValue.new(value: str)
46
+ end
47
+
48
+ # @param [Integer, nil] num
49
+ # @return [Google::Protobuf::Int32Value, nil]
50
+ def to_int32val(num)
51
+ return nil if num.nil?
52
+ return num if num.is_a?(Google::Protobuf::Int32Value)
53
+ Google::Protobuf::Int32Value.new(value: num)
54
+ end
55
+
56
+ # @param [String, Integer, nil] num
57
+ # @return [Google::Protobuf::Int64Value, nil]
58
+ def to_int64val(num)
59
+ return nil if num.nil?
60
+ return num if num.is_a?(Google::Protobuf::Int64Value)
61
+ case num
62
+ when String
63
+ n = num.to_i
64
+ else # Integer
65
+ n = num
66
+ end
67
+ Google::Protobuf::Int64Value.new(value: n)
68
+ end
69
+
70
+ # @param [Integer, nil] num
71
+ # @return [Google::Protobuf::UInt32Value, nil]
72
+ def to_uint32val(num)
73
+ return nil if num.nil?
74
+ return num if num.is_a?(Google::Protobuf::UInt32Value)
75
+ Google::Protobuf::UInt32Value.new(value: num)
76
+ end
77
+
78
+ # @param [String, Integer, nil] num
79
+ # @return [Google::Protobuf::UInt64Value, nil]
80
+ def to_uint64val(num)
81
+ return nil if num.nil?
82
+ return num if num.is_a?(Google::Protobuf::UInt64Value)
83
+ case num
84
+ when String
85
+ n = num.to_i
86
+ else # Integer
87
+ n = num
88
+ end
89
+ Google::Protobuf::UInt64Value.new(value: n)
90
+ end
91
+
92
+ # @param [Float, nil] num
93
+ # @return [Google::Protobuf::FloatValue, nil]
94
+ def to_floatval(num)
95
+ return nil if num.nil?
96
+ return num if num.is_a?(Google::Protobuf::FloatValue)
97
+ Google::Protobuf::FloatValue.new(value: num)
98
+ end
99
+
100
+ # @param [Float, nil] num
101
+ # @return [Google::Protobuf::DoubleValue, nil]
102
+ def to_doubleval(num)
103
+ return nil if num.nil?
104
+ return num if num.is_a?(Google::Protobuf::DoubleValue)
105
+ Google::Protobuf::DoubleValue.new(value: num)
106
+ end
107
+
108
+ # @param [bool, nil] b
109
+ # @return [Google::Protobuf::BoolValue, nil]
110
+ def to_boolval(b)
111
+ return nil if b.nil?
112
+ return b if b.is_a?(Google::Protobuf::BoolValue)
113
+ Google::Protobuf::BoolValue.new(value: b)
114
+ end
115
+
116
+ # @param [String, nil] bytes
117
+ # @return [Google::Protobuf::BytesValue, nil]
118
+ def to_bytesval(bytes)
119
+ return nil if bytes.nil?
120
+ return bytes if bytes.is_a?(Google::Protobuf::BytesValue)
121
+ Google::Protobuf::BytesValue.new(value: bytes)
122
+ end
123
+
124
+ # @param [Class] klass Protobuf message class
125
+ # @param [Object, nil] v
126
+ # @return [Object, nil] Protobuf message object.
127
+ def to_builtin_proto(klass, v)
128
+ return nil if v.nil?
129
+
130
+ if klass == Google::Protobuf::Timestamp
131
+ to_timestamp(v)
132
+ elsif klass == Google::Protobuf::StringValue
133
+ to_strval(v)
134
+ elsif klass == Google::Protobuf::Int32Value
135
+ to_int32val(v)
136
+ elsif klass == Google::Protobuf::Int64Value
137
+ to_int64val(v)
138
+ elsif klass == Google::Protobuf::UInt32Value
139
+ to_uint32val(v)
140
+ elsif klass == Google::Protobuf::UInt64Value
141
+ to_uint64val(v)
142
+ elsif klass == Google::Protobuf::FloatValue
143
+ to_floatval(v)
144
+ elsif klass == Google::Protobuf::DoubleValue
145
+ to_doubleval(v)
146
+ elsif klass == Google::Protobuf::BoolValue
147
+ to_boolval(v)
148
+ elsif klass == Google::Protobuf::BytesValue
149
+ to_bytesval(v)
150
+ else
151
+ raise "Invalid klass: #{klass} is not included in supported classes (#{BUILTIN_PROTO_TYPES})"
152
+ end
153
+ end
154
+
155
+ # @param [Class] klass A Protobuf message class
156
+ # @param [Hash, Array<Hash>, nil] v A Hash object or An Array of Hash objects. Hash
157
+ # objects contain parameters of a Protobuf message object
158
+ # @return [Object, Array<Object>, nil] A Protobuf message object
159
+ def to_proto(klass, v)
160
+ case v
161
+ when Array
162
+ v.map { |e| to_proto_one(klass, e) }
163
+ else
164
+ to_proto_one(klass, v)
165
+ end
166
+ end
167
+
168
+ # @param [Symbol] type The type of protobuf field. e.g. :enum, :int64,
169
+ # :string, :int32, :bool, etc.
170
+ # @param [Object] v
171
+ # @return [Object]
172
+ def to_primitive(type, v)
173
+ case v
174
+ when Array
175
+ v.map { |e| to_primitive_one(type, e) }
176
+ else
177
+ to_primitive_one(type, v)
178
+ end
179
+ end
180
+
181
+ private
182
+
183
+ class TypeInfo
184
+ # @param [Symbol] type The type of protobuf field. e.g. :enum, :int64,
185
+ # :string, :int32, :bool, :message, etc.
186
+ # @param [Google::Protobuf::Descriptor, nil] subtype
187
+ def initialize(type:, subtype:)
188
+ @type = type
189
+ @subtype = subtype
190
+ end
191
+ attr_reader :type, :subtype
192
+ end
193
+
194
+ # @param [Class] klass A Protobuf message class
195
+ # @param [Hash, nil] v A Hash object which contains parameters of a Protobuf
196
+ # message object
197
+ # @return [Object, nil] A Protobuf message object
198
+ def to_proto_one(klass, v)
199
+ if BUILTIN_PROTO_TYPES.include?(klass)
200
+ return to_builtin_proto(klass, v)
201
+ end
202
+
203
+ return nil if v.nil?
204
+
205
+ field_types = {} # Hash{String => TypeInfo}
206
+ klass.descriptor.entries.each do |e|
207
+ field_types[e.name.to_s] = TypeInfo.new(type: e.type, subtype: e.subtype)
208
+ end
209
+
210
+ params = {}
211
+ v.each do |k, vv|
212
+ type_info = field_types[k.to_s]
213
+ next if type_info.nil? # Ignore unknown field
214
+
215
+ if type_info.type == :message
216
+ params[k] = to_proto(type_info.subtype.msgclass, vv)
217
+ else
218
+ params[k] = to_primitive(type_info.type, vv)
219
+ end
220
+ end
221
+ klass.new(params)
222
+ end
223
+
224
+ # @param [Symbol] type The type of protobuf field. e.g. :enum, :int64,
225
+ # :string, :int32, :bool, etc.
226
+ # @param [Object] v
227
+ # @return [Object]
228
+ def to_primitive_one(type, v)
229
+ case type
230
+ when :int64, :uint64
231
+ v.to_i # Convert string to int if necessary
232
+ else
233
+ v
234
+ end
235
+ end
236
+ end
237
+ end
@@ -0,0 +1,3 @@
1
+ module Pb
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1 @@
1
+ require "pb"
@@ -0,0 +1,33 @@
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "pb/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "the_pb"
7
+ spec.version = Pb::VERSION
8
+ spec.authors = ["Nao Minami"]
9
+ spec.email = ["south37777@gmail.com"]
10
+
11
+ spec.summary = %q{Utility for Google Protocol Buffers.}
12
+ spec.description = %q{Utility for Google Protocol Buffers.}
13
+ spec.homepage = "https://github.com/wantedly/the_pb"
14
+ spec.license = "MIT"
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = "https://github.com/wantedly/the_pb"
18
+
19
+ # Specify which files should be added to the gem when it is released.
20
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
22
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
+ end
24
+ spec.bindir = "exe"
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ["lib"]
27
+
28
+ spec.add_development_dependency "bundler", "~> 2.0"
29
+ spec.add_development_dependency "rake", "~> 13.0"
30
+ spec.add_development_dependency "rspec", "~> 3.0"
31
+ spec.add_development_dependency "pry"
32
+ spec.add_runtime_dependency "google-protobuf", "~> 3.0"
33
+ end
metadata ADDED
@@ -0,0 +1,130 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: the_pb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Nao Minami
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: google-protobuf
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ description: Utility for Google Protocol Buffers.
84
+ email:
85
+ - south37777@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".travis.yml"
93
+ - CODE_OF_CONDUCT.md
94
+ - Gemfile
95
+ - Gemfile.lock
96
+ - LICENSE.txt
97
+ - README.md
98
+ - Rakefile
99
+ - bin/console
100
+ - bin/setup
101
+ - lib/pb.rb
102
+ - lib/pb/version.rb
103
+ - lib/the_pb.rb
104
+ - pb.gemspec
105
+ homepage: https://github.com/wantedly/the_pb
106
+ licenses:
107
+ - MIT
108
+ metadata:
109
+ homepage_uri: https://github.com/wantedly/the_pb
110
+ source_code_uri: https://github.com/wantedly/the_pb
111
+ post_install_message:
112
+ rdoc_options: []
113
+ require_paths:
114
+ - lib
115
+ required_ruby_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ requirements: []
126
+ rubygems_version: 3.0.3
127
+ signing_key:
128
+ specification_version: 4
129
+ summary: Utility for Google Protocol Buffers.
130
+ test_files: []