msgpack 0.7.4 → 0.7.5
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.
- checksums.yaml +4 -4
 - data/.travis.yml +6 -0
 - data/Rakefile +1 -1
 - data/ext/msgpack/factory_class.c +1 -1
 - data/ext/msgpack/packer_class.c +2 -2
 - data/ext/msgpack/unpacker.c +3 -3
 - data/ext/msgpack/unpacker_class.c +1 -1
 - data/lib/msgpack/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 6ba9f040ee3d1216597e2beefef6251fa120b7a0
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c248b8969af05080d2e68c33d4bec95faa5867e8
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 82627fad314167164461fd41ddd01b9f46cad8261090d20c49b1789d80579ea5b1035ba3be8cb285bfd517d437ebc24b8de4763423e1afd33f192b7c59c1d714
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 4ce0ecaed760e8a94ea3514717729c476a79d0848b614823b109c0a9dfee60ae0b50d4655fbe8685b70c17fcaa8dc889a6accec3ce588f5597884032b2f7509c
         
     | 
    
        data/.travis.yml
    CHANGED
    
    | 
         @@ -4,8 +4,10 @@ rvm: 
     | 
|
| 
       4 
4 
     | 
    
         
             
              - 2.0.0
         
     | 
| 
       5 
5 
     | 
    
         
             
              - 2.1.6
         
     | 
| 
       6 
6 
     | 
    
         
             
              - 2.2.2
         
     | 
| 
      
 7 
     | 
    
         
            +
              - 2.3.0
         
     | 
| 
       7 
8 
     | 
    
         
             
              - ruby-head
         
     | 
| 
       8 
9 
     | 
    
         
             
              - jruby-19mode
         
     | 
| 
      
 10 
     | 
    
         
            +
              - jruby-9.0.5.0
         
     | 
| 
       9 
11 
     | 
    
         
             
              - jruby-head
         
     | 
| 
       10 
12 
     | 
    
         | 
| 
       11 
13 
     | 
    
         
             
            os:
         
     | 
| 
         @@ -23,8 +25,12 @@ gemfile: 
     | 
|
| 
       23 
25 
     | 
    
         | 
| 
       24 
26 
     | 
    
         
             
            matrix:
         
     | 
| 
       25 
27 
     | 
    
         
             
              allow_failures:
         
     | 
| 
      
 28 
     | 
    
         
            +
                - rvm: 2.3.0
         
     | 
| 
      
 29 
     | 
    
         
            +
                  os: osx
         
     | 
| 
       26 
30 
     | 
    
         
             
                - rvm: ruby-head
         
     | 
| 
       27 
31 
     | 
    
         
             
                - rvm: jruby-head
         
     | 
| 
       28 
32 
     | 
    
         
             
                - rvm: jruby-19mode
         
     | 
| 
       29 
33 
     | 
    
         
             
                  os: osx
         
     | 
| 
      
 34 
     | 
    
         
            +
                - rvm: jruby-9.0.5.0
         
     | 
| 
      
 35 
     | 
    
         
            +
                  os: osx
         
     | 
| 
       30 
36 
     | 
    
         
             
                - rvm: rbx-2
         
     | 
    
        data/Rakefile
    CHANGED
    
    | 
         @@ -65,7 +65,7 @@ namespace :build do 
     | 
|
| 
       65 
65 
     | 
    
         
             
              desc 'Build gems for Windows per rake-compiler-dock'
         
     | 
| 
       66 
66 
     | 
    
         
             
              task :windows do
         
     | 
| 
       67 
67 
     | 
    
         
             
                require 'rake_compiler_dock'
         
     | 
| 
       68 
     | 
    
         
            -
                RakeCompilerDock.sh 'bundle && rake cross native gem RUBY_CC_VERSION=1.9.3:2.0.0:2.1.6:2.2.2:2.3.0'
         
     | 
| 
      
 68 
     | 
    
         
            +
                RakeCompilerDock.sh 'bundle && gem i json && rake cross native gem RUBY_CC_VERSION=1.9.3:2.0.0:2.1.6:2.2.2:2.3.0'
         
     | 
| 
       69 
69 
     | 
    
         
             
              end
         
     | 
| 
       70 
70 
     | 
    
         
             
            end
         
     | 
| 
       71 
71 
     | 
    
         | 
    
        data/ext/msgpack/factory_class.c
    CHANGED
    
    | 
         @@ -161,7 +161,7 @@ static VALUE Factory_register_type(int argc, VALUE* argv, VALUE self) 
     | 
|
| 
       161 
161 
     | 
    
         
             
                    rb_raise(rb_eArgError, "wrong number of arguments (%d for 2..3)", argc);
         
     | 
| 
       162 
162 
     | 
    
         
             
                }
         
     | 
| 
       163 
163 
     | 
    
         | 
| 
       164 
     | 
    
         
            -
                ext_type =  
     | 
| 
      
 164 
     | 
    
         
            +
                ext_type = NUM2INT(argv[0]);
         
     | 
| 
       165 
165 
     | 
    
         
             
                if(ext_type < -128 || ext_type > 127) {
         
     | 
| 
       166 
166 
     | 
    
         
             
                    rb_raise(rb_eRangeError, "integer %d too big to convert to `signed char'", ext_type);
         
     | 
| 
       167 
167 
     | 
    
         
             
                }
         
     | 
    
        data/ext/msgpack/packer_class.c
    CHANGED
    
    | 
         @@ -163,7 +163,7 @@ static VALUE Packer_write_float32(VALUE self, VALUE numeric) 
     | 
|
| 
       163 
163 
     | 
    
         
             
            static VALUE Packer_write_ext(VALUE self, VALUE type, VALUE data)
         
     | 
| 
       164 
164 
     | 
    
         
             
            {
         
     | 
| 
       165 
165 
     | 
    
         
             
                PACKER(self, pk);
         
     | 
| 
       166 
     | 
    
         
            -
                int ext_type =  
     | 
| 
      
 166 
     | 
    
         
            +
                int ext_type = NUM2INT(type);
         
     | 
| 
       167 
167 
     | 
    
         
             
                if(ext_type < -128 || ext_type > 127) {
         
     | 
| 
       168 
168 
     | 
    
         
             
                    rb_raise(rb_eRangeError, "integer %d too big to convert to `signed char'", ext_type);
         
     | 
| 
       169 
169 
     | 
    
         
             
                }
         
     | 
| 
         @@ -274,7 +274,7 @@ static VALUE Packer_register_type(int argc, VALUE* argv, VALUE self) 
     | 
|
| 
       274 
274 
     | 
    
         
             
                    rb_raise(rb_eArgError, "wrong number of arguments (%d for 2..3)", argc);
         
     | 
| 
       275 
275 
     | 
    
         
             
                }
         
     | 
| 
       276 
276 
     | 
    
         | 
| 
       277 
     | 
    
         
            -
                ext_type =  
     | 
| 
      
 277 
     | 
    
         
            +
                ext_type = NUM2INT(argv[0]);
         
     | 
| 
       278 
278 
     | 
    
         
             
                if(ext_type < -128 || ext_type > 127) {
         
     | 
| 
       279 
279 
     | 
    
         
             
                    rb_raise(rb_eRangeError, "integer %d too big to convert to `signed char'", ext_type);
         
     | 
| 
       280 
280 
     | 
    
         
             
                }
         
     | 
    
        data/ext/msgpack/unpacker.c
    CHANGED
    
    | 
         @@ -369,7 +369,7 @@ static int read_primitive(msgpack_unpacker_t* uk) 
     | 
|
| 
       369 
369 
     | 
    
         
             
                        {
         
     | 
| 
       370 
370 
     | 
    
         
             
                            READ_CAST_BLOCK_OR_RETURN_EOF(cb, uk, 2);
         
     | 
| 
       371 
371 
     | 
    
         
             
                            uint8_t length = cb->u8;
         
     | 
| 
       372 
     | 
    
         
            -
                            int ext_type = cb->buffer[1];
         
     | 
| 
      
 372 
     | 
    
         
            +
                            int ext_type = (signed char) cb->buffer[1];
         
     | 
| 
       373 
373 
     | 
    
         
             
                            if(length == 0) {
         
     | 
| 
       374 
374 
     | 
    
         
             
                                return object_complete_ext(uk, ext_type, rb_str_buf_new(0));
         
     | 
| 
       375 
375 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -381,7 +381,7 @@ static int read_primitive(msgpack_unpacker_t* uk) 
     | 
|
| 
       381 
381 
     | 
    
         
             
                        {
         
     | 
| 
       382 
382 
     | 
    
         
             
                            READ_CAST_BLOCK_OR_RETURN_EOF(cb, uk, 3);
         
     | 
| 
       383 
383 
     | 
    
         
             
                            uint16_t length = _msgpack_be16(cb->u16);
         
     | 
| 
       384 
     | 
    
         
            -
                            int ext_type = cb->buffer[2];
         
     | 
| 
      
 384 
     | 
    
         
            +
                            int ext_type = (signed char) cb->buffer[2];
         
     | 
| 
       385 
385 
     | 
    
         
             
                            if(length == 0) {
         
     | 
| 
       386 
386 
     | 
    
         
             
                                return object_complete_ext(uk, ext_type, rb_str_buf_new(0));
         
     | 
| 
       387 
387 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -393,7 +393,7 @@ static int read_primitive(msgpack_unpacker_t* uk) 
     | 
|
| 
       393 
393 
     | 
    
         
             
                        {
         
     | 
| 
       394 
394 
     | 
    
         
             
                            READ_CAST_BLOCK_OR_RETURN_EOF(cb, uk, 5);
         
     | 
| 
       395 
395 
     | 
    
         
             
                            uint32_t length = _msgpack_be32(cb->u32);
         
     | 
| 
       396 
     | 
    
         
            -
                            int ext_type = cb->buffer[4];
         
     | 
| 
      
 396 
     | 
    
         
            +
                            int ext_type = (signed char) cb->buffer[4];
         
     | 
| 
       397 
397 
     | 
    
         
             
                            if(length == 0) {
         
     | 
| 
       398 
398 
     | 
    
         
             
                                return object_complete_ext(uk, ext_type, rb_str_buf_new(0));
         
     | 
| 
       399 
399 
     | 
    
         
             
                            }
         
     | 
| 
         @@ -373,7 +373,7 @@ static VALUE Unpacker_register_type(int argc, VALUE* argv, VALUE self) 
     | 
|
| 
       373 
373 
     | 
    
         
             
                    rb_raise(rb_eArgError, "wrong number of arguments (%d for 1 or 3)", argc);
         
     | 
| 
       374 
374 
     | 
    
         
             
                }
         
     | 
| 
       375 
375 
     | 
    
         | 
| 
       376 
     | 
    
         
            -
                ext_type =  
     | 
| 
      
 376 
     | 
    
         
            +
                ext_type = NUM2INT(argv[0]);
         
     | 
| 
       377 
377 
     | 
    
         
             
                if(ext_type < -128 || ext_type > 127) {
         
     | 
| 
       378 
378 
     | 
    
         
             
                    rb_raise(rb_eRangeError, "integer %d too big to convert to `signed char'", ext_type);
         
     | 
| 
       379 
379 
     | 
    
         
             
                }
         
     | 
    
        data/lib/msgpack/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: msgpack
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.7. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.7.5
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Sadayuki Furuhashi
         
     | 
| 
         @@ -10,7 +10,7 @@ authors: 
     | 
|
| 
       10 
10 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       11 
11 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       12 
12 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       13 
     | 
    
         
            -
            date: 2016- 
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2016-04-06 00:00:00.000000000 Z
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies:
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       16 
16 
     | 
    
         
             
              name: bundler
         
     |