Hello community,
here is the log from the commit of package rubygem-msgpack for openSUSE:Factory
checked in at 2019-08-16 15:50:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-msgpack (Old)
and /work/SRC/openSUSE:Factory/.rubygem-msgpack.new.22127 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-msgpack"
Fri Aug 16 15:50:08 2019 rev:11 rq:723820 version:1.3.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-msgpack/rubygem-msgpack.changes
2019-07-08 16:41:03.924963363 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-msgpack.new.22127/rubygem-msgpack.changes
2019-08-16 15:51:01.137584076 +0200
@@ -1,0 +2,7 @@
+Thu Aug 15 17:59:29 UTC 2019 - Manuel Schnitzer <[email protected]>
+
+- updated to version 1.3.1
+
+ * Fix timestamp ext type bug about timestamps with seconds larger than 32bit
int (after 2106-02-07 06:28:16 UTC)
+
+-------------------------------------------------------------------
Old:
----
msgpack-1.3.0.gem
New:
----
msgpack-1.3.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-msgpack.spec ++++++
--- /var/tmp/diff_new_pack.wrZDO3/_old 2019-08-16 15:51:01.569583918 +0200
+++ /var/tmp/diff_new_pack.wrZDO3/_new 2019-08-16 15:51:01.569583918 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-msgpack
-Version: 1.3.0
+Version: 1.3.1
Release: 0
%define mod_name msgpack
%define mod_full_name %{mod_name}-%{version}
++++++ msgpack-1.3.0.gem -> msgpack-1.3.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore 2019-06-20 09:16:11.000000000 +0200
+++ new/.gitignore 2019-08-05 04:27:44.000000000 +0200
@@ -18,4 +18,6 @@
.project
.settings
/nbproject/private/
-
+coverage/
+.idea/
+.ruby-version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ChangeLog new/ChangeLog
--- old/ChangeLog 2019-06-20 09:16:11.000000000 +0200
+++ new/ChangeLog 2019-08-05 04:27:44.000000000 +0200
@@ -1,3 +1,7 @@
+2019-08-05 version 1.3.1:
+
+* Fix timestamp ext type bug about timestamps with seconds larger than 32bit
int (after 2106-02-07 06:28:16 UTC)
+
2019-06-20 verison 1.3.0:
* Add timestamp ext type (id:-1) support
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 2019-06-20 09:16:11.000000000 +0200
+++ new/Gemfile 2019-08-05 04:27:44.000000000 +0200
@@ -4,3 +4,6 @@
## enable this line to run benchmarks
# gem "viiite"
+
+gem "rubocop"
+gem "simplecov"
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/doclib/msgpack/time.rb new/doclib/msgpack/time.rb
--- old/doclib/msgpack/time.rb 2019-06-20 09:16:11.000000000 +0200
+++ new/doclib/msgpack/time.rb 2019-08-05 04:27:44.000000000 +0200
@@ -15,7 +15,7 @@
}
# An unpacker function that unpacks a MessagePack timestamp to a Time
instance.
- Unpcker = lambda { |time|
+ Unpacker = lambda { |time|
# ...
}
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/msgpack/timestamp.rb new/lib/msgpack/timestamp.rb
--- old/lib/msgpack/timestamp.rb 2019-06-20 09:16:11.000000000 +0200
+++ new/lib/msgpack/timestamp.rb 2019-08-05 04:27:44.000000000 +0200
@@ -55,7 +55,7 @@
else
# timestamp64 (nsec: uint30be, sec: uint34be)
nsec30 = nsec << 2
- sec_high2 = sec << 32 # high 2 bits (`x & 0b11` is redandunt)
+ sec_high2 = sec >> 32 # high 2 bits (`x & 0b11` is redandunt)
sec_low32 = sec & 0xffffffff # low 32 bits
[nsec30 | sec_high2, sec_low32].pack('L>2')
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/msgpack/version.rb new/lib/msgpack/version.rb
--- old/lib/msgpack/version.rb 2019-06-20 09:16:11.000000000 +0200
+++ new/lib/msgpack/version.rb 2019-08-05 04:27:44.000000000 +0200
@@ -1,5 +1,5 @@
module MessagePack
- VERSION = "1.3.0"
+ VERSION = "1.3.1"
# NOTE for msgpack-ruby maintainer:
# Check these things to release new binaryes for new Ruby versions
(especially for Windows):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-06-20 09:16:11.000000000 +0200
+++ new/metadata 2019-08-05 04:27:44.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: msgpack
version: !ruby/object:Gem::Version
- version: 1.3.0
+ version: 1.3.1
platform: ruby
authors:
- Sadayuki Furuhashi
@@ -10,7 +10,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2019-06-20 00:00:00.000000000 Z
+date: 2019-08-05 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: bundler
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/msgpack.gemspec new/msgpack.gemspec
--- old/msgpack.gemspec 2019-06-20 09:16:11.000000000 +0200
+++ new/msgpack.gemspec 2019-08-05 04:27:44.000000000 +0200
@@ -10,7 +10,6 @@
s.email = ["[email protected]", "[email protected]", "[email protected]"]
s.license = "Apache 2.0"
s.homepage = "http://msgpack.org/"
- s.rubyforge_project = "msgpack"
s.require_paths = ["lib"]
if /java/ =~ RUBY_PLATFORM
s.files = Dir['lib/**/*.rb', 'lib/**/*.jar']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/spec/timestamp_spec.rb new/spec/timestamp_spec.rb
--- old/spec/timestamp_spec.rb 2019-06-20 09:16:11.000000000 +0200
+++ new/spec/timestamp_spec.rb 2019-08-05 04:27:44.000000000 +0200
@@ -56,6 +56,10 @@
expect(packed).to
start_with(prefix_ext8_with_12bytes_payload_and_type_id)
expect(packed.size).to eq(15)
end
+
+ it 'runs correctly (regression)' do
+ expect(factory.unpack(factory.pack(Time.utc(2200)))).to
eq(Time.utc(2200))
+ end
end
describe 'register_type with MessagePack::Timestamp' do