Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-bindata for openSUSE:Factory 
checked in at 2021-06-25 15:01:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-bindata (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-bindata.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-bindata"

Fri Jun 25 15:01:22 2021 rev:7 rq:901966 version:2.4.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-bindata/rubygem-bindata.changes  
2020-10-05 19:30:12.292547479 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-bindata.new.2625/rubygem-bindata.changes    
    2021-06-25 15:02:03.972204877 +0200
@@ -1,0 +2,16 @@
+Thu Jun 24 17:06:10 UTC 2021 - Stephan Kulow <[email protected]>
+
+updated to version 2.4.10
+ see installed ChangeLog.rdoc
+
+  == Version 2.4.10 (2021-05-18)
+  
+  * Improve speed of dynamic object creation.  Reported by Charlie Ablett.
+  
+  == Version 2.4.9 (2021-04-22)
+  
+  * Change example from Fixnum to Integer.  Thanks to Tim Chambers.
+  * Now works with frozen string literals.  Requested by Jeremy Evans.
+  
+
+-------------------------------------------------------------------

Old:
----
  bindata-2.4.8.gem

New:
----
  bindata-2.4.10.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-bindata.spec ++++++
--- /var/tmp/diff_new_pack.hWRPfR/_old  2021-06-25 15:02:04.504205526 +0200
+++ /var/tmp/diff_new_pack.hWRPfR/_new  2021-06-25 15:02:04.504205526 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-bindata
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-bindata
-Version:        2.4.8
+Version:        2.4.10
 Release:        0
 %define mod_name bindata
 %define mod_full_name %{mod_name}-%{version}
@@ -33,7 +33,7 @@
 BuildRequires:  %{rubygem rdoc > 3.10}
 BuildRequires:  %{ruby}
 BuildRequires:  ruby-macros >= 5
-URL:            http://github.com/dmendel/bindata
+URL:            https://github.com/dmendel/bindata
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        A declarative way to read and write binary file formats

++++++ bindata-2.4.8.gem -> bindata-2.4.10.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ChangeLog.rdoc new/ChangeLog.rdoc
--- old/ChangeLog.rdoc  2020-07-21 06:29:16.000000000 +0200
+++ new/ChangeLog.rdoc  2021-05-18 05:40:55.000000000 +0200
@@ -1,5 +1,14 @@
 = BinData Changelog
 
+== Version 2.4.10 (2021-05-18)
+
+* Improve speed of dynamic object creation.  Reported by Charlie Ablett.
+
+== Version 2.4.9 (2021-04-22)
+
+* Change example from Fixnum to Integer.  Thanks to Tim Chambers.
+* Now works with frozen string literals.  Requested by Jeremy Evans.
+
 == Version 2.4.8 (2020-07-21)
 
 * Bug fix array self assignment.  Thanks to Spencer McIntyre.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bindata.gemspec new/bindata.gemspec
--- old/bindata.gemspec 2020-07-21 06:29:16.000000000 +0200
+++ new/bindata.gemspec 2021-05-18 05:40:55.000000000 +0200
@@ -8,7 +8,7 @@
   s.summary = 'A declarative way to read and write binary file formats'
   s.author = 'Dion Mendel'
   s.email = '[email protected]'
-  s.homepage = 'http://github.com/dmendel/bindata'
+  s.homepage = 'https://github.com/dmendel/bindata'
   s.require_path = 'lib'
   s.extra_rdoc_files = ['NEWS.rdoc']
   s.rdoc_options << '--main' << 'NEWS.rdoc'
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/examples/list.rb new/examples/list.rb
--- old/examples/list.rb        2020-07-21 06:29:16.000000000 +0200
+++ new/examples/list.rb        2021-05-18 05:40:55.000000000 +0200
@@ -105,7 +105,7 @@
   end
 
   def self.encode(val)
-    if Fixnum === val
+    if Integer === val
       Term.new(tag: 'a', term: Atom.encode(val))
     else
       Term.new(tag: 'l', term: List.encode(val))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bindata/alignment.rb new/lib/bindata/alignment.rb
--- old/lib/bindata/alignment.rb        2020-07-21 06:29:16.000000000 +0200
+++ new/lib/bindata/alignment.rb        2021-05-18 05:40:55.000000000 +0200
@@ -47,7 +47,7 @@
       end
       def readbytes(n)
         n.times.inject("") do |bytes, _|
-          bytes << @io.readbits(8, :big).chr
+          bytes += @io.readbits(8, :big).chr
         end
       end
     end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bindata/bits.rb new/lib/bindata/bits.rb
--- old/lib/bindata/bits.rb     2020-07-21 06:29:16.000000000 +0200
+++ new/lib/bindata/bits.rb     2021-05-18 05:40:55.000000000 +0200
@@ -115,14 +115,14 @@
         end
 
         if signed == :signed
-          max = (1 << (nbits - 1)) - 1
-          min = -(max + 1)
+          max = "max = (1 << (#{nbits} - 1)) - 1"
+          min = "min = -(max + 1)"
         else
-          min = 0
-          max = (1 << nbits) - 1
+          min = "min = 0"
+          max = "max = (1 << #{nbits}) - 1"
         end
 
-        clamp = "(val < #{min}) ? #{min} : (val > #{max}) ? #{max} : val"
+        clamp = "(#{max}; #{min}; val = (val < min) ? min : (val > max) ? max 
: val)"
 
         if nbits == 1
           # allow single bits to be used as booleans
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bindata/int.rb new/lib/bindata/int.rb
--- old/lib/bindata/int.rb      2020-07-21 06:29:16.000000000 +0200
+++ new/lib/bindata/int.rb      2021-05-18 05:40:55.000000000 +0200
@@ -59,14 +59,16 @@
 
       def create_clamp_code(nbits, signed)
         if signed == :signed
-          max = (1 << (nbits - 1)) - 1
-          min = -(max + 1)
+          max = "max = (1 << (#{nbits} - 1)) - 1"
+          min = "min = -(max + 1)"
         else
-          max = (1 << nbits) - 1
-          min = 0
+          max = "max = (1 << #{nbits}) - 1"
+          min = "min = 0"
         end
 
-        "val = (val < #{min}) ? #{min} : (val > #{max}) ? #{max} : val"
+        clamp = "(#{max}; #{min}; val = (val < min) ? min : (val > max) ? max 
: val)"
+
+        "val = #{clamp}"
       end
 
       def create_read_code(nbits, endian, signed)
@@ -107,7 +109,7 @@
         parts = (0...nwords).collect do |i|
                   "(ints.at(#{idx[i]}) << #{bits_per_word(nbits) * i})"
                 end
-        parts[0].sub!(/ << 0\b/, "")  # Remove " << 0" for optimisation
+        parts[0] = parts[0].sub(/ << 0\b/, "")  # Remove " << 0" for 
optimisation
 
         parts.join(" + ")
       end
@@ -132,7 +134,7 @@
         mask   = (1 << bits_per_word(nbits)) - 1
 
         vals = (0...nwords).collect { |i| "val >> #{bits_per_word(nbits) * i}" 
}
-        vals[0].sub!(/ >> 0\b/, "")  # Remove " >> 0" for optimisation
+        vals[0] = vals[0].sub(/ >> 0\b/, "")  # Remove " >> 0" for optimisation
         vals.reverse! if (endian == :big)
 
         vals = vals.collect { |val| "#{val} & #{mask}" }  # TODO: "& mask" is 
needed to work around jruby bug. Remove this line when fixed.
@@ -160,7 +162,7 @@
         directives = { 8 => "C", 16 => "S", 32 => "L", 64 => "Q" }
 
         d = directives[bits_per_word(nbits)]
-        d << ((endian == :big) ? ">" : "<") unless d == "C"
+        d += ((endian == :big) ? ">" : "<") unless d == "C"
 
         if signed == :signed && directives.key?(nbits)
           (d * nwords).downcase
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bindata/io.rb new/lib/bindata/io.rb
--- old/lib/bindata/io.rb       2020-07-21 06:29:16.000000000 +0200
+++ new/lib/bindata/io.rb       2021-05-18 05:40:55.000000000 +0200
@@ -169,7 +169,7 @@
 
           unless @read_data.empty? || @in_readahead
             bytes_to_consume = [n, @read_data.length].min
-            data << @read_data.slice!(0, bytes_to_consume)
+            data += @read_data.slice!(0, bytes_to_consume)
             n -= bytes_to_consume
 
             if @read_data.empty?
@@ -180,10 +180,10 @@
           end
 
           raw_data = @raw_io.read(n)
-          data << raw_data if raw_data
+          data += raw_data if raw_data
 
           if @in_readahead
-            @read_data << data
+            @read_data += data
           end
 
           @offset += data.size
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-07-21 06:29:16.000000000 +0200
+++ new/lib/bindata/stringz.rb  2021-05-18 05:40:55.000000000 +0200
@@ -54,7 +54,7 @@
       # read until zero byte or we have read in the max number of bytes
       while ch != "\0" && i != max_length
         ch = io.readbytes(1)
-        str << ch
+        str += ch
         i += 1
       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-07-21 06:29:16.000000000 +0200
+++ new/lib/bindata/version.rb  2021-05-18 05:40:55.000000000 +0200
@@ -1,3 +1,3 @@
 module BinData
-  VERSION = "2.4.8"
+  VERSION = "2.4.10"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2020-07-21 06:29:16.000000000 +0200
+++ new/metadata        2021-05-18 05:40:55.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: bindata
 version: !ruby/object:Gem::Version
-  version: 2.4.8
+  version: 2.4.10
 platform: ruby
 authors:
 - Dion Mendel
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2020-07-21 00:00:00.000000000 Z
+date: 2021-05-18 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rake
@@ -149,7 +149,7 @@
 - test/uint8_array_test.rb
 - test/virtual_test.rb
 - test/warnings_test.rb
-homepage: http://github.com/dmendel/bindata
+homepage: https://github.com/dmendel/bindata
 licenses:
 - Ruby
 metadata: {}
@@ -170,7 +170,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubygems_version: 3.1.2
+rubygems_version: 3.1.4
 signing_key: 
 specification_version: 4
 summary: A declarative way to read and write binary file formats
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/bits_test.rb new/test/bits_test.rb
--- old/test/bits_test.rb       2020-07-21 06:29:16.000000000 +0200
+++ new/test/bits_test.rb       2021-05-18 05:40:55.000000000 +0200
@@ -101,14 +101,14 @@
 
   (start .. 64).each do |nbits|
     name = "#{base}#{nbits}"
-    name << "le" if endian == :little
+    name += "le" if endian == :little
     obj = BinData.const_get(name).new
     bits << [obj, nbits]
   end
 
   (start .. 64).each do |nbits|
     name = "#{base}"
-    name << "Le" if endian == :little
+    name += "Le" if endian == :little
     obj = BinData.const_get(name).new(nbits: nbits)
     bits << [obj, nbits]
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/delayed_io_test.rb new/test/delayed_io_test.rb
--- old/test/delayed_io_test.rb 2020-07-21 06:29:16.000000000 +0200
+++ new/test/delayed_io_test.rb 2021-05-18 05:40:55.000000000 +0200
@@ -99,7 +99,7 @@
   end
 
   it "writes explicitly" do
-    io = StringIO.new "\001\002\003\004\005\006\007\010\011"
+    io = StringIO.new "\001\002\003\004\005\006\007\010\011".dup
     obj = IntDelayedIO.new(3)
     obj.write(io)
     obj.write_now!
@@ -107,7 +107,7 @@
   end
 
   it "writes explicitly after setting abs_offset" do
-    io = StringIO.new "\001\002\003\004\005\006\007\010\011"
+    io = StringIO.new "\001\002\003\004\005\006\007\010\011".dup
     obj = IntDelayedIO.new(7)
     obj.write(io)
 
@@ -139,7 +139,7 @@
   end
 
   it "writes explicitly" do
-    io = StringIO.new "\001\002\003\004\005\006\007\010\011\012\013\014\015"
+    io = StringIO.new 
"\001\002\003\004\005\006\007\010\011\012\013\014\015".dup
     obj = StringDelayedIO.new(str: "hello")
     obj.write(io)
     obj.write_now!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/int_test.rb new/test/int_test.rb
--- old/test/int_test.rb        2020-07-21 06:29:16.000000000 +0200
+++ new/test/int_test.rb        2021-05-18 05:40:55.000000000 +0200
@@ -128,7 +128,7 @@
   end
 
   def int_to_binary_str(val)
-    str = "".force_encoding(Encoding::BINARY)
+    str = "".dup.force_encoding(Encoding::BINARY)
     v = val & ((1 << (@nbytes * 8)) - 1)
     @nbytes.times do
       str.concat(v & 0xff)

Reply via email to