protobuf 2.8.12 → 2.8.13

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
  SHA1:
3
- metadata.gz: efe08a7faee910498fc572c1b499ae2f641b0e93
4
- data.tar.gz: 899e74e0629fa38f693d3c1b0d4fe6f724976bcd
3
+ metadata.gz: 450f953345bf0510126fb5bbd1fe8e1e432b1713
4
+ data.tar.gz: d61858293423248cfa6fa535b7b85a265971c292
5
5
  SHA512:
6
- metadata.gz: 3106b762d3572a2e72f7c83dffc994107bfefa8fc355fd20c2bb64b5a7acccacc2b86936bac52c17a9843b445ea288492a7f3b2cd262543e24a26345392a898b
7
- data.tar.gz: 2c69aa17d42e15b8eee75b5875394a229aaeb6860bdfaba7feb928ad23e3d57a2ab8ce882c747f853e712716106cffcd750be3f180007e0d339044095bcaf791
6
+ metadata.gz: 94314fef1e4ec9e3d52dc02c58c1d24425c486080393da52eb722c49955688655f6f5543041fadd5df098fb96575198cd12da95cf4adf66f0c0ac48c49db2fd9
7
+ data.tar.gz: 798d0d104e6ab490fadda832837bcece0b19ff9f7509dd54d50162cfe9ce76c24d47a4af78915651135ba5153cc5da2c1c44b85476b3d5a9f8a5369620e14e7e
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ 2.8.13
2
+ ---------
3
+
4
+ - Backport #190 to 2.8 stable series. [#192]
5
+
1
6
  2.8.12
2
7
  ---------
3
8
 
@@ -122,6 +122,11 @@ module Protobuf
122
122
  define_field(:required, type, name, tag, options)
123
123
  end
124
124
 
125
+ # Backported fix to prevent recursive to_json issues.
126
+ def self.to_json
127
+ name
128
+ end
129
+
125
130
  ##
126
131
  # Constructor
127
132
  #
@@ -1,4 +1,4 @@
1
1
  module Protobuf
2
- VERSION = '2.8.12'
2
+ VERSION = '2.8.13'
3
3
  PROTOC_VERSION = '2.5.0'
4
4
  end
@@ -289,6 +289,16 @@ describe Protobuf::Message do
289
289
  its(:to_json) { should eq '{"name":"Test Name","active":false}' }
290
290
  end
291
291
 
292
+ describe '.to_json' do
293
+ it 'returns the class name of the message for use in json encoding' do
294
+ expect {
295
+ ::Timeout.timeout(0.1) do
296
+ expect(::Test::Resource.to_json).to eq("Test::Resource")
297
+ end
298
+ }.not_to raise_error
299
+ end
300
+ end
301
+
292
302
  describe '#get_field_by_name' do
293
303
  subject do
294
304
  ::Test::Resource.new({ :name => 'Test Name', :date_created => Time.now.to_i })
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.8.12
4
+ version: 2.8.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - BJ Neilsen
@@ -10,160 +10,160 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-02-11 00:00:00.000000000 Z
13
+ date: 2014-03-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '>='
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  version: '0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: multi_json
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: thor
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - '>='
54
+ - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: eventmachine
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: ffi-rzmq
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - '>='
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: pry-nav
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - '>='
89
+ - - ">="
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - '>='
96
+ - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: rake
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - '>='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rspec
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - '>='
117
+ - - ">="
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  type: :development
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - '>='
124
+ - - ">="
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: simplecov
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - '>='
131
+ - - ">="
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - '>='
138
+ - - ">="
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: yard
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - '>='
145
+ - - ">="
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  type: :development
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - '>='
152
+ - - ">="
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: timecop
157
157
  requirement: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - '>='
159
+ - - ">="
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
162
  type: :development
163
163
  prerelease: false
164
164
  version_requirements: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - '>='
166
+ - - ">="
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  description: Google Protocol Buffers serialization and RPC implementation for Ruby.
@@ -178,9 +178,9 @@ executables:
178
178
  extensions: []
179
179
  extra_rdoc_files: []
180
180
  files:
181
- - .gitignore
182
- - .travis.yml
183
- - .yardopts
181
+ - ".gitignore"
182
+ - ".travis.yml"
183
+ - ".yardopts"
184
184
  - CHANGES.md
185
185
  - CONTRIBUTING.md
186
186
  - Gemfile
@@ -359,17 +359,17 @@ require_paths:
359
359
  - lib
360
360
  required_ruby_version: !ruby/object:Gem::Requirement
361
361
  requirements:
362
- - - '>='
362
+ - - ">="
363
363
  - !ruby/object:Gem::Version
364
364
  version: '0'
365
365
  required_rubygems_version: !ruby/object:Gem::Requirement
366
366
  requirements:
367
- - - '>='
367
+ - - ">="
368
368
  - !ruby/object:Gem::Version
369
369
  version: '0'
370
370
  requirements: []
371
371
  rubyforge_project:
372
- rubygems_version: 2.1.2
372
+ rubygems_version: 2.2.2
373
373
  signing_key:
374
374
  specification_version: 4
375
375
  summary: Google Protocol Buffers serialization and RPC implementation for Ruby.