msgpack 1.3.0 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/ChangeLog +8 -0
- data/Rakefile +1 -1
- data/doclib/msgpack/time.rb +1 -1
- data/ext/msgpack/unpacker_class.c +0 -3
- data/lib/msgpack/timestamp.rb +1 -1
- data/lib/msgpack/version.rb +1 -1
- data/msgpack.gemspec +0 -1
- data/spec/timestamp_spec.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b4715c3bb5b0a9ac8d625de65a81774176daa6dc34e2c4d5906ce85256c49ec
|
4
|
+
data.tar.gz: b9cfa42546b45f98ba5f5d4233aec55c8432aea7e9d630fa42ded65bae69a289
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10a32910ca734bba1a38dc3c23e5981f32de2e86d81c2d3be3902369c0d19e77a3dd507a3c6019cdfce85795d084d37457563ee3f3bb3f752625bdd0de0fc30a
|
7
|
+
data.tar.gz: 118f4ad4333e59f581232b6ce56c80e95c7166a73c0143aeca5da8e07492d307eec81c797fae587653955e4563a23d5a4f0220671016255934ceaae58e635db0
|
data/.gitignore
CHANGED
data/ChangeLog
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
2020-02-04 version 1.3.2:
|
2
|
+
|
3
|
+
* Add Ruby 2.7.0 binary in gem releases for Windows
|
4
|
+
|
5
|
+
2019-08-05 version 1.3.1:
|
6
|
+
|
7
|
+
* Fix timestamp ext type bug about timestamps with seconds larger than 32bit int (after 2106-02-07 06:28:16 UTC)
|
8
|
+
|
1
9
|
2019-06-20 verison 1.3.0:
|
2
10
|
|
3
11
|
* Add timestamp ext type (id:-1) support
|
data/Rakefile
CHANGED
@@ -69,7 +69,7 @@ namespace :build do
|
|
69
69
|
task :windows do
|
70
70
|
require 'rake_compiler_dock'
|
71
71
|
# See RUBY_CC_VERSION in https://github.com/rake-compiler/rake-compiler-dock/blob/master/Dockerfile
|
72
|
-
RakeCompilerDock.sh 'bundle && gem i json && rake cross native gem RUBY_CC_VERSION=2.2.2:2.3.0:2.4.0:2.5.0:2.6.0'
|
72
|
+
RakeCompilerDock.sh 'bundle && gem i json && rake cross native gem RUBY_CC_VERSION=2.2.2:2.3.0:2.4.0:2.5.0:2.6.0:2.7.0'
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
data/doclib/msgpack/time.rb
CHANGED
@@ -77,9 +77,6 @@ VALUE MessagePack_Unpacker_initialize(int argc, VALUE* argv, VALUE self)
|
|
77
77
|
VALUE v = argv[0];
|
78
78
|
if(rb_type(v) == T_HASH) {
|
79
79
|
options = v;
|
80
|
-
if(rb_type(options) != T_HASH) {
|
81
|
-
rb_raise(rb_eArgError, "expected Hash but found %s.", rb_obj_classname(options));
|
82
|
-
}
|
83
80
|
} else {
|
84
81
|
io = v;
|
85
82
|
}
|
data/lib/msgpack/timestamp.rb
CHANGED
@@ -55,7 +55,7 @@ module MessagePack
|
|
55
55
|
else
|
56
56
|
# timestamp64 (nsec: uint30be, sec: uint34be)
|
57
57
|
nsec30 = nsec << 2
|
58
|
-
sec_high2 = sec
|
58
|
+
sec_high2 = sec >> 32 # high 2 bits (`x & 0b11` is redandunt)
|
59
59
|
sec_low32 = sec & 0xffffffff # low 32 bits
|
60
60
|
[nsec30 | sec_high2, sec_low32].pack('L>2')
|
61
61
|
end
|
data/lib/msgpack/version.rb
CHANGED
data/msgpack.gemspec
CHANGED
@@ -10,7 +10,6 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = ["frsyuki@gmail.com", "theo@iconara.net", "tagomoris@gmail.com"]
|
11
11
|
s.license = "Apache 2.0"
|
12
12
|
s.homepage = "http://msgpack.org/"
|
13
|
-
s.rubyforge_project = "msgpack"
|
14
13
|
s.require_paths = ["lib"]
|
15
14
|
if /java/ =~ RUBY_PLATFORM
|
16
15
|
s.files = Dir['lib/**/*.rb', 'lib/**/*.jar']
|
data/spec/timestamp_spec.rb
CHANGED
@@ -56,6 +56,10 @@ describe MessagePack::Timestamp do
|
|
56
56
|
expect(packed).to start_with(prefix_ext8_with_12bytes_payload_and_type_id)
|
57
57
|
expect(packed.size).to eq(15)
|
58
58
|
end
|
59
|
+
|
60
|
+
it 'runs correctly (regression)' do
|
61
|
+
expect(factory.unpack(factory.pack(Time.utc(2200)))).to eq(Time.utc(2200))
|
62
|
+
end
|
59
63
|
end
|
60
64
|
|
61
65
|
describe 'register_type with MessagePack::Timestamp' do
|
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.3.
|
4
|
+
version: 1.3.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:
|
13
|
+
date: 2020-02-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
243
|
- !ruby/object:Gem::Version
|
244
244
|
version: '0'
|
245
245
|
requirements: []
|
246
|
-
rubygems_version: 3.
|
246
|
+
rubygems_version: 3.1.2
|
247
247
|
signing_key:
|
248
248
|
specification_version: 4
|
249
249
|
summary: MessagePack, a binary-based efficient data interchange format.
|