cbor 0.5.9.6 → 0.5.9.8

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
  SHA256:
3
- metadata.gz: 66e94d0670480bd8e653ea0a044303ce47d445c8a7f311a3779c726cccbc6e24
4
- data.tar.gz: 2f095fc969e7c1353dc5a626c096a6ceddbd9d39737b2fe7d77bcb7cf2d1c30a
3
+ metadata.gz: 1fde89772ca3789b849d40d48a12849e392b7b9b02d8820fa793eeb3ae418b1a
4
+ data.tar.gz: a16f9795a8bf5ead163b7fd058953fd8c0a37141573b2a283dacc4850088ea3a
5
5
  SHA512:
6
- metadata.gz: e80ba76467f4927421e537c52db8cd068d2b8009d7f259af555c16ebb7b284442832772b10b70911c289b969f507f271dcf926869551a4bc43fe8b7b1b04c559
7
- data.tar.gz: c9920aa86b677e52ed233aaeae27a5871a08ac1f031a77fa52aec8ce4e9e9815a4b5688fe90ae90c97a35c25a9f63f2789893556d9ea6b60961706bb10c372f7
6
+ metadata.gz: effe366111276e913d3cd3d0c2f87b95deba0bfbc0665898ae55feabc4b21e652490a033655dbf516edb041cc6ee2fceb716dab6fa9896c68ef0998fdc04ac99
7
+ data.tar.gz: 10199d0ecba851b398ea0d8f4998961d9f7067deac568b25ba5bbeb46ac7962d6cb8c038952ab680c6a2c31a9469e3866fcad6136164fbf6155af7d1eeb72439
data/.travis.yml CHANGED
@@ -3,9 +3,10 @@ rvm:
3
3
  - 2.0.0
4
4
  - 2.1.10
5
5
  - 2.2.10
6
- - 2.3.7
7
- - 2.4.4
8
- - 2.5.1
6
+ - 2.3.8
7
+ - 2.4.6
8
+ - 2.5.5
9
+ - 2.6.3
9
10
  - ruby-head
10
11
  matrix:
11
12
  allow_failures:
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', RUBY_VERSION.to_f < 2.3 ? ['~> 1.0'] : ['~> 2.0']
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']
@@ -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
- free(b);
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
 
@@ -52,7 +52,7 @@ static void Packer_free(msgpack_packer_t* pk)
52
52
  return;
53
53
  }
54
54
  msgpack_packer_destroy(pk);
55
- free(pk);
55
+ xfree(pk);
56
56
  }
57
57
 
58
58
  static VALUE Packer_alloc(VALUE klass)
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==10) so we can avoid a conditional
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)
@@ -52,7 +52,7 @@ static void Unpacker_free(msgpack_unpacker_t* uk)
52
52
  return;
53
53
  }
54
54
  msgpack_unpacker_destroy(uk);
55
- free(uk);
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
@@ -1,3 +1,3 @@
1
1
  module CBOR
2
- VERSION = "0.5.9.6"
2
+ VERSION = "0.5.9.8"
3
3
  end
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.6
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: 2019-06-22 00:00:00.000000000 Z
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: '2.0'
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: '2.0'
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.0.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: