msgpack 0.7.4-x64-mingw32 → 0.7.5-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- 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: 87acc2b6a7ffab87082a0ce54dd314889ca53355
|
4
|
+
data.tar.gz: bc8db2d4b84b68f740d361cd8578507dc3d1478b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7de362993d2b36445db1bd2233565c9a08781d1370ba3a4e0b2469c1995aafa0d575779416024d86b055e7a3127218f17c3b6b27ec69a00a80c28126bc99baef
|
7
|
+
data.tar.gz: 836e279f6c8e3cc88eec152ae30838f14b242444e6ff8f5925a3a31414d04e0ac064b9c210449f99e4e843f1f932471f4b315397e9673c88aa0e0e100ca04ac3
|
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 && gem i json && rake cross native gem RUBY_CC_VERSION=
|
68
|
+
RakeCompilerDock.sh 'bundle && gem i json && rake cross native gem RUBY_CC_VERSION=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: x64-mingw32
|
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
|