msgpack 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +6 -0
- data/ext/msgpack/buffer.c +5 -5
- data/ext/msgpack/buffer.h +2 -0
- data/ext/msgpack/extconf.rb +7 -0
- data/ext/msgpack/packer.c +6 -5
- data/ext/msgpack/packer.h +66 -10
- data/ext/msgpack/unpacker.c +7 -7
- data/lib/msgpack/version.rb +1 -1
- metadata +93 -151
data/ChangeLog
CHANGED
data/ext/msgpack/buffer.c
CHANGED
@@ -611,13 +611,13 @@ size_t msgpack_buffer_flush_to_io(msgpack_buffer_t* b, VALUE io, ID write_method
|
|
611
611
|
size_t _msgpack_buffer_feed_from_io(msgpack_buffer_t* b)
|
612
612
|
{
|
613
613
|
if(b->io_buffer == Qnil) {
|
614
|
-
b->io_buffer = rb_funcall(b->io, b->io_partial_read_method, 1,
|
614
|
+
b->io_buffer = rb_funcall(b->io, b->io_partial_read_method, 1, LONG2NUM(b->io_buffer_size));
|
615
615
|
if(b->io_buffer == Qnil) {
|
616
616
|
rb_raise(rb_eEOFError, "IO reached end of file");
|
617
617
|
}
|
618
618
|
StringValue(b->io_buffer);
|
619
619
|
} else {
|
620
|
-
VALUE ret = rb_funcall(b->io, b->io_partial_read_method, 2,
|
620
|
+
VALUE ret = rb_funcall(b->io, b->io_partial_read_method, 2, LONG2NUM(b->io_buffer_size), b->io_buffer);
|
621
621
|
if(ret == Qnil) {
|
622
622
|
rb_raise(rb_eEOFError, "IO reached end of file");
|
623
623
|
}
|
@@ -638,7 +638,7 @@ size_t _msgpack_buffer_read_from_io_to_string(msgpack_buffer_t* b, VALUE string,
|
|
638
638
|
{
|
639
639
|
if(RSTRING_LEN(string) == 0) {
|
640
640
|
/* direct read */
|
641
|
-
VALUE ret = rb_funcall(b->io, b->io_partial_read_method, 2,
|
641
|
+
VALUE ret = rb_funcall(b->io, b->io_partial_read_method, 2, LONG2NUM(length), string);
|
642
642
|
if(ret == Qnil) {
|
643
643
|
return 0;
|
644
644
|
}
|
@@ -650,7 +650,7 @@ size_t _msgpack_buffer_read_from_io_to_string(msgpack_buffer_t* b, VALUE string,
|
|
650
650
|
b->io_buffer = rb_str_buf_new(0);
|
651
651
|
}
|
652
652
|
|
653
|
-
VALUE ret = rb_funcall(b->io, b->io_partial_read_method, 2,
|
653
|
+
VALUE ret = rb_funcall(b->io, b->io_partial_read_method, 2, LONG2NUM(length), b->io_buffer);
|
654
654
|
if(ret == Qnil) {
|
655
655
|
return 0;
|
656
656
|
}
|
@@ -666,7 +666,7 @@ size_t _msgpack_buffer_skip_from_io(msgpack_buffer_t* b, size_t length)
|
|
666
666
|
b->io_buffer = rb_str_buf_new(0);
|
667
667
|
}
|
668
668
|
|
669
|
-
VALUE ret = rb_funcall(b->io, b->io_partial_read_method, 2,
|
669
|
+
VALUE ret = rb_funcall(b->io, b->io_partial_read_method, 2, LONG2NUM(length), b->io_buffer);
|
670
670
|
if(ret == Qnil) {
|
671
671
|
return 0;
|
672
672
|
}
|
data/ext/msgpack/buffer.h
CHANGED
@@ -92,9 +92,11 @@ struct msgpack_buffer_t {
|
|
92
92
|
msgpack_buffer_chunk_t* head;
|
93
93
|
msgpack_buffer_chunk_t* free_list;
|
94
94
|
|
95
|
+
#ifndef DISABLE_RMEM
|
95
96
|
char* rmem_last;
|
96
97
|
char* rmem_end;
|
97
98
|
void** rmem_owner;
|
99
|
+
#endif
|
98
100
|
|
99
101
|
union msgpack_buffer_cast_block_t cast_block;
|
100
102
|
|
data/ext/msgpack/extconf.rb
CHANGED
@@ -10,6 +10,13 @@ $CFLAGS << %[ -I.. -Wall -O3 -g -std=c99]
|
|
10
10
|
#$CFLAGS << %[ -DDISABLE_BUFFER_READ_REFERENCE_OPTIMIZE]
|
11
11
|
#$CFLAGS << %[ -DDISABLE_BUFFER_READ_TO_S_OPTIMIZE]
|
12
12
|
|
13
|
+
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
|
14
|
+
# msgpack-ruby doesn't modify data came from RSTRING_PTR(str)
|
15
|
+
$CFLAGS << %[ -DRSTRING_NOT_MODIFIED]
|
16
|
+
# Rubinius C extensions don't grab GVL while rmem is not thread safe
|
17
|
+
$CFLAGS << %[ -DDISABLE_RMEM]
|
18
|
+
end
|
19
|
+
|
13
20
|
if warnflags = CONFIG['warnflags']
|
14
21
|
warnflags.slice!(/ -Wdeclaration-after-statement/)
|
15
22
|
end
|
data/ext/msgpack/packer.c
CHANGED
@@ -73,9 +73,9 @@ void msgpack_packer_reset(msgpack_packer_t* pk)
|
|
73
73
|
|
74
74
|
void msgpack_packer_write_array_value(msgpack_packer_t* pk, VALUE v)
|
75
75
|
{
|
76
|
-
|
76
|
+
/* actual return type of RARRAY_LEN is long */
|
77
|
+
unsigned long len = RARRAY_LEN(v);
|
77
78
|
if(len > 0xffffffffUL) {
|
78
|
-
// TODO rb_eArgError?
|
79
79
|
rb_raise(rb_eArgError, "size of array is too long to pack: %lu bytes should be <= %lu", len, 0xffffffffUL);
|
80
80
|
}
|
81
81
|
unsigned int len32 = (unsigned int)len;
|
@@ -101,10 +101,11 @@ static int write_hash_foreach(VALUE key, VALUE value, VALUE pk_value)
|
|
101
101
|
|
102
102
|
void msgpack_packer_write_hash_value(msgpack_packer_t* pk, VALUE v)
|
103
103
|
{
|
104
|
-
|
104
|
+
/* actual return type of RHASH_SIZE is long (if SIZEOF_LONG == SIZEOF_VOIDP
|
105
|
+
* or long long (if SIZEOF_LONG_LONG == SIZEOF_VOIDP. See st.h. */
|
106
|
+
unsigned long len = RHASH_SIZE(v);
|
105
107
|
if(len > 0xffffffffUL) {
|
106
|
-
|
107
|
-
rb_raise(rb_eArgError, "size of array is too long to pack: %lu bytes should be <= %lu", len, 0xffffffffUL);
|
108
|
+
rb_raise(rb_eArgError, "size of array is too long to pack: %ld bytes should be <= %lu", len, 0xffffffffUL);
|
108
109
|
}
|
109
110
|
unsigned int len32 = (unsigned int)len;
|
110
111
|
msgpack_packer_write_map_header(pk, len32);
|
data/ext/msgpack/packer.h
CHANGED
@@ -145,33 +145,56 @@ static inline void _msgpack_packer_write_int64(msgpack_packer_t* pk, int64_t v)
|
|
145
145
|
msgpack_buffer_write_byte_and_data(PACKER_BUFFER_(pk), 0xd3, (const void*)&be, 8);
|
146
146
|
}
|
147
147
|
|
148
|
-
static inline void
|
148
|
+
static inline void _msgpack_packer_write_long32(msgpack_packer_t* pk, long v)
|
149
149
|
{
|
150
150
|
if(v < -0x20L) {
|
151
151
|
if(v < -0x8000L) {
|
152
|
-
|
152
|
+
_msgpack_packer_write_int32(pk, (int32_t) v);
|
153
|
+
} else if(v < -0x80L) {
|
154
|
+
_msgpack_packer_write_int16(pk, (int16_t) v);
|
155
|
+
} else {
|
156
|
+
_msgpack_packer_write_int8(pk, (int8_t) v);
|
157
|
+
}
|
158
|
+
} else if(v <= 0x7fL) {
|
159
|
+
_msgpack_packer_write_fixint(pk, (int8_t) v);
|
160
|
+
} else {
|
161
|
+
if(v <= 0xffL) {
|
162
|
+
_msgpack_packer_write_uint8(pk, (uint8_t) v);
|
163
|
+
} else if(v <= 0xffffL) {
|
164
|
+
_msgpack_packer_write_uint16(pk, (uint16_t) v);
|
165
|
+
} else {
|
166
|
+
_msgpack_packer_write_uint32(pk, (uint32_t) v);
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
static inline void _msgpack_packer_write_long_long64(msgpack_packer_t* pk, long long v)
|
172
|
+
{
|
173
|
+
if(v < -0x20LL) {
|
174
|
+
if(v < -0x8000LL) {
|
175
|
+
if(v < -0x80000000LL) {
|
153
176
|
_msgpack_packer_write_int64(pk, (int64_t) v);
|
154
177
|
} else {
|
155
178
|
_msgpack_packer_write_int32(pk, (int32_t) v);
|
156
179
|
}
|
157
180
|
} else {
|
158
|
-
if(v < -
|
181
|
+
if(v < -0x80LL) {
|
159
182
|
_msgpack_packer_write_int16(pk, (int16_t) v);
|
160
183
|
} else {
|
161
184
|
_msgpack_packer_write_int8(pk, (int8_t) v);
|
162
185
|
}
|
163
186
|
}
|
164
|
-
} else if(v <=
|
187
|
+
} else if(v <= 0x7fLL) {
|
165
188
|
_msgpack_packer_write_fixint(pk, (int8_t) v);
|
166
189
|
} else {
|
167
|
-
if(v <=
|
168
|
-
if(v <=
|
190
|
+
if(v <= 0xffffLL) {
|
191
|
+
if(v <= 0xffLL) {
|
169
192
|
_msgpack_packer_write_uint8(pk, (uint8_t) v);
|
170
193
|
} else {
|
171
194
|
_msgpack_packer_write_uint16(pk, (uint16_t) v);
|
172
195
|
}
|
173
196
|
} else {
|
174
|
-
if(v <=
|
197
|
+
if(v <= 0xffffffffLL) {
|
175
198
|
_msgpack_packer_write_uint32(pk, (uint32_t) v);
|
176
199
|
} else {
|
177
200
|
_msgpack_packer_write_uint64(pk, (uint64_t) v);
|
@@ -180,6 +203,37 @@ static inline void msgpack_packer_write_long(msgpack_packer_t* pk, long v)
|
|
180
203
|
}
|
181
204
|
}
|
182
205
|
|
206
|
+
static inline void msgpack_packer_write_long(msgpack_packer_t* pk, long v)
|
207
|
+
{
|
208
|
+
#if defined(SIZEOF_LONG)
|
209
|
+
# if SIZEOF_LONG <= 4
|
210
|
+
_msgpack_packer_write_long32(pk, v);
|
211
|
+
# else
|
212
|
+
_msgpack_packer_write_long_long64(pk, v);
|
213
|
+
# endif
|
214
|
+
|
215
|
+
#elif defined(LONG_MAX)
|
216
|
+
# if LONG_MAX <= 0x7fffffffL
|
217
|
+
_msgpack_packer_write_long32(pk, v);
|
218
|
+
# else
|
219
|
+
_msgpack_packer_write_long_long64(pk, v);
|
220
|
+
# endif
|
221
|
+
|
222
|
+
#else
|
223
|
+
if(sizeof(long) <= 4) {
|
224
|
+
_msgpack_packer_write_long32(pk, v);
|
225
|
+
} else {
|
226
|
+
_msgpack_packer_write_long_long64(pk, v);
|
227
|
+
}
|
228
|
+
#endif
|
229
|
+
}
|
230
|
+
|
231
|
+
static inline void msgpack_packer_write_long_long(msgpack_packer_t* pk, long long v)
|
232
|
+
{
|
233
|
+
/* assuming sizeof(long long) == 8 */
|
234
|
+
_msgpack_packer_write_long_long64(pk, v);
|
235
|
+
}
|
236
|
+
|
183
237
|
static inline void msgpack_packer_write_u64(msgpack_packer_t* pk, uint64_t v)
|
184
238
|
{
|
185
239
|
if(v <= 0xffULL) {
|
@@ -268,7 +322,8 @@ void _msgpack_packer_write_string_to_io(msgpack_packer_t* pk, VALUE string);
|
|
268
322
|
static inline void msgpack_packer_write_string_value(msgpack_packer_t* pk, VALUE v)
|
269
323
|
{
|
270
324
|
/* TODO encoding conversion? */
|
271
|
-
|
325
|
+
/* actual return type of RSTRING_LEN is long */
|
326
|
+
unsigned long len = RSTRING_LEN(v);
|
272
327
|
if(len > 0xffffffffUL) {
|
273
328
|
// TODO rb_eArgError?
|
274
329
|
rb_raise(rb_eArgError, "size of string is too long to pack: %lu bytes should be <= %lu", len, 0xffffffffUL);
|
@@ -280,7 +335,8 @@ static inline void msgpack_packer_write_string_value(msgpack_packer_t* pk, VALUE
|
|
280
335
|
static inline void msgpack_packer_write_symbol_value(msgpack_packer_t* pk, VALUE v)
|
281
336
|
{
|
282
337
|
const char* name = rb_id2name(SYM2ID(v));
|
283
|
-
|
338
|
+
/* actual return type of strlen is size_t */
|
339
|
+
unsigned long len = strlen(name);
|
284
340
|
if(len > 0xffffffffUL) {
|
285
341
|
// TODO rb_eArgError?
|
286
342
|
rb_raise(rb_eArgError, "size of symbol is too long to pack: %lu bytes should be <= %lu", len, 0xffffffffUL);
|
@@ -303,7 +359,7 @@ static inline void msgpack_packer_write_bignum_value(msgpack_packer_t* pk, VALUE
|
|
303
359
|
if(RBIGNUM_POSITIVE_P(v)) {
|
304
360
|
msgpack_packer_write_u64(pk, rb_big2ull(v));
|
305
361
|
} else {
|
306
|
-
|
362
|
+
msgpack_packer_write_long_long(pk, rb_big2ll(v));
|
307
363
|
}
|
308
364
|
}
|
309
365
|
|
data/ext/msgpack/unpacker.c
CHANGED
@@ -251,10 +251,10 @@ static int read_primitive(msgpack_unpacker_t* uk)
|
|
251
251
|
|
252
252
|
SWITCH_RANGE_BEGIN(b)
|
253
253
|
SWITCH_RANGE(b, 0x00, 0x7f) // Positive Fixnum
|
254
|
-
return object_complete(uk,
|
254
|
+
return object_complete(uk, INT2NUM(b));
|
255
255
|
|
256
256
|
SWITCH_RANGE(b, 0xe0, 0xff) // Negative Fixnum
|
257
|
-
return object_complete(uk,
|
257
|
+
return object_complete(uk, INT2NUM((int8_t)b));
|
258
258
|
|
259
259
|
SWITCH_RANGE(b, 0xa0, 0xbf) // FixRaw
|
260
260
|
int count = b & 0x1f;
|
@@ -317,14 +317,14 @@ static int read_primitive(msgpack_unpacker_t* uk)
|
|
317
317
|
{
|
318
318
|
READ_CAST_BLOCK_OR_RETURN_EOF(cb, uk, 1);
|
319
319
|
uint8_t u8 = cb->u8;
|
320
|
-
return object_complete(uk,
|
320
|
+
return object_complete(uk, INT2NUM((int)u8));
|
321
321
|
}
|
322
322
|
|
323
323
|
case 0xcd: // unsigned int 16
|
324
324
|
{
|
325
325
|
READ_CAST_BLOCK_OR_RETURN_EOF(cb, uk, 2);
|
326
326
|
uint16_t u16 = _msgpack_be16(cb->u16);
|
327
|
-
return object_complete(uk,
|
327
|
+
return object_complete(uk, INT2NUM((int)u16));
|
328
328
|
}
|
329
329
|
|
330
330
|
case 0xce: // unsigned int 32
|
@@ -345,21 +345,21 @@ static int read_primitive(msgpack_unpacker_t* uk)
|
|
345
345
|
{
|
346
346
|
READ_CAST_BLOCK_OR_RETURN_EOF(cb, uk, 1);
|
347
347
|
int8_t i8 = cb->i8;
|
348
|
-
return object_complete(uk,
|
348
|
+
return object_complete(uk, INT2NUM((int)i8));
|
349
349
|
}
|
350
350
|
|
351
351
|
case 0xd1: // signed int 16
|
352
352
|
{
|
353
353
|
READ_CAST_BLOCK_OR_RETURN_EOF(cb, uk, 2);
|
354
354
|
int16_t i16 = _msgpack_be16(cb->i16);
|
355
|
-
return object_complete(uk,
|
355
|
+
return object_complete(uk, INT2NUM((int)i16));
|
356
356
|
}
|
357
357
|
|
358
358
|
case 0xd2: // signed int 32
|
359
359
|
{
|
360
360
|
READ_CAST_BLOCK_OR_RETURN_EOF(cb, uk, 4);
|
361
361
|
int32_t i32 = _msgpack_be32(cb->i32);
|
362
|
-
return object_complete(uk,
|
362
|
+
return object_complete(uk, LONG2NUM((long)i32));
|
363
363
|
}
|
364
364
|
|
365
365
|
case 0xd3: // signed int 64
|
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.5.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,104 +9,104 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
|
15
|
+
name: bundler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
17
18
|
requirements:
|
18
19
|
- - ~>
|
19
20
|
- !ruby/object:Gem::Version
|
20
21
|
version: '1.0'
|
21
|
-
|
22
|
-
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
23
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ~>
|
26
28
|
- !ruby/object:Gem::Version
|
27
29
|
version: '1.0'
|
28
|
-
none: false
|
29
|
-
type: :development
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
|
31
|
+
name: rake
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
33
34
|
requirements:
|
34
35
|
- - ~>
|
35
36
|
- !ruby/object:Gem::Version
|
36
37
|
version: 0.9.2
|
37
|
-
|
38
|
-
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
39
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
40
42
|
requirements:
|
41
43
|
- - ~>
|
42
44
|
- !ruby/object:Gem::Version
|
43
45
|
version: 0.9.2
|
44
|
-
none: false
|
45
|
-
type: :development
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
|
47
|
+
name: rake-compiler
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
49
50
|
requirements:
|
50
51
|
- - ~>
|
51
52
|
- !ruby/object:Gem::Version
|
52
53
|
version: 0.8.1
|
53
|
-
|
54
|
-
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
55
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
56
58
|
requirements:
|
57
59
|
- - ~>
|
58
60
|
- !ruby/object:Gem::Version
|
59
61
|
version: 0.8.1
|
60
|
-
none: false
|
61
|
-
type: :development
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
|
63
|
+
name: rspec
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
65
66
|
requirements:
|
66
67
|
- - ~>
|
67
68
|
- !ruby/object:Gem::Version
|
68
69
|
version: '2.11'
|
69
|
-
|
70
|
-
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
71
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
72
74
|
requirements:
|
73
75
|
- - ~>
|
74
76
|
- !ruby/object:Gem::Version
|
75
77
|
version: '2.11'
|
76
|
-
none: false
|
77
|
-
type: :development
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
|
-
|
79
|
+
name: json
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
81
82
|
requirements:
|
82
83
|
- - ~>
|
83
84
|
- !ruby/object:Gem::Version
|
84
85
|
version: '1.7'
|
85
|
-
|
86
|
-
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
87
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
88
90
|
requirements:
|
89
91
|
- - ~>
|
90
92
|
- !ruby/object:Gem::Version
|
91
93
|
version: '1.7'
|
92
|
-
none: false
|
93
|
-
type: :development
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
|
-
|
95
|
+
name: yard
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
97
98
|
requirements:
|
98
99
|
- - ~>
|
99
100
|
- !ruby/object:Gem::Version
|
100
101
|
version: 0.8.2
|
101
|
-
|
102
|
-
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
103
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
104
106
|
requirements:
|
105
107
|
- - ~>
|
106
108
|
- !ruby/object:Gem::Version
|
107
109
|
version: 0.8.2
|
108
|
-
none: false
|
109
|
-
type: :development
|
110
110
|
description: MessagePack is a binary-based efficient object serialization library.
|
111
111
|
It enables to exchange structured objects between many languages like JSON. But
|
112
112
|
unlike JSON, it is very fast and small.
|
@@ -116,100 +116,53 @@ extensions:
|
|
116
116
|
- ext/msgpack/extconf.rb
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
-
-
|
120
|
-
|
121
|
-
-
|
122
|
-
|
123
|
-
-
|
124
|
-
|
125
|
-
-
|
126
|
-
|
127
|
-
-
|
128
|
-
|
129
|
-
-
|
130
|
-
|
131
|
-
-
|
132
|
-
|
133
|
-
-
|
134
|
-
|
135
|
-
-
|
136
|
-
|
137
|
-
-
|
138
|
-
|
139
|
-
-
|
140
|
-
|
141
|
-
-
|
142
|
-
|
143
|
-
-
|
144
|
-
|
145
|
-
-
|
146
|
-
|
147
|
-
-
|
148
|
-
|
149
|
-
-
|
150
|
-
|
151
|
-
-
|
152
|
-
|
153
|
-
-
|
154
|
-
|
155
|
-
-
|
156
|
-
|
157
|
-
-
|
158
|
-
|
159
|
-
-
|
160
|
-
|
161
|
-
-
|
162
|
-
|
163
|
-
-
|
164
|
-
|
165
|
-
-
|
166
|
-
ZXh0L21zZ3BhY2svcmJpbml0LmM=
|
167
|
-
- !binary |-
|
168
|
-
ZXh0L21zZ3BhY2svcm1lbS5j
|
169
|
-
- !binary |-
|
170
|
-
ZXh0L21zZ3BhY2svcm1lbS5o
|
171
|
-
- !binary |-
|
172
|
-
ZXh0L21zZ3BhY2svc3lzZGVwLmg=
|
173
|
-
- !binary |-
|
174
|
-
ZXh0L21zZ3BhY2svc3lzZGVwX2VuZGlhbi5o
|
175
|
-
- !binary |-
|
176
|
-
ZXh0L21zZ3BhY2svc3lzZGVwX3R5cGVzLmg=
|
177
|
-
- !binary |-
|
178
|
-
ZXh0L21zZ3BhY2svdW5wYWNrZXIuYw==
|
179
|
-
- !binary |-
|
180
|
-
ZXh0L21zZ3BhY2svdW5wYWNrZXIuaA==
|
181
|
-
- !binary |-
|
182
|
-
ZXh0L21zZ3BhY2svdW5wYWNrZXJfY2xhc3MuYw==
|
183
|
-
- !binary |-
|
184
|
-
ZXh0L21zZ3BhY2svdW5wYWNrZXJfY2xhc3MuaA==
|
185
|
-
- !binary |-
|
186
|
-
bGliL21zZ3BhY2sucmI=
|
187
|
-
- !binary |-
|
188
|
-
bGliL21zZ3BhY2svdmVyc2lvbi5yYg==
|
189
|
-
- !binary |-
|
190
|
-
bXNncGFjay5nZW1zcGVj
|
191
|
-
- !binary |-
|
192
|
-
c3BlYy9idWZmZXJfaW9fc3BlYy5yYg==
|
193
|
-
- !binary |-
|
194
|
-
c3BlYy9idWZmZXJfc3BlYy5yYg==
|
195
|
-
- !binary |-
|
196
|
-
c3BlYy9jYXNlcy5qc29u
|
197
|
-
- !binary |-
|
198
|
-
c3BlYy9jYXNlcy5tc2c=
|
199
|
-
- !binary |-
|
200
|
-
c3BlYy9jYXNlc19jb21wYWN0Lm1zZw==
|
201
|
-
- !binary |-
|
202
|
-
c3BlYy9jYXNlc19zcGVjLnJi
|
203
|
-
- !binary |-
|
204
|
-
c3BlYy9mb3JtYXRfc3BlYy5yYg==
|
205
|
-
- !binary |-
|
206
|
-
c3BlYy9wYWNrZXJfc3BlYy5yYg==
|
207
|
-
- !binary |-
|
208
|
-
c3BlYy9yYW5kb21fY29tcGF0LnJi
|
209
|
-
- !binary |-
|
210
|
-
c3BlYy9zcGVjX2hlbHBlci5yYg==
|
211
|
-
- !binary |-
|
212
|
-
c3BlYy91bnBhY2tlcl9zcGVjLnJi
|
119
|
+
- .gitignore
|
120
|
+
- ChangeLog
|
121
|
+
- Gemfile
|
122
|
+
- README.rdoc
|
123
|
+
- Rakefile
|
124
|
+
- doclib/msgpack.rb
|
125
|
+
- doclib/msgpack/buffer.rb
|
126
|
+
- doclib/msgpack/core_ext.rb
|
127
|
+
- doclib/msgpack/error.rb
|
128
|
+
- doclib/msgpack/packer.rb
|
129
|
+
- doclib/msgpack/unpacker.rb
|
130
|
+
- ext/msgpack/buffer.c
|
131
|
+
- ext/msgpack/buffer.h
|
132
|
+
- ext/msgpack/buffer_class.c
|
133
|
+
- ext/msgpack/buffer_class.h
|
134
|
+
- ext/msgpack/compat.h
|
135
|
+
- ext/msgpack/core_ext.c
|
136
|
+
- ext/msgpack/core_ext.h
|
137
|
+
- ext/msgpack/extconf.rb
|
138
|
+
- ext/msgpack/packer.c
|
139
|
+
- ext/msgpack/packer.h
|
140
|
+
- ext/msgpack/packer_class.c
|
141
|
+
- ext/msgpack/packer_class.h
|
142
|
+
- ext/msgpack/rbinit.c
|
143
|
+
- ext/msgpack/rmem.c
|
144
|
+
- ext/msgpack/rmem.h
|
145
|
+
- ext/msgpack/sysdep.h
|
146
|
+
- ext/msgpack/sysdep_endian.h
|
147
|
+
- ext/msgpack/sysdep_types.h
|
148
|
+
- ext/msgpack/unpacker.c
|
149
|
+
- ext/msgpack/unpacker.h
|
150
|
+
- ext/msgpack/unpacker_class.c
|
151
|
+
- ext/msgpack/unpacker_class.h
|
152
|
+
- lib/msgpack.rb
|
153
|
+
- lib/msgpack/version.rb
|
154
|
+
- msgpack.gemspec
|
155
|
+
- spec/buffer_io_spec.rb
|
156
|
+
- spec/buffer_spec.rb
|
157
|
+
- spec/cases.json
|
158
|
+
- spec/cases.msg
|
159
|
+
- spec/cases_compact.msg
|
160
|
+
- spec/cases_spec.rb
|
161
|
+
- spec/format_spec.rb
|
162
|
+
- spec/packer_spec.rb
|
163
|
+
- spec/random_compat.rb
|
164
|
+
- spec/spec_helper.rb
|
165
|
+
- spec/unpacker_spec.rb
|
213
166
|
homepage: http://msgpack.org/
|
214
167
|
licenses: []
|
215
168
|
post_install_message:
|
@@ -217,44 +170,33 @@ rdoc_options: []
|
|
217
170
|
require_paths:
|
218
171
|
- lib
|
219
172
|
required_ruby_version: !ruby/object:Gem::Requirement
|
173
|
+
none: false
|
220
174
|
requirements:
|
221
175
|
- - ! '>='
|
222
176
|
- !ruby/object:Gem::Version
|
223
177
|
version: '0'
|
224
|
-
none: false
|
225
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
|
+
none: false
|
226
180
|
requirements:
|
227
181
|
- - ! '>='
|
228
182
|
- !ruby/object:Gem::Version
|
229
183
|
version: '0'
|
230
|
-
none: false
|
231
184
|
requirements: []
|
232
185
|
rubyforge_project: msgpack
|
233
|
-
rubygems_version: 1.8.
|
186
|
+
rubygems_version: 1.8.23
|
234
187
|
signing_key:
|
235
188
|
specification_version: 3
|
236
189
|
summary: MessagePack, a binary-based efficient data interchange format.
|
237
190
|
test_files:
|
238
|
-
-
|
239
|
-
|
240
|
-
-
|
241
|
-
|
242
|
-
-
|
243
|
-
|
244
|
-
-
|
245
|
-
|
246
|
-
-
|
247
|
-
|
248
|
-
-
|
249
|
-
c3BlYy9jYXNlc19zcGVjLnJi
|
250
|
-
- !binary |-
|
251
|
-
c3BlYy9mb3JtYXRfc3BlYy5yYg==
|
252
|
-
- !binary |-
|
253
|
-
c3BlYy9wYWNrZXJfc3BlYy5yYg==
|
254
|
-
- !binary |-
|
255
|
-
c3BlYy9yYW5kb21fY29tcGF0LnJi
|
256
|
-
- !binary |-
|
257
|
-
c3BlYy9zcGVjX2hlbHBlci5yYg==
|
258
|
-
- !binary |-
|
259
|
-
c3BlYy91bnBhY2tlcl9zcGVjLnJi
|
191
|
+
- spec/buffer_io_spec.rb
|
192
|
+
- spec/buffer_spec.rb
|
193
|
+
- spec/cases.json
|
194
|
+
- spec/cases.msg
|
195
|
+
- spec/cases_compact.msg
|
196
|
+
- spec/cases_spec.rb
|
197
|
+
- spec/format_spec.rb
|
198
|
+
- spec/packer_spec.rb
|
199
|
+
- spec/random_compat.rb
|
200
|
+
- spec/spec_helper.rb
|
201
|
+
- spec/unpacker_spec.rb
|
260
202
|
has_rdoc: false
|