cbor 0.5.9.6 → 0.5.9.8
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 +4 -3
- data/cbor.gemspec +1 -1
- data/ext/cbor/buffer_class.c +3 -2
- data/ext/cbor/packer_class.c +1 -1
- data/ext/cbor/unpacker.c +1 -1
- data/ext/cbor/unpacker_class.c +3 -2
- data/lib/cbor/version.rb +1 -1
- metadata +10 -10
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 1fde89772ca3789b849d40d48a12849e392b7b9b02d8820fa793eeb3ae418b1a
         | 
| 4 | 
            +
              data.tar.gz: a16f9795a8bf5ead163b7fd058953fd8c0a37141573b2a283dacc4850088ea3a
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: effe366111276e913d3cd3d0c2f87b95deba0bfbc0665898ae55feabc4b21e652490a033655dbf516edb041cc6ee2fceb716dab6fa9896c68ef0998fdc04ac99
         | 
| 7 | 
            +
              data.tar.gz: 10199d0ecba851b398ea0d8f4998961d9f7067deac568b25ba5bbeb46ac7962d6cb8c038952ab680c6a2c31a9469e3866fcad6136164fbf6155af7d1eeb72439
         | 
    
        data/.travis.yml
    CHANGED
    
    
    
        data/cbor.gemspec
    CHANGED
    
    | @@ -16,7 +16,7 @@ Gem::Specification.new do |s| | |
| 16 16 | 
             
              s.require_paths = ["lib"]
         | 
| 17 17 | 
             
              s.extensions = ["ext/cbor/extconf.rb"]
         | 
| 18 18 |  | 
| 19 | 
            -
              s.add_development_dependency 'bundler' | 
| 19 | 
            +
              s.add_development_dependency 'bundler'
         | 
| 20 20 | 
             
              s.add_development_dependency 'rake', ['~> 0.9.2']
         | 
| 21 21 | 
             
              s.add_development_dependency 'rake-compiler', ['~> 0.8.3']
         | 
| 22 22 | 
             
              s.add_development_dependency 'rspec', ['~> 2.11']
         | 
    
        data/ext/cbor/buffer_class.c
    CHANGED
    
    | @@ -58,7 +58,7 @@ static void Buffer_free(void* data) | |
| 58 58 | 
             
                }
         | 
| 59 59 | 
             
                msgpack_buffer_t* b = (msgpack_buffer_t*) data;
         | 
| 60 60 | 
             
                msgpack_buffer_destroy(b);
         | 
| 61 | 
            -
                 | 
| 61 | 
            +
                xfree(b);
         | 
| 62 62 | 
             
            }
         | 
| 63 63 |  | 
| 64 64 | 
             
            static VALUE Buffer_alloc(VALUE klass)
         | 
| @@ -254,10 +254,11 @@ static VALUE read_until_eof_rescue(VALUE args) | |
| 254 254 | 
             
                return Qnil;
         | 
| 255 255 | 
             
            }
         | 
| 256 256 |  | 
| 257 | 
            -
            static VALUE read_until_eof_error(VALUE args)
         | 
| 257 | 
            +
            static VALUE read_until_eof_error(VALUE args, VALUE error)
         | 
| 258 258 | 
             
            {
         | 
| 259 259 | 
             
                /* ignore EOFError */
         | 
| 260 260 | 
             
                UNUSED(args);
         | 
| 261 | 
            +
                UNUSED(error);
         | 
| 261 262 | 
             
                return Qnil;
         | 
| 262 263 | 
             
            }
         | 
| 263 264 |  | 
    
        data/ext/cbor/packer_class.c
    CHANGED
    
    
    
        data/ext/cbor/unpacker.c
    CHANGED
    
    | @@ -31,7 +31,7 @@ | |
| 31 31 |  | 
| 32 32 | 
             
            /* work around https://bugs.ruby-lang.org/issues/15779 for now
         | 
| 33 33 | 
             
             * by limiting preallocation to about a Tebibyte
         | 
| 34 | 
            -
             * limit is 2**n-1 (n== | 
| 34 | 
            +
             * limit is 2**n-1 (n==28) so we can avoid a conditional
         | 
| 35 35 | 
             
             */
         | 
| 36 36 | 
             
            #define SANE_PREALLOCATION_MAX 0xFFFFFFFUL
         | 
| 37 37 | 
             
            #define SANE_PREALLOCATE(n) (n & SANE_PREALLOCATION_MAX)
         | 
    
        data/ext/cbor/unpacker_class.c
    CHANGED
    
    | @@ -52,7 +52,7 @@ static void Unpacker_free(msgpack_unpacker_t* uk) | |
| 52 52 | 
             
                    return;
         | 
| 53 53 | 
             
                }
         | 
| 54 54 | 
             
                msgpack_unpacker_destroy(uk);
         | 
| 55 | 
            -
                 | 
| 55 | 
            +
                xfree(uk);
         | 
| 56 56 | 
             
            }
         | 
| 57 57 |  | 
| 58 58 | 
             
            static VALUE Unpacker_alloc(VALUE klass)
         | 
| @@ -261,9 +261,10 @@ static VALUE Unpacker_each_impl(VALUE self) | |
| 261 261 | 
             
                }
         | 
| 262 262 | 
             
            }
         | 
| 263 263 |  | 
| 264 | 
            -
            static VALUE Unpacker_rescue_EOFError(VALUE self)
         | 
| 264 | 
            +
            static VALUE Unpacker_rescue_EOFError(VALUE self, VALUE error)
         | 
| 265 265 | 
             
            {
         | 
| 266 266 | 
             
                UNUSED(self);
         | 
| 267 | 
            +
                UNUSED(error);
         | 
| 267 268 | 
             
                return Qnil;
         | 
| 268 269 | 
             
            }
         | 
| 269 270 |  | 
    
        data/lib/cbor/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,29 +1,29 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: cbor
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.5.9. | 
| 4 | 
            +
              version: 0.5.9.8
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Carsten Bormann, standing on the tall shoulders of Sadayuki Furuhashi
         | 
| 8 | 
            -
            autorequire: | 
| 8 | 
            +
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2023-12-31 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| 15 15 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 16 | 
             
                requirements:
         | 
| 17 | 
            -
                - - " | 
| 17 | 
            +
                - - ">="
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: ' | 
| 19 | 
            +
                    version: '0'
         | 
| 20 20 | 
             
              type: :development
         | 
| 21 21 | 
             
              prerelease: false
         | 
| 22 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 23 | 
             
                requirements:
         | 
| 24 | 
            -
                - - " | 
| 24 | 
            +
                - - ">="
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            -
                    version: ' | 
| 26 | 
            +
                    version: '0'
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: rake
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -160,7 +160,7 @@ homepage: http://cbor.io/ | |
| 160 160 | 
             
            licenses:
         | 
| 161 161 | 
             
            - Apache-2.0
         | 
| 162 162 | 
             
            metadata: {}
         | 
| 163 | 
            -
            post_install_message: | 
| 163 | 
            +
            post_install_message:
         | 
| 164 164 | 
             
            rdoc_options: []
         | 
| 165 165 | 
             
            require_paths:
         | 
| 166 166 | 
             
            - lib
         | 
| @@ -175,8 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 175 175 | 
             
                - !ruby/object:Gem::Version
         | 
| 176 176 | 
             
                  version: '0'
         | 
| 177 177 | 
             
            requirements: []
         | 
| 178 | 
            -
            rubygems_version: 3. | 
| 179 | 
            -
            signing_key: | 
| 178 | 
            +
            rubygems_version: 3.4.10
         | 
| 179 | 
            +
            signing_key:
         | 
| 180 180 | 
             
            specification_version: 4
         | 
| 181 181 | 
             
            summary: CBOR, Concise Binary Object Representation.
         | 
| 182 182 | 
             
            test_files:
         |