Hello community,
here is the log from the commit of package rubygem-bindata for openSUSE:Factory
checked in at 2020-10-05 19:30:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-bindata (Old)
and /work/SRC/openSUSE:Factory/.rubygem-bindata.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-bindata"
Mon Oct 5 19:30:06 2020 rev:6 rq:838022 version:2.4.8
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-bindata/rubygem-bindata.changes
2020-05-11 13:40:28.593007784 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-bindata.new.4249/rubygem-bindata.changes
2020-10-05 19:30:12.292547479 +0200
@@ -1,0 +2,12 @@
+Fri Sep 25 13:42:31 UTC 2020 - Stephan Kulow <[email protected]>
+
+updated to version 2.4.8
+ see installed ChangeLog.rdoc
+
+ == Version 2.4.8 (2020-07-21)
+
+ * Bug fix array self assignment. Thanks to Spencer McIntyre.
+ * Bug fix Stringz max_length. Thanks to cdelafuente-r7.
+
+
+-------------------------------------------------------------------
Old:
----
bindata-2.4.7.gem
New:
----
bindata-2.4.8.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-bindata.spec ++++++
--- /var/tmp/diff_new_pack.6rTRDF/_old 2020-10-05 19:30:13.344548495 +0200
+++ /var/tmp/diff_new_pack.6rTRDF/_new 2020-10-05 19:30:13.348548499 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-bindata
-Version: 2.4.7
+Version: 2.4.8
Release: 0
%define mod_name bindata
%define mod_full_name %{mod_name}-%{version}
++++++ bindata-2.4.7.gem -> bindata-2.4.8.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ChangeLog.rdoc new/ChangeLog.rdoc
--- old/ChangeLog.rdoc 2020-03-30 19:26:03.000000000 +0200
+++ new/ChangeLog.rdoc 2020-07-21 06:29:16.000000000 +0200
@@ -1,5 +1,10 @@
= BinData Changelog
+== Version 2.4.8 (2020-07-21)
+
+* Bug fix array self assignment. Thanks to Spencer McIntyre.
+* Bug fix Stringz max_length. Thanks to cdelafuente-r7.
+
== Version 2.4.7 (2020-03-31)
* Fix choice assignment inside arrays. Reported by Spencer McIntyre.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/bindata/array.rb new/lib/bindata/array.rb
--- old/lib/bindata/array.rb 2020-03-30 19:26:03.000000000 +0200
+++ new/lib/bindata/array.rb 2020-07-21 06:29:16.000000000 +0200
@@ -80,6 +80,7 @@
end
def assign(array)
+ return if self.equal?(array) # prevent self assignment
raise ArgumentError, "can't set a nil value for #{debug_name}" if
array.nil?
@element_list = []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/bindata/stringz.rb new/lib/bindata/stringz.rb
--- old/lib/bindata/stringz.rb 2020-03-30 19:26:03.000000000 +0200
+++ new/lib/bindata/stringz.rb 2020-07-21 06:29:16.000000000 +0200
@@ -80,7 +80,7 @@
def trim_to!(str, max_length = nil)
if max_length
max_length = 1 if max_length < 1
- str.slice!(max_length)
+ str.slice!(max_length..-1)
if str.length == max_length && str[-1, 1] != "\0"
str[-1, 1] = "\0"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/bindata/version.rb new/lib/bindata/version.rb
--- old/lib/bindata/version.rb 2020-03-30 19:26:03.000000000 +0200
+++ new/lib/bindata/version.rb 2020-07-21 06:29:16.000000000 +0200
@@ -1,3 +1,3 @@
module BinData
- VERSION = "2.4.7"
+ VERSION = "2.4.8"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-03-30 19:26:03.000000000 +0200
+++ new/metadata 2020-07-21 06:29:16.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: bindata
version: !ruby/object:Gem::Version
- version: 2.4.7
+ version: 2.4.8
platform: ruby
authors:
- Dion Mendel
autorequire:
bindir: bin
cert_chain: []
-date: 2020-03-30 00:00:00.000000000 Z
+date: 2020-07-21 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rake
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/test/array_test.rb new/test/array_test.rb
--- old/test/array_test.rb 2020-03-30 19:26:03.000000000 +0200
+++ new/test/array_test.rb 2020-07-21 06:29:16.000000000 +0200
@@ -266,6 +266,11 @@
lambda { obj["a"] }.must_raise TypeError
lambda { obj[1, "a"] }.must_raise TypeError
end
+
+ it "is unaffected by self assignment" do
+ obj.assign(obj)
+ obj.snapshot.must_equal [1, 2, 3, 4, 5]
+ end
end
describe BinData::Array, "with :read_until" do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/test/stringz_test.rb new/test/stringz_test.rb
--- old/test/stringz_test.rb 2020-03-30 19:26:03.000000000 +0200
+++ new/test/stringz_test.rb 2020-07-21 06:29:16.000000000 +0200
@@ -106,12 +106,12 @@
end
it "trims values greater than max_length" do
- obj.assign("abcde")
+ obj.assign("abcdefg")
obj.must_equal "abcd"
end
it "writes values greater than max_length" do
- obj.assign("abcde")
+ obj.assign("abcdefg")
obj.to_binary_s.must_equal_binary "abcd\0"
end