msgpack 0.7.4 → 0.7.5

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
  SHA1:
3
- metadata.gz: 452730fc6dbf9e301355b759c9f5ff7080bb88ad
4
- data.tar.gz: 7bd19e617d2298a59be2505929f0888167c39d1c
3
+ metadata.gz: 6ba9f040ee3d1216597e2beefef6251fa120b7a0
4
+ data.tar.gz: c248b8969af05080d2e68c33d4bec95faa5867e8
5
5
  SHA512:
6
- metadata.gz: f42256792f53a9188e688222f0f44c461bdc3849614bd155f0340a48de437fde596d294341a8b30de27269c69f4ef984da40cca12c76f76c312b83d08a8bf58d
7
- data.tar.gz: eab376976af6d888b3422a25cd49a4a7dbbe9e11071a0b8ae40491700505cb10d7e5b7768fc8f459aa93e3a58d7f9fe940d0fb70e268244e76f67f3757dfad32
6
+ metadata.gz: 82627fad314167164461fd41ddd01b9f46cad8261090d20c49b1789d80579ea5b1035ba3be8cb285bfd517d437ebc24b8de4763423e1afd33f192b7c59c1d714
7
+ data.tar.gz: 4ce0ecaed760e8a94ea3514717729c476a79d0848b614823b109c0a9dfee60ae0b50d4655fbe8685b70c17fcaa8dc889a6accec3ce588f5597884032b2f7509c
@@ -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
 
@@ -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 = rb_num2int(argv[0]);
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
  }
@@ -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 = rb_num2int(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 = rb_num2int(argv[0]);
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
  }
@@ -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 = rb_num2int(argv[0]);
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
  }
@@ -1,3 +1,3 @@
1
1
  module MessagePack
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
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
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-01-08 00:00:00.000000000 Z
13
+ date: 2016-04-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler