msgpack 1.3.0 → 1.3.1

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: 5d415e1d916d342cecedb0ffb9fcbb3345f2a41612f71c41646f991316ddd20f
4
- data.tar.gz: f6851ce15f5fb4a41410fddb4662e65d5ea469814abeb222fc09fcbf2e979e71
3
+ metadata.gz: 2953e7e581ae759ffd1551a4d17124d65f644da83e69e3dfd0fd4fc9353bc8cb
4
+ data.tar.gz: 42a4079680f3fc69950c5cca8581a30efaa77d0b57095c50855572a5289f9119
5
5
  SHA512:
6
- metadata.gz: 8a4d96d8f6e1e50ba73cffb40ecf2a840aa26d22727e7dafbe8b567d3aba6343e9375f4c93b41e645422824b279b83cdff0c697f24043bca6cf92529762b0573
7
- data.tar.gz: bc3c772c2d9618ec3270e16c64da3be4167ed73d4940493cfc41c92f4d5809e65200e62655ee3a023c049bb0a5181c8163d0b698c94795b7facd7c7ff91bd369
6
+ metadata.gz: ae5aabb5b5def4f1cd5c002635511302ff0e191da31d10c62c1614fb0a4feb54a80bc50ad3b016ace385255368883ae312635dec5c52e341a287f6df382f6b69
7
+ data.tar.gz: 4af8c071d20b303eb071bf218003ea6be4dae67b0008a2747284bf9b0acd1f31300115938f8c4989932bdb815ce10d27baefdb3468d6b084a8b52e9c8977a1e9
data/.gitignore CHANGED
@@ -18,4 +18,6 @@ tmp
18
18
  .project
19
19
  .settings
20
20
  /nbproject/private/
21
-
21
+ coverage/
22
+ .idea/
23
+ .ruby-version
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ 2019-08-05 version 1.3.1:
2
+
3
+ * Fix timestamp ext type bug about timestamps with seconds larger than 32bit int (after 2106-02-07 06:28:16 UTC)
4
+
1
5
  2019-06-20 verison 1.3.0:
2
6
 
3
7
  * Add timestamp ext type (id:-1) support
@@ -15,7 +15,7 @@ module MessagePack
15
15
  }
16
16
 
17
17
  # An unpacker function that unpacks a MessagePack timestamp to a Time instance.
18
- Unpcker = lambda { |time|
18
+ Unpacker = lambda { |time|
19
19
  # ...
20
20
  }
21
21
  end
@@ -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):
@@ -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']
@@ -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: 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: 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
  name: bundler