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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d415e1d916d342cecedb0ffb9fcbb3345f2a41612f71c41646f991316ddd20f
4
- data.tar.gz: f6851ce15f5fb4a41410fddb4662e65d5ea469814abeb222fc09fcbf2e979e71
3
+ metadata.gz: 4b4715c3bb5b0a9ac8d625de65a81774176daa6dc34e2c4d5906ce85256c49ec
4
+ data.tar.gz: b9cfa42546b45f98ba5f5d4233aec55c8432aea7e9d630fa42ded65bae69a289
5
5
  SHA512:
6
- metadata.gz: 8a4d96d8f6e1e50ba73cffb40ecf2a840aa26d22727e7dafbe8b567d3aba6343e9375f4c93b41e645422824b279b83cdff0c697f24043bca6cf92529762b0573
7
- data.tar.gz: bc3c772c2d9618ec3270e16c64da3be4167ed73d4940493cfc41c92f4d5809e65200e62655ee3a023c049bb0a5181c8163d0b698c94795b7facd7c7ff91bd369
6
+ metadata.gz: 10a32910ca734bba1a38dc3c23e5981f32de2e86d81c2d3be3902369c0d19e77a3dd507a3c6019cdfce85795d084d37457563ee3f3bb3f752625bdd0de0fc30a
7
+ data.tar.gz: 118f4ad4333e59f581232b6ce56c80e95c7166a73c0143aeca5da8e07492d307eec81c797fae587653955e4563a23d5a4f0220671016255934ceaae58e635db0
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,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
 
@@ -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
@@ -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
  }
@@ -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.2"
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.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: 2019-06-20 00:00:00.000000000 Z
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.0.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.