protobuf 3.5.2 → 3.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d51304edd7673c856faab69e8e2c1788a2e1f909
4
+ data.tar.gz: a95ae8c58cd13c3592d7cee4b86b9c022d5bfb86
5
+ SHA512:
6
+ metadata.gz: 61beb085ecebf59051a7f8d303bcf7979bd271843d5467225f51506e4f6ad8e852c8a077cdeaf62043266919a3476523a3c6617385ade1887f9fec60d3f23e6d
7
+ data.tar.gz: 0c88b8b2233cdc42779f6c3a2d555ccfe309c8ec81f1bcd92a89bd51d85069399665f616f34885bc53e45b8e043e89844e64476c8c2cc78df4945a949fe975ea
@@ -78,14 +78,12 @@ module Protobuf
78
78
  end
79
79
 
80
80
  def get_extension_field(name_or_tag)
81
- name_or_tag = name_or_tag.to_sym if name_or_tag.respond_to?(:to_sym)
82
- field = field_store[name_or_tag]
81
+ field = field_store[name_or_tag] || str_field_store[name_or_tag]
83
82
  field if field.try(:extension?) { false }
84
83
  end
85
84
 
86
85
  def get_field(name_or_tag, allow_extension = false)
87
- name_or_tag = name_or_tag.to_sym if name_or_tag.respond_to?(:to_sym)
88
- field = field_store[name_or_tag]
86
+ field = field_store[name_or_tag] || str_field_store[name_or_tag]
89
87
 
90
88
  if field && (allow_extension || !field.extension?)
91
89
  field
@@ -102,6 +100,8 @@ module Protobuf
102
100
  field_store[field_name] = field
103
101
  field_store[tag] = field
104
102
 
103
+ str_field_store[field_name.to_s] = field
104
+
105
105
  define_method("#{field_name}!") do
106
106
  @values[field_name]
107
107
  end
@@ -126,6 +126,10 @@ module Protobuf
126
126
  end
127
127
  private :inherit_fields!
128
128
 
129
+ def str_field_store
130
+ @str_field_store ||= {}
131
+ end
132
+ private :str_field_store
129
133
  end
130
134
  end
131
135
  end
@@ -1,3 +1,3 @@
1
1
  module Protobuf
2
- VERSION = '3.5.2'
2
+ VERSION = '3.5.3'
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.2
5
- prerelease:
4
+ version: 3.5.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - BJ Neilsen
@@ -12,230 +11,202 @@ authors:
12
11
  autorequire:
13
12
  bindir: bin
14
13
  cert_chain: []
15
- date: 2015-09-25 00:00:00.000000000 Z
14
+ date: 2015-09-27 00:00:00.000000000 Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: activesupport
19
18
  requirement: !ruby/object:Gem::Requirement
20
- none: false
21
19
  requirements:
22
- - - ! '>='
20
+ - - ">="
23
21
  - !ruby/object:Gem::Version
24
22
  version: '3.2'
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
- - - ! '>='
27
+ - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: '3.2'
33
30
  - !ruby/object:Gem::Dependency
34
31
  name: middleware
35
32
  requirement: !ruby/object:Gem::Requirement
36
- none: false
37
33
  requirements:
38
- - - ! '>='
34
+ - - ">="
39
35
  - !ruby/object:Gem::Version
40
36
  version: '0'
41
37
  type: :runtime
42
38
  prerelease: false
43
39
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
- - - ! '>='
41
+ - - ">="
47
42
  - !ruby/object:Gem::Version
48
43
  version: '0'
49
44
  - !ruby/object:Gem::Dependency
50
45
  name: thor
51
46
  requirement: !ruby/object:Gem::Requirement
52
- none: false
53
47
  requirements:
54
- - - ! '>='
48
+ - - ">="
55
49
  - !ruby/object:Gem::Version
56
50
  version: '0'
57
51
  type: :runtime
58
52
  prerelease: false
59
53
  version_requirements: !ruby/object:Gem::Requirement
60
- none: false
61
54
  requirements:
62
- - - ! '>='
55
+ - - ">="
63
56
  - !ruby/object:Gem::Version
64
57
  version: '0'
65
58
  - !ruby/object:Gem::Dependency
66
59
  name: thread_safe
67
60
  requirement: !ruby/object:Gem::Requirement
68
- none: false
69
61
  requirements:
70
- - - ! '>='
62
+ - - ">="
71
63
  - !ruby/object:Gem::Version
72
64
  version: '0'
73
65
  type: :runtime
74
66
  prerelease: false
75
67
  version_requirements: !ruby/object:Gem::Requirement
76
- none: false
77
68
  requirements:
78
- - - ! '>='
69
+ - - ">="
79
70
  - !ruby/object:Gem::Version
80
71
  version: '0'
81
72
  - !ruby/object:Gem::Dependency
82
73
  name: ffi-rzmq
83
74
  requirement: !ruby/object:Gem::Requirement
84
- none: false
85
75
  requirements:
86
- - - ! '>='
76
+ - - ">="
87
77
  - !ruby/object:Gem::Version
88
78
  version: '0'
89
79
  type: :development
90
80
  prerelease: false
91
81
  version_requirements: !ruby/object:Gem::Requirement
92
- none: false
93
82
  requirements:
94
- - - ! '>='
83
+ - - ">="
95
84
  - !ruby/object:Gem::Version
96
85
  version: '0'
97
86
  - !ruby/object:Gem::Dependency
98
87
  name: rake
99
88
  requirement: !ruby/object:Gem::Requirement
100
- none: false
101
89
  requirements:
102
- - - ! '>='
90
+ - - ">="
103
91
  - !ruby/object:Gem::Version
104
92
  version: '0'
105
93
  type: :development
106
94
  prerelease: false
107
95
  version_requirements: !ruby/object:Gem::Requirement
108
- none: false
109
96
  requirements:
110
- - - ! '>='
97
+ - - ">="
111
98
  - !ruby/object:Gem::Version
112
99
  version: '0'
113
100
  - !ruby/object:Gem::Dependency
114
101
  name: rspec
115
102
  requirement: !ruby/object:Gem::Requirement
116
- none: false
117
103
  requirements:
118
- - - ! '>='
104
+ - - ">="
119
105
  - !ruby/object:Gem::Version
120
106
  version: '3.0'
121
107
  type: :development
122
108
  prerelease: false
123
109
  version_requirements: !ruby/object:Gem::Requirement
124
- none: false
125
110
  requirements:
126
- - - ! '>='
111
+ - - ">="
127
112
  - !ruby/object:Gem::Version
128
113
  version: '3.0'
129
114
  - !ruby/object:Gem::Dependency
130
115
  name: rubocop
131
116
  requirement: !ruby/object:Gem::Requirement
132
- none: false
133
117
  requirements:
134
- - - ! '>='
118
+ - - ">="
135
119
  - !ruby/object:Gem::Version
136
120
  version: '0'
137
121
  type: :development
138
122
  prerelease: false
139
123
  version_requirements: !ruby/object:Gem::Requirement
140
- none: false
141
124
  requirements:
142
- - - ! '>='
125
+ - - ">="
143
126
  - !ruby/object:Gem::Version
144
127
  version: '0'
145
128
  - !ruby/object:Gem::Dependency
146
129
  name: simplecov
147
130
  requirement: !ruby/object:Gem::Requirement
148
- none: false
149
131
  requirements:
150
- - - ! '>='
132
+ - - ">="
151
133
  - !ruby/object:Gem::Version
152
134
  version: '0'
153
135
  type: :development
154
136
  prerelease: false
155
137
  version_requirements: !ruby/object:Gem::Requirement
156
- none: false
157
138
  requirements:
158
- - - ! '>='
139
+ - - ">="
159
140
  - !ruby/object:Gem::Version
160
141
  version: '0'
161
142
  - !ruby/object:Gem::Dependency
162
143
  name: timecop
163
144
  requirement: !ruby/object:Gem::Requirement
164
- none: false
165
145
  requirements:
166
- - - ! '>='
146
+ - - ">="
167
147
  - !ruby/object:Gem::Version
168
148
  version: '0'
169
149
  type: :development
170
150
  prerelease: false
171
151
  version_requirements: !ruby/object:Gem::Requirement
172
- none: false
173
152
  requirements:
174
- - - ! '>='
153
+ - - ">="
175
154
  - !ruby/object:Gem::Version
176
155
  version: '0'
177
156
  - !ruby/object:Gem::Dependency
178
157
  name: yard
179
158
  requirement: !ruby/object:Gem::Requirement
180
- none: false
181
159
  requirements:
182
- - - ! '>='
160
+ - - ">="
183
161
  - !ruby/object:Gem::Version
184
162
  version: '0'
185
163
  type: :development
186
164
  prerelease: false
187
165
  version_requirements: !ruby/object:Gem::Requirement
188
- none: false
189
166
  requirements:
190
- - - ! '>='
167
+ - - ">="
191
168
  - !ruby/object:Gem::Version
192
169
  version: '0'
193
170
  - !ruby/object:Gem::Dependency
194
- name: pry-debugger
171
+ name: pry-byebug
195
172
  requirement: !ruby/object:Gem::Requirement
196
- none: false
197
173
  requirements:
198
- - - ! '>='
174
+ - - ">="
199
175
  - !ruby/object:Gem::Version
200
176
  version: '0'
201
177
  type: :development
202
178
  prerelease: false
203
179
  version_requirements: !ruby/object:Gem::Requirement
204
- none: false
205
180
  requirements:
206
- - - ! '>='
181
+ - - ">="
207
182
  - !ruby/object:Gem::Version
208
183
  version: '0'
209
184
  - !ruby/object:Gem::Dependency
210
185
  name: pry-stack_explorer
211
186
  requirement: !ruby/object:Gem::Requirement
212
- none: false
213
187
  requirements:
214
- - - ! '>='
188
+ - - ">="
215
189
  - !ruby/object:Gem::Version
216
190
  version: '0'
217
191
  type: :development
218
192
  prerelease: false
219
193
  version_requirements: !ruby/object:Gem::Requirement
220
- none: false
221
194
  requirements:
222
- - - ! '>='
195
+ - - ">="
223
196
  - !ruby/object:Gem::Version
224
197
  version: '0'
225
198
  - !ruby/object:Gem::Dependency
226
199
  name: ruby-prof
227
200
  requirement: !ruby/object:Gem::Requirement
228
- none: false
229
201
  requirements:
230
- - - ! '>='
202
+ - - ">="
231
203
  - !ruby/object:Gem::Version
232
204
  version: '0'
233
205
  type: :development
234
206
  prerelease: false
235
207
  version_requirements: !ruby/object:Gem::Requirement
236
- none: false
237
208
  requirements:
238
- - - ! '>='
209
+ - - ">="
239
210
  - !ruby/object:Gem::Version
240
211
  version: '0'
241
212
  description: Google Protocol Buffers serialization and RPC implementation for Ruby.
@@ -250,11 +221,11 @@ executables:
250
221
  extensions: []
251
222
  extra_rdoc_files: []
252
223
  files:
253
- - .gitignore
254
- - .rubocop.yml
255
- - .rubocop_todo.yml
256
- - .travis.yml
257
- - .yardopts
224
+ - ".gitignore"
225
+ - ".rubocop.yml"
226
+ - ".rubocop_todo.yml"
227
+ - ".travis.yml"
228
+ - ".yardopts"
258
229
  - CHANGES.md
259
230
  - CONTRIBUTING.md
260
231
  - Gemfile
@@ -433,33 +404,26 @@ files:
433
404
  homepage: https://github.com/localshred/protobuf
434
405
  licenses:
435
406
  - MIT
407
+ metadata: {}
436
408
  post_install_message:
437
409
  rdoc_options: []
438
410
  require_paths:
439
411
  - lib
440
412
  required_ruby_version: !ruby/object:Gem::Requirement
441
- none: false
442
413
  requirements:
443
- - - ! '>='
414
+ - - ">="
444
415
  - !ruby/object:Gem::Version
445
416
  version: '0'
446
- segments:
447
- - 0
448
- hash: -1916950250382935987
449
417
  required_rubygems_version: !ruby/object:Gem::Requirement
450
- none: false
451
418
  requirements:
452
- - - ! '>='
419
+ - - ">="
453
420
  - !ruby/object:Gem::Version
454
421
  version: '0'
455
- segments:
456
- - 0
457
- hash: -1916950250382935987
458
422
  requirements: []
459
423
  rubyforge_project:
460
- rubygems_version: 1.8.24
424
+ rubygems_version: 2.4.8
461
425
  signing_key:
462
- specification_version: 3
426
+ specification_version: 4
463
427
  summary: Google Protocol Buffers serialization and RPC implementation for Ruby.
464
428
  test_files: []
465
429
  has_rdoc: