msgpack 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yaml +5 -5
- data/ChangeLog +4 -0
- data/ext/msgpack/unpacker.c +0 -2
- data/lib/msgpack/version.rb +1 -1
- data/spec/factory_spec.rb +6 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/timestamp_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7de0658b1f87162270c3cc2aac70ffff8d408d974faac6ff5ad009fa11dba4dd
|
4
|
+
data.tar.gz: 9da35f2cc47ced45efd96b10ad8a3b491f0658b5ba247ad7b4aa22b901c66110
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b23c683b4c7fbbedd8dedc5d6eb8f5d6778aa3d3f7afef839cfe3227fc2edff713d9f17d6c8ce3808a6103325d7923ca6abfaf8792dba11485ed9d067fe6aa42
|
7
|
+
data.tar.gz: ced82946481b00d99a69aea792efbeb93982d39836bc763c7c4a0f71844ca48044cff1f58c9695aa4ebb19d0be6a0b43f2e3b4af04ca06d7ad4bfc798cacd0b8
|
data/.github/workflows/ci.yaml
CHANGED
@@ -25,12 +25,12 @@ jobs:
|
|
25
25
|
bundler-cache: true # 'bundle install' and cache
|
26
26
|
- run: bundle exec rake
|
27
27
|
|
28
|
-
|
28
|
+
other:
|
29
29
|
strategy:
|
30
30
|
fail-fast: false
|
31
31
|
matrix:
|
32
32
|
os: [ubuntu]
|
33
|
-
ruby: ['jruby-9.2.19.0', 'jruby-9.3.3.0']
|
33
|
+
ruby: ['jruby-9.2.19.0', 'jruby-9.3.3.0', 'truffleruby']
|
34
34
|
runs-on: ${{ matrix.os }}-latest
|
35
35
|
steps:
|
36
36
|
- uses: actions/checkout@v2
|
@@ -38,7 +38,7 @@ jobs:
|
|
38
38
|
with:
|
39
39
|
ruby-version: ${{ matrix.ruby }}
|
40
40
|
bundler-cache: true # 'bundle install' and cache
|
41
|
-
- run: bundle exec rake
|
41
|
+
- run: bundle exec rake spec
|
42
42
|
|
43
43
|
head-versions:
|
44
44
|
continue-on-error: true
|
@@ -46,7 +46,7 @@ jobs:
|
|
46
46
|
fail-fast: false
|
47
47
|
matrix:
|
48
48
|
os: [ubuntu]
|
49
|
-
ruby: ['ruby-head', 'jruby-head'
|
49
|
+
ruby: ['ruby-head', 'jruby-head']
|
50
50
|
runs-on: ${{ matrix.os }}-latest
|
51
51
|
steps:
|
52
52
|
- uses: actions/checkout@v2
|
@@ -54,4 +54,4 @@ jobs:
|
|
54
54
|
with:
|
55
55
|
ruby-version: ${{ matrix.ruby }}
|
56
56
|
bundler-cache: true # 'bundle install' and cache
|
57
|
-
- run: bundle exec rake || echo "failed, but ignore it"
|
57
|
+
- run: bundle exec rake spec || echo "failed, but ignore it"
|
data/ChangeLog
CHANGED
data/ext/msgpack/unpacker.c
CHANGED
@@ -302,7 +302,6 @@ static inline int read_raw_body_begin(msgpack_unpacker_t* uk, int raw_type)
|
|
302
302
|
VALUE obj;
|
303
303
|
uk->last_object = Qnil;
|
304
304
|
reset_head_byte(uk);
|
305
|
-
size_t ext_size = uk->reading_raw_remaining;
|
306
305
|
uk->reading_raw_remaining = 0;
|
307
306
|
|
308
307
|
msgpack_unpacker_stack_t* stack = uk->stack;
|
@@ -320,7 +319,6 @@ static inline int read_raw_body_begin(msgpack_unpacker_t* uk, int raw_type)
|
|
320
319
|
uk->stack_depth = stack_depth;
|
321
320
|
uk->stack_capacity = stack_capacity;
|
322
321
|
|
323
|
-
msgpack_buffer_skip(UNPACKER_BUFFER_(uk), ext_size);
|
324
322
|
return object_complete(uk, obj);
|
325
323
|
}
|
326
324
|
}
|
data/lib/msgpack/version.rb
CHANGED
data/spec/factory_spec.rb
CHANGED
@@ -422,6 +422,12 @@ describe MessagePack::Factory do
|
|
422
422
|
MessagePack::ExtensionValue.new(1, factory.dump(x: 1, y: 2, z: 3)),
|
423
423
|
3,
|
424
424
|
]
|
425
|
+
|
426
|
+
expect(factory.load(payload)).to be == [
|
427
|
+
1,
|
428
|
+
Point.new(1, 2, 3),
|
429
|
+
3,
|
430
|
+
]
|
425
431
|
end
|
426
432
|
|
427
433
|
it 'can be nested' do
|
data/spec/spec_helper.rb
CHANGED
data/spec/timestamp_spec.rb
CHANGED
@@ -87,14 +87,14 @@ describe MessagePack::Timestamp do
|
|
87
87
|
|
88
88
|
let(:time96_min) { Time.at(-2**63).utc }
|
89
89
|
it 'is serialized into timestamp96' do
|
90
|
-
skip if IS_JRUBY # JRuby
|
90
|
+
skip if IS_JRUBY || IS_TRUFFLERUBY # JRuby and TruffleRuby both use underlying Java time classes that do not support |year| >= 1 billion
|
91
91
|
expect(factory.pack(time96_min).size).to be 15
|
92
92
|
expect(factory.unpack(factory.pack(time96_min)).utc).to eq(time96_min)
|
93
93
|
end
|
94
94
|
|
95
95
|
let(:time96_max) { Time.at(2**63 - 1).utc }
|
96
96
|
it 'is serialized into timestamp96' do
|
97
|
-
skip if IS_JRUBY # JRuby
|
97
|
+
skip if IS_JRUBY || IS_TRUFFLERUBY # JRuby and TruffleRuby both use underlying Java time classes that do not support |year| >= 1 billion
|
98
98
|
expect(factory.pack(time96_max).size).to be 15
|
99
99
|
expect(factory.unpack(factory.pack(time96_max)).utc).to eq(time96_max)
|
100
100
|
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: 1.5.
|
4
|
+
version: 1.5.2
|
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: 2022-
|
13
|
+
date: 2022-05-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|