google-protobuf 3.0.0.alpha.5.0.4-universal-darwin → 3.0.0.alpha.5.0.5.1-universal-darwin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of google-protobuf might be problematic. Click here for more details.
- checksums.yaml +4 -4
 - data/ext/google/protobuf_c/defs.c +10 -0
 - data/ext/google/protobuf_c/encode_decode.c +52 -19
 - data/ext/google/protobuf_c/message.c +19 -21
 - data/ext/google/protobuf_c/protobuf.h +3 -1
 - data/ext/google/protobuf_c/upb.c +2126 -1304
 - data/ext/google/protobuf_c/upb.h +1707 -1355
 - data/lib/google/2.0/protobuf_c.bundle +0 -0
 - data/lib/google/2.1/protobuf_c.bundle +0 -0
 - data/lib/google/2.2/protobuf_c.bundle +0 -0
 - data/lib/google/2.3/protobuf_c.bundle +0 -0
 - data/tests/basic.rb +6 -1
 - metadata +2 -2
 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
    
        data/tests/basic.rb
    CHANGED
    
    | 
         @@ -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 = '{" 
     | 
| 
      
 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 
     | 
    
         
            +
              version: 3.0.0.alpha.5.0.5.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: universal-darwin
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Protobuf Authors
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2016- 
     | 
| 
      
 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
         
     |