protobuf 2.7.10 → 2.7.11

Sign up to get free protection for your applications and to get access to all the features.
data/lib/protobuf.rb CHANGED
@@ -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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.10
4
+ version: 2.7.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ 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
- requirement: &2158357160 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,15 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2158357160
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: ffi
28
- requirement: &2158384120 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ! '>='
@@ -33,10 +38,15 @@ dependencies:
33
38
  version: '0'
34
39
  type: :runtime
35
40
  prerelease: false
36
- version_requirements: *2158384120
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
37
47
  - !ruby/object:Gem::Dependency
38
48
  name: multi_json
39
- requirement: &2158383700 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
40
50
  none: false
41
51
  requirements:
42
52
  - - ! '>='
@@ -44,10 +54,15 @@ dependencies:
44
54
  version: '0'
45
55
  type: :runtime
46
56
  prerelease: false
47
- version_requirements: *2158383700
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
48
63
  - !ruby/object:Gem::Dependency
49
64
  name: thor
50
- requirement: &2158383280 !ruby/object:Gem::Requirement
65
+ requirement: !ruby/object:Gem::Requirement
51
66
  none: false
52
67
  requirements:
53
68
  - - ! '>='
@@ -55,10 +70,15 @@ dependencies:
55
70
  version: '0'
56
71
  type: :runtime
57
72
  prerelease: false
58
- version_requirements: *2158383280
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
59
79
  - !ruby/object:Gem::Dependency
60
80
  name: eventmachine
61
- requirement: &2158382860 !ruby/object:Gem::Requirement
81
+ requirement: !ruby/object:Gem::Requirement
62
82
  none: false
63
83
  requirements:
64
84
  - - ! '>='
@@ -66,10 +86,15 @@ dependencies:
66
86
  version: '0'
67
87
  type: :development
68
88
  prerelease: false
69
- version_requirements: *2158382860
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
70
95
  - !ruby/object:Gem::Dependency
71
96
  name: ffi-rzmq
72
- requirement: &2158382440 !ruby/object:Gem::Requirement
97
+ requirement: !ruby/object:Gem::Requirement
73
98
  none: false
74
99
  requirements:
75
100
  - - ! '>='
@@ -77,10 +102,15 @@ dependencies:
77
102
  version: '0'
78
103
  type: :development
79
104
  prerelease: false
80
- version_requirements: *2158382440
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
81
111
  - !ruby/object:Gem::Dependency
82
112
  name: pry
83
- requirement: &2158382020 !ruby/object:Gem::Requirement
113
+ requirement: !ruby/object:Gem::Requirement
84
114
  none: false
85
115
  requirements:
86
116
  - - ! '>='
@@ -88,10 +118,15 @@ dependencies:
88
118
  version: '0'
89
119
  type: :development
90
120
  prerelease: false
91
- version_requirements: *2158382020
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
92
127
  - !ruby/object:Gem::Dependency
93
128
  name: pry-nav
94
- requirement: &2158381600 !ruby/object:Gem::Requirement
129
+ requirement: !ruby/object:Gem::Requirement
95
130
  none: false
96
131
  requirements:
97
132
  - - ! '>='
@@ -99,10 +134,15 @@ dependencies:
99
134
  version: '0'
100
135
  type: :development
101
136
  prerelease: false
102
- version_requirements: *2158381600
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
103
143
  - !ruby/object:Gem::Dependency
104
144
  name: rake
105
- requirement: &2158381180 !ruby/object:Gem::Requirement
145
+ requirement: !ruby/object:Gem::Requirement
106
146
  none: false
107
147
  requirements:
108
148
  - - ! '>='
@@ -110,10 +150,15 @@ dependencies:
110
150
  version: '0'
111
151
  type: :development
112
152
  prerelease: false
113
- version_requirements: *2158381180
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ! '>='
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
114
159
  - !ruby/object:Gem::Dependency
115
160
  name: rake-compiler
116
- requirement: &2158380760 !ruby/object:Gem::Requirement
161
+ requirement: !ruby/object:Gem::Requirement
117
162
  none: false
118
163
  requirements:
119
164
  - - ! '>='
@@ -121,10 +166,15 @@ dependencies:
121
166
  version: '0'
122
167
  type: :development
123
168
  prerelease: false
124
- version_requirements: *2158380760
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ! '>='
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
125
175
  - !ruby/object:Gem::Dependency
126
176
  name: rspec
127
- requirement: &2158380340 !ruby/object:Gem::Requirement
177
+ requirement: !ruby/object:Gem::Requirement
128
178
  none: false
129
179
  requirements:
130
180
  - - ! '>='
@@ -132,10 +182,15 @@ dependencies:
132
182
  version: '0'
133
183
  type: :development
134
184
  prerelease: false
135
- version_requirements: *2158380340
185
+ version_requirements: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ! '>='
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
136
191
  - !ruby/object:Gem::Dependency
137
192
  name: simplecov
138
- requirement: &2158379920 !ruby/object:Gem::Requirement
193
+ requirement: !ruby/object:Gem::Requirement
139
194
  none: false
140
195
  requirements:
141
196
  - - ! '>='
@@ -143,10 +198,15 @@ dependencies:
143
198
  version: '0'
144
199
  type: :development
145
200
  prerelease: false
146
- version_requirements: *2158379920
201
+ version_requirements: !ruby/object:Gem::Requirement
202
+ none: false
203
+ requirements:
204
+ - - ! '>='
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
147
207
  - !ruby/object:Gem::Dependency
148
208
  name: yard
149
- requirement: &2158379500 !ruby/object:Gem::Requirement
209
+ requirement: !ruby/object:Gem::Requirement
150
210
  none: false
151
211
  requirements:
152
212
  - - ! '>='
@@ -154,7 +214,12 @@ dependencies:
154
214
  version: '0'
155
215
  type: :development
156
216
  prerelease: false
157
- version_requirements: *2158379500
217
+ version_requirements: !ruby/object:Gem::Requirement
218
+ none: false
219
+ requirements:
220
+ - - ! '>='
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
158
223
  description: Google Protocol Buffers v2.4.1 Serialization and RPC implementation for
159
224
  Ruby.
160
225
  email:
@@ -439,7 +504,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
439
504
  version: '0'
440
505
  segments:
441
506
  - 0
442
- hash: -3468436490117225969
507
+ hash: -1094122154149890359
443
508
  required_rubygems_version: !ruby/object:Gem::Requirement
444
509
  none: false
445
510
  requirements:
@@ -448,10 +513,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
448
513
  version: '0'
449
514
  segments:
450
515
  - 0
451
- hash: -3468436490117225969
516
+ hash: -1094122154149890359
452
517
  requirements: []
453
518
  rubyforge_project:
454
- rubygems_version: 1.8.15
519
+ rubygems_version: 1.8.23
455
520
  signing_key:
456
521
  specification_version: 3
457
522
  summary: Google Protocol Buffers v2.4.1 Serialization and RPC implementation for Ruby.