msgpack 1.3.0-x86-mingw32 → 1.3.1-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 341c09816e2d926baf67c2fce87da0090c1aa40fe59fe43387df8e7a0cbf405f
4
- data.tar.gz: 59f202ef6c3c0a7d01c89a91e3d74ca9615b2dc317e6ea37d1c38f2706948b0a
3
+ metadata.gz: 7b4d048842df1e21c54807114a7ef628b4612d284df2c45f4f53f1b4da6faf25
4
+ data.tar.gz: 11b67046f718e412c8689a927b1603ecb8c04fc0dfa4dcad16f77772b4ba8ddd
5
5
  SHA512:
6
- metadata.gz: cc3436e8a665f731a38fa51372961c5e0a5196668d323d6813622b6e4c1d46d88bc3cc70bb62f9a7137fc56449c873e880f413f3c57b7bc3246c3a750917a86d
7
- data.tar.gz: 34931cf70954b0a375ae240bef2786da5787a79566fe64bf0f5376123e9810f8a201028b846c085c7bc94b879d963f15f4b2a966ec1969787501abdd3d4b95a2
6
+ metadata.gz: 1d5e1fff48cd539fbba262c7fa02b463547433597a00196559b09f38a4ec5503bdb57ff69b2b702b54129892c2447aea74e7d991fa846d6d844407c8566d109d
7
+ data.tar.gz: 6b88b1dc0f8027fc5bde00893eadb251bfa8dc4dc4e78723be68af290cf52bfcbc155aad50651047e05a4c031df9bb944da61860c6c5e6ea985bc12801f27ebd
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: x86-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-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
@@ -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: msgpack
253
+ rubyforge_project:
254
254
  rubygems_version: 2.7.9
255
255
  signing_key:
256
256
  specification_version: 4