msgpack 1.3.0-java → 1.3.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50acb5f580ca3bc5003de45dc2348d7461365b6f262bb39d5c06095b31889dd2
4
- data.tar.gz: 4071ce9a089de10c2a3f583c27aaa9f8ca952766d29a9a16fd6112154fa28752
3
+ metadata.gz: 99d848d5a6cf7aa914dd37d1be998845c6d46267e170020e3c00263c0c3e0669
4
+ data.tar.gz: e47e81445c5f10614dcf8bc9b431bc22cc75a43bd556496971eb1dacbb907b72
5
5
  SHA512:
6
- metadata.gz: 9d75669baa1bc0e075909195655dc4c06481ce659d7ad1368b07502279c4f5300e6e9c130ca1d3d1674aaecf2e5c3350b02a1dd5f04c66a374384030ba28680d
7
- data.tar.gz: 7bbaef49fe323be3f172eb961e184608333643a37202ca5ecda86deaa2b3ea01ab3618828e1b88dd617798a79953255bfc83c6cbcad4d347b027ee35825bc0ab
6
+ metadata.gz: e396925736b8f11f2d8d44056f4a4e421893c71fbe25b633c4cf2292602cb592db32f58d8d8b9558840996cfbe563d4d2fc103b44f40619ae346332d8626bd16
7
+ data.tar.gz: ad9eab9a9ce855faed50b15516c2e5de7fe2a61465b0788b2f1bacd98baa055f74dd1f19e185f3203f655180a65ff2542221409a0bb74ecdf728740483d8fd6e
Binary file
@@ -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 << 32 # high 2 bits (`x & 0b11` is redandunt)
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
@@ -1,5 +1,5 @@
1
1
  module MessagePack
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
 
4
4
  # NOTE for msgpack-ruby maintainer:
5
5
  # Check these things to release new binaryes for new Ruby versions (especially for Windows):
@@ -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.0
4
+ version: 1.3.1
5
5
  platform: java
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-06-20 00:00:00.000000000 Z
13
+ date: 2019-08-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  requirement: !ruby/object:Gem::Requirement