msgpack 1.3.0-x64-mingw32 → 1.3.1-x64-mingw32
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 +4 -0
- data/doclib/msgpack/time.rb +1 -1
- 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: 22a45305410f8cad0ce199c29f56e957d52a2e8abd3fd72523137ae6efe2c7a2
|
4
|
+
data.tar.gz: 69fef0679e17223ed407933d80bbe338badaba7e047b0eebed6b4684e2e4c247
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36e767394321aa61e02f0d9609c8d55e29f93158197a843604c8bb875486d70a7662722d6bc62fa0e724fdc0384cfbd31812d4647aa7b54cb332c0b0e0346004
|
7
|
+
data.tar.gz: 27fd759e4c2b68b4740445993628300323ca7b7cbf7452383bf49e95ebe2e597bc36d5a4e7a54f875e3ace1920b2c5cee928613460397c7484b80788903973b2
|
data/.gitignore
CHANGED
data/ChangeLog
CHANGED
data/doclib/msgpack/time.rb
CHANGED
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.1
|
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: 2019-
|
13
|
+
date: 2019-08-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
250
|
- !ruby/object:Gem::Version
|
251
251
|
version: '0'
|
252
252
|
requirements: []
|
253
|
-
rubyforge_project:
|
253
|
+
rubyforge_project:
|
254
254
|
rubygems_version: 2.7.9
|
255
255
|
signing_key:
|
256
256
|
specification_version: 4
|