protobuf 2.7.10-java → 2.7.11-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,16 @@ require 'socket'
3
3
  require 'pp'
4
4
  require 'stringio'
5
5
  require 'active_support/core_ext/object/blank'
6
- require 'active_support/core_ext/object/try'
6
+ require 'active_support/version'
7
+
8
+ if ActiveSupport::VERSION::MAJOR > 2
9
+ require 'active_support/core_ext/object/try'
10
+ else
11
+ require 'active_support/core_ext/module/delegation'
12
+ require 'active_support/core_ext/kernel/reporting'
13
+ require 'active_support/core_ext/try'
14
+ end
15
+
7
16
  require 'active_support/inflector'
8
17
  require 'active_support/json'
9
18
 
@@ -4,10 +4,6 @@ module Protobuf
4
4
  module Field
5
5
  class FloatField < BaseField
6
6
  def self.default; 0.0; end
7
- def self.max; 1.0/0; end
8
- def self.min; -1.0/0; end
9
- def max; 1.0/0; end
10
- def min; -1.0/0; end
11
7
 
12
8
  def wire_type
13
9
  WireType::FIXED32
@@ -22,7 +18,7 @@ module Protobuf
22
18
  end
23
19
 
24
20
  def acceptable?(val)
25
- (val > min || val < max) rescue false
21
+ val.respond_to?(:to_f)
26
22
  end
27
23
  end
28
24
  end
@@ -1,4 +1,4 @@
1
1
  module Protobuf
2
- VERSION = '2.7.10'
2
+ VERSION = '2.7.11'
3
3
  PROTOC_VERSION = '2.4.1'
4
4
  end
@@ -27,8 +27,6 @@ module Test
27
27
  # Extension Fields
28
28
  extensions 100...536870912
29
29
  optional ::Test::PayloadA, :payload, 100, :extension => true
30
- # UNCOMMENT TO TEST FAILING WITH MULTIPLE FIELDS
31
- # optional ::Test::PayloadB, :payload, 101, :extension => true
32
30
  end
33
31
 
34
32
 
@@ -16,8 +16,8 @@ message PayloadA {
16
16
  }
17
17
 
18
18
  message PayloadB {
19
- extend Header {
19
+ //extend Header {
20
20
  // UNCOMMENT TO TEST FAILING WITH MULTIPLE FIELDS
21
21
  // optional PayloadB payload = 101;
22
- }
22
+ //}
23
23
  }
@@ -57,7 +57,6 @@ module Test
57
57
  optional ::Test::Searchable::SearchType, :ext_search_type, 102, :default => ::Test::Searchable::SearchType::FLAT, :extension => true
58
58
  optional ::Protobuf::Field::BoolField, :ext_nested_in_level_one, 105, :extension => true
59
59
  optional ::Protobuf::Field::BoolField, :ext_dup_field, 106, :extension => true
60
- optional ::Protobuf::Field::BoolField, :ext_dup_field, 107, :extension => true
61
60
  end
62
61
 
63
62
  class MessageParent
@@ -62,9 +62,9 @@ message Nested {
62
62
  optional bool ext_nested_level_one = 100;
63
63
  }
64
64
 
65
- extend Resource {
66
- optional bool ext_dup_field = 107;
67
- }
65
+ // extend Resource {
66
+ // optional bool ext_dup_field = 107;
67
+ // }
68
68
  }
69
69
 
70
70
  extend Nested {
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: protobuf
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.7.10
5
+ version: 2.7.11
6
6
  platform: java
7
7
  authors:
8
8
  - BJ Neilsen
@@ -10,149 +10,240 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-04-16 00:00:00.000000000Z
13
+ date: 2013-06-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
- version_requirements: &5750 !ruby/object:Gem::Requirement
17
+ version_requirements: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ! '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: !binary |-
22
+ MA==
23
+ none: false
24
+ requirement: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: !binary |-
29
+ MA==
22
30
  none: false
23
- requirement: *5750
24
31
  prerelease: false
25
32
  type: :runtime
26
33
  - !ruby/object:Gem::Dependency
27
34
  name: ffi
28
- version_requirements: &5768 !ruby/object:Gem::Requirement
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: !binary |-
40
+ MA==
41
+ none: false
42
+ requirement: !ruby/object:Gem::Requirement
29
43
  requirements:
30
- - - ! '>='
44
+ - - ">="
31
45
  - !ruby/object:Gem::Version
32
- version: '0'
46
+ version: !binary |-
47
+ MA==
33
48
  none: false
34
- requirement: *5768
35
49
  prerelease: false
36
50
  type: :runtime
37
51
  - !ruby/object:Gem::Dependency
38
52
  name: multi_json
39
- version_requirements: &5784 !ruby/object:Gem::Requirement
53
+ version_requirements: !ruby/object:Gem::Requirement
40
54
  requirements:
41
- - - ! '>='
55
+ - - ">="
42
56
  - !ruby/object:Gem::Version
43
- version: '0'
57
+ version: !binary |-
58
+ MA==
59
+ none: false
60
+ requirement: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: !binary |-
65
+ MA==
44
66
  none: false
45
- requirement: *5784
46
67
  prerelease: false
47
68
  type: :runtime
48
69
  - !ruby/object:Gem::Dependency
49
70
  name: thor
50
- version_requirements: &5800 !ruby/object:Gem::Requirement
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: !binary |-
76
+ MA==
77
+ none: false
78
+ requirement: !ruby/object:Gem::Requirement
51
79
  requirements:
52
- - - ! '>='
80
+ - - ">="
53
81
  - !ruby/object:Gem::Version
54
- version: '0'
82
+ version: !binary |-
83
+ MA==
55
84
  none: false
56
- requirement: *5800
57
85
  prerelease: false
58
86
  type: :runtime
59
87
  - !ruby/object:Gem::Dependency
60
88
  name: eventmachine
61
- version_requirements: &5816 !ruby/object:Gem::Requirement
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: !binary |-
94
+ MA==
95
+ none: false
96
+ requirement: !ruby/object:Gem::Requirement
62
97
  requirements:
63
- - - ! '>='
98
+ - - ">="
64
99
  - !ruby/object:Gem::Version
65
- version: '0'
100
+ version: !binary |-
101
+ MA==
66
102
  none: false
67
- requirement: *5816
68
103
  prerelease: false
69
104
  type: :development
70
105
  - !ruby/object:Gem::Dependency
71
106
  name: ffi-rzmq
72
- version_requirements: &5834 !ruby/object:Gem::Requirement
107
+ version_requirements: !ruby/object:Gem::Requirement
73
108
  requirements:
74
- - - ! '>='
109
+ - - ">="
75
110
  - !ruby/object:Gem::Version
76
- version: '0'
111
+ version: !binary |-
112
+ MA==
113
+ none: false
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: !binary |-
119
+ MA==
77
120
  none: false
78
- requirement: *5834
79
121
  prerelease: false
80
122
  type: :development
81
123
  - !ruby/object:Gem::Dependency
82
124
  name: pry
83
- version_requirements: &5850 !ruby/object:Gem::Requirement
125
+ version_requirements: !ruby/object:Gem::Requirement
84
126
  requirements:
85
- - - ! '>='
127
+ - - ">="
86
128
  - !ruby/object:Gem::Version
87
- version: '0'
129
+ version: !binary |-
130
+ MA==
131
+ none: false
132
+ requirement: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: !binary |-
137
+ MA==
88
138
  none: false
89
- requirement: *5850
90
139
  prerelease: false
91
140
  type: :development
92
141
  - !ruby/object:Gem::Dependency
93
142
  name: pry-nav
94
- version_requirements: &5866 !ruby/object:Gem::Requirement
143
+ version_requirements: !ruby/object:Gem::Requirement
95
144
  requirements:
96
- - - ! '>='
145
+ - - ">="
97
146
  - !ruby/object:Gem::Version
98
- version: '0'
147
+ version: !binary |-
148
+ MA==
149
+ none: false
150
+ requirement: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: !binary |-
155
+ MA==
99
156
  none: false
100
- requirement: *5866
101
157
  prerelease: false
102
158
  type: :development
103
159
  - !ruby/object:Gem::Dependency
104
160
  name: rake
105
- version_requirements: &5882 !ruby/object:Gem::Requirement
161
+ version_requirements: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: !binary |-
166
+ MA==
167
+ none: false
168
+ requirement: !ruby/object:Gem::Requirement
106
169
  requirements:
107
- - - ! '>='
170
+ - - ">="
108
171
  - !ruby/object:Gem::Version
109
- version: '0'
172
+ version: !binary |-
173
+ MA==
110
174
  none: false
111
- requirement: *5882
112
175
  prerelease: false
113
176
  type: :development
114
177
  - !ruby/object:Gem::Dependency
115
178
  name: rake-compiler
116
- version_requirements: &5898 !ruby/object:Gem::Requirement
179
+ version_requirements: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ version: !binary |-
184
+ MA==
185
+ none: false
186
+ requirement: !ruby/object:Gem::Requirement
117
187
  requirements:
118
- - - ! '>='
188
+ - - ">="
119
189
  - !ruby/object:Gem::Version
120
- version: '0'
190
+ version: !binary |-
191
+ MA==
121
192
  none: false
122
- requirement: *5898
123
193
  prerelease: false
124
194
  type: :development
125
195
  - !ruby/object:Gem::Dependency
126
196
  name: rspec
127
- version_requirements: &5914 !ruby/object:Gem::Requirement
197
+ version_requirements: !ruby/object:Gem::Requirement
128
198
  requirements:
129
- - - ! '>='
199
+ - - ">="
130
200
  - !ruby/object:Gem::Version
131
- version: '0'
201
+ version: !binary |-
202
+ MA==
203
+ none: false
204
+ requirement: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: !binary |-
209
+ MA==
132
210
  none: false
133
- requirement: *5914
134
211
  prerelease: false
135
212
  type: :development
136
213
  - !ruby/object:Gem::Dependency
137
214
  name: simplecov
138
- version_requirements: &5930 !ruby/object:Gem::Requirement
215
+ version_requirements: !ruby/object:Gem::Requirement
139
216
  requirements:
140
- - - ! '>='
217
+ - - ">="
141
218
  - !ruby/object:Gem::Version
142
- version: '0'
219
+ version: !binary |-
220
+ MA==
221
+ none: false
222
+ requirement: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - ">="
225
+ - !ruby/object:Gem::Version
226
+ version: !binary |-
227
+ MA==
143
228
  none: false
144
- requirement: *5930
145
229
  prerelease: false
146
230
  type: :development
147
231
  - !ruby/object:Gem::Dependency
148
232
  name: yard
149
- version_requirements: &5946 !ruby/object:Gem::Requirement
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: !binary |-
238
+ MA==
239
+ none: false
240
+ requirement: !ruby/object:Gem::Requirement
150
241
  requirements:
151
- - - ! '>='
242
+ - - ">="
152
243
  - !ruby/object:Gem::Version
153
- version: '0'
244
+ version: !binary |-
245
+ MA==
154
246
  none: false
155
- requirement: *5946
156
247
  prerelease: false
157
248
  type: :development
158
249
  description: Google Protocol Buffers v2.4.1 Serialization and RPC implementation for Ruby.
@@ -165,9 +256,9 @@ executables:
165
256
  extensions: []
166
257
  extra_rdoc_files: []
167
258
  files:
168
- - .gitignore
169
- - .travis.yml
170
- - .yardopts
259
+ - ".gitignore"
260
+ - ".travis.yml"
261
+ - ".yardopts"
171
262
  - CONTRIBUTING.md
172
263
  - Gemfile
173
264
  - README.md
@@ -431,25 +522,27 @@ require_paths:
431
522
  - lib
432
523
  required_ruby_version: !ruby/object:Gem::Requirement
433
524
  requirements:
434
- - - ! '>='
525
+ - - ">="
435
526
  - !ruby/object:Gem::Version
436
527
  segments:
437
528
  - 0
438
529
  hash: 2
439
- version: '0'
530
+ version: !binary |-
531
+ MA==
440
532
  none: false
441
533
  required_rubygems_version: !ruby/object:Gem::Requirement
442
534
  requirements:
443
- - - ! '>='
535
+ - - ">="
444
536
  - !ruby/object:Gem::Version
445
537
  segments:
446
538
  - 0
447
539
  hash: 2
448
- version: '0'
540
+ version: !binary |-
541
+ MA==
449
542
  none: false
450
543
  requirements: []
451
544
  rubyforge_project:
452
- rubygems_version: 1.8.15
545
+ rubygems_version: 1.8.24
453
546
  signing_key:
454
547
  specification_version: 3
455
548
  summary: Google Protocol Buffers v2.4.1 Serialization and RPC implementation for Ruby.
@@ -540,4 +633,3 @@ test_files:
540
633
  - test/test_standard_message.rb
541
634
  - test/test_types.rb
542
635
  has_rdoc:
543
- ...