google-protobuf 3.0.0.alpha.5.0.4-x64-mingw32 → 3.0.0.alpha.5.0.5.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of google-protobuf might be problematic. Click here for more details.

Binary file
Binary file
Binary file
Binary file
@@ -1160,8 +1160,13 @@ module BasicTest
1160
1160
  # TODO: Fix JSON in JRuby version.
1161
1161
  return if RUBY_PLATFORM == "java"
1162
1162
  m = MapMessage.new(:map_string_int32 => {"a" => 1})
1163
- expected = '{"map_string_int32":{"a":1},"map_string_msg":{}}'
1163
+ expected = '{"mapStringInt32":{"a":1},"mapStringMsg":{}}'
1164
+ expected_preserve = '{"map_string_int32":{"a":1},"map_string_msg":{}}'
1164
1165
  assert MapMessage.encode_json(m) == expected
1166
+
1167
+ json = MapMessage.encode_json(m, :preserve_proto_fieldnames => true)
1168
+ assert json == expected_preserve
1169
+
1165
1170
  m2 = MapMessage.decode_json(MapMessage.encode_json(m))
1166
1171
  assert m == m2
1167
1172
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha.5.0.4
4
+ version: 3.0.0.alpha.5.0.5.1
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-09 00:00:00.000000000 Z
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock