commit rubygem-bindata for openSUSE:Factory

2020-10-05 Thread root
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 
+
+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.0 +0200
+++ new/ChangeLog.rdoc  2020-07-21 06:29:16.0 +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.rb2020-03-30 19:26:03.0 +0200
+++ new/lib/bindata/array.rb2020-07-21 06:29:16.0 +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.0 +0200
+++ new/lib/bindata/stringz.rb  2020-07-21 06:29:16.0 +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.0 +0200
+++ new/lib/bindata/version.rb  2020-07-21 06:29:16.0 +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/metadata2020-03-30 19:26:03.0 +0200
+++ new/metadata2020-07-21 06:29:16.0 +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.0 Z
+date: 2020-07-21 00:00:00.0 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.0 +0200
+++ new/test/array_test.rb  2020-07-21 06:29:16.0 +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' 

commit rubygem-bindata for openSUSE:Factory

2020-05-11 Thread root
Hello community,

here is the log from the commit of package rubygem-bindata for openSUSE:Factory 
checked in at 2020-05-11 13:40:25

Comparing /work/SRC/openSUSE:Factory/rubygem-bindata (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-bindata.new.2738 (New)


Package is "rubygem-bindata"

Mon May 11 13:40:25 2020 rev:5 rq:802327 version:2.4.7

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-bindata/rubygem-bindata.changes  
2018-11-26 10:28:54.981125793 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-bindata.new.2738/rubygem-bindata.changes
2020-05-11 13:40:28.593007784 +0200
@@ -1,0 +2,20 @@
+Thu May  7 20:26:56 UTC 2020 - Stephan Kulow 
+
+- updated to version 2.4.7
+ see installed ChangeLog.rdoc
+
+  == Version 2.4.7 (2020-03-31)
+  
+  * Fix choice assignment inside arrays.  Reported by Spencer McIntyre.
+  
+  == Version 2.4.6 (2020-02-27)
+  
+  * More encoding fixes.  Thanks to Aaron Patterson.
+  
+  == Version 2.4.5 (2020-02-21)
+  
+  * Small typo fixes to examples.
+  * Fix encoding issue for ruby 2.7.  Thanks to Aaron Patterson.
+  * Quieter test output.
+
+---

Old:

  bindata-2.4.4.gem

New:

  bindata-2.4.7.gem



Other differences:
--
++ rubygem-bindata.spec ++
--- /var/tmp/diff_new_pack.2iqESh/_old  2020-05-11 13:40:29.661010051 +0200
+++ /var/tmp/diff_new_pack.2iqESh/_new  2020-05-11 13:40:29.665010059 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-bindata
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 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.4
+Version:2.4.7
 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:http://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.4.gem -> bindata-2.4.7.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml 2018-10-03 07:36:25.0 +0200
+++ new/.travis.yml 2020-03-30 19:26:03.0 +0200
@@ -1,9 +1,11 @@
 language: ruby
 rvm:
-  - 2.0
-  - 2.1.10
   - 2.2
   - 2.3
+  - 2.4
+  - 2.5
+  - 2.6
+  - 2.7
   - jruby
   - ruby-head
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ChangeLog.rdoc new/ChangeLog.rdoc
--- old/ChangeLog.rdoc  2018-10-03 07:36:25.0 +0200
+++ new/ChangeLog.rdoc  2020-03-30 19:26:03.0 +0200
@@ -1,5 +1,19 @@
 = BinData Changelog
 
+== Version 2.4.7 (2020-03-31)
+
+* Fix choice assignment inside arrays.  Reported by Spencer McIntyre.
+
+== Version 2.4.6 (2020-02-27)
+
+* More encoding fixes.  Thanks to Aaron Patterson.
+
+== Version 2.4.5 (2020-02-21)
+
+* Small typo fixes to examples.
+* Fix encoding issue for ruby 2.7.  Thanks to Aaron Patterson.
+* Quieter test output.
+
 == Version 2.4.4 (2018-10-03)
 
 * Display a hint when endian is omitted.  Requested by Tails.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bindata.gemspec new/bindata.gemspec
--- old/bindata.gemspec 2018-10-03 07:36:25.0 +0200
+++ new/bindata.gemspec 2020-03-30 19:26:03.0 +0200
@@ -9,16 +9,14 @@
   s.author = 'Dion Mendel'
   s.email = 'bind...@dm9.info'
   s.homepage = 'http://github.com/dmendel/bindata'
-  s.rubyforge_project = 'bindata'
   s.require_path = 'lib'
-  s.has_rdoc = true
   s.extra_rdoc_files = ['NEWS.rdoc']
   s.rdoc_options << '--main' << 'NEWS.rdoc'
   s.files = `git ls-files`.split("\n")
   s.license = 'Ruby'
 
   s.add_development_dependency('rake')
-  s.add_development_dependency('minitest', "> 5.0.0")
+  s.add_development_dependency('minitest', "> 5.0.0", "< 5.12.0")
   s.add_development_dependency('coveralls')
   s.description = <<-END.gsub(/^ +/, "")
 BinData is a declarative way to read and write binary file formats.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/examples/tcp_ip.rb new/examples/tcp_ip.rb
--- old/examples/tcp_ip.rb  2018-10-03 07:36:25.0 +0200
+++ new/examples/tcp_ip.rb  2020-03-30 

commit rubygem-bindata for openSUSE:Factory

2018-11-26 Thread root
Hello community,

here is the log from the commit of package rubygem-bindata for openSUSE:Factory 
checked in at 2018-11-26 10:28:18

Comparing /work/SRC/openSUSE:Factory/rubygem-bindata (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-bindata.new.19453 (New)


Package is "rubygem-bindata"

Mon Nov 26 10:28:18 2018 rev:4 rq:651092 version:2.4.4

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-bindata/rubygem-bindata.changes  
2018-07-18 22:48:43.227999279 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-bindata.new.19453/rubygem-bindata.changes   
2018-11-26 10:28:54.981125793 +0100
@@ -1,0 +2,12 @@
+Thu Nov 22 05:00:06 UTC 2018 - Stephan Kulow 
+
+- updated to version 2.4.4
+ see installed ChangeLog.rdoc
+
+  == Version 2.4.4 (2018-10-03)
+  
+  * Display a hint when endian is omitted.  Requested by Tails.
+  * Add thread safety to Integer/BitField creation.  Requested by jbpeirce.
+  * Ensure windows sockets are unseekable.  Thanks to Brent Cook.
+
+---

Old:

  bindata-2.4.3.gem

New:

  bindata-2.4.4.gem



Other differences:
--
++ rubygem-bindata.spec ++
--- /var/tmp/diff_new_pack.rEZdr7/_old  2018-11-26 10:28:55.585125084 +0100
+++ /var/tmp/diff_new_pack.rEZdr7/_new  2018-11-26 10:28:55.585125084 +0100
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-bindata
-Version:2.4.3
+Version:2.4.4
 Release:0
 %define mod_name bindata
 %define mod_full_name %{mod_name}-%{version}

++ bindata-2.4.3.gem -> bindata-2.4.4.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ChangeLog.rdoc new/ChangeLog.rdoc
--- old/ChangeLog.rdoc  2018-03-09 17:32:08.0 +0100
+++ new/ChangeLog.rdoc  2018-10-03 07:36:25.0 +0200
@@ -1,5 +1,11 @@
 = BinData Changelog
 
+== Version 2.4.4 (2018-10-03)
+
+* Display a hint when endian is omitted.  Requested by Tails.
+* Add thread safety to Integer/BitField creation.  Requested by jbpeirce.
+* Ensure windows sockets are unseekable.  Thanks to Brent Cook.
+
 == Version 2.4.3 (2018-03-10)
 
 * Add Uint8Arrays.  Requested by masarakki.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md   2018-03-09 17:32:08.0 +0100
+++ new/README.md   2018-10-03 07:36:25.0 +0200
@@ -2,7 +2,6 @@
 
 [![Version ](http://img.shields.io/gem/v/bindata.svg)  
 ](https://rubygems.org/gems/bindata)
 [![Travis CI   ](http://img.shields.io/travis/dmendel/bindata/master.svg) 
](https://travis-ci.org/dmendel/bindata)
-[![Quality 
](http://img.shields.io/codeclimate/github/dmendel/bindata.svg)](https://codeclimate.com/github/dmendel/bindata)
 [![Coverage](http://img.shields.io/coveralls/dmendel/bindata.svg) 
](https://coveralls.io/r/dmendel/bindata)
 
 Do you ever find yourself writing code like this?
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/bits.rb new/lib/bindata/bits.rb
--- old/lib/bindata/bits.rb 2018-03-09 17:32:08.0 +0100
+++ new/lib/bindata/bits.rb 2018-10-03 07:36:25.0 +0200
@@ -1,3 +1,4 @@
+require 'thread'
 require 'bindata/base_primitive'
 
 module BinData
@@ -5,15 +6,18 @@
   # The integer is defined by endian and number of bits.
 
   module BitField #:nodoc: all
+@@mutex = Mutex.new
+
 class << self
   def define_class(name, nbits, endian, signed = :unsigned)
-unless BinData.const_defined?(name)
-  BinData.module_eval <<-END
-class #{name} < BinData::BasePrimitive
-  # nbits is either an integer or the symbol `:nbits`
-  BitField.define_methods(self, #{nbits.inspect}, :#{endian}, 
:#{signed})
-end
-  END
+@@mutex.synchronize do
+  unless BinData.const_defined?(name)
+new_class = Class.new(BinData::BasePrimitive)
+BitField.define_methods(new_class, nbits, endian.to_sym, 
signed.to_sym)
+RegisteredClasses.register(name, new_class)
+
+BinData.const_set(name, new_class)
+  end
 end
 
 BinData.const_get(name)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bindata/int.rb new/lib/bindata/int.rb
--- 

commit rubygem-bindata for openSUSE:Factory

2018-07-18 Thread root
Hello community,

here is the log from the commit of package rubygem-bindata for openSUSE:Factory 
checked in at 2018-07-18 22:48:35

Comparing /work/SRC/openSUSE:Factory/rubygem-bindata (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-bindata.new (New)


Package is "rubygem-bindata"

Wed Jul 18 22:48:35 2018 rev:3 rq:620989 version:2.4.3

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-bindata/rubygem-bindata.changes  
2018-02-10 17:59:46.292647549 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-bindata.new/rubygem-bindata.changes 
2018-07-18 22:48:43.227999279 +0200
@@ -1,0 +2,10 @@
+Tue Mar 20 10:05:11 UTC 2018 - factory-a...@kulow.org
+
+- updated to version 2.4.3
+ see installed ChangeLog.rdoc
+
+  == Version 2.4.3 (2018-03-10)
+  
+  * Add Uint8Arrays.  Requested by masarakki.
+
+---

Old:

  bindata-2.4.2.gem

New:

  bindata-2.4.3.gem



Other differences:
--
++ rubygem-bindata.spec ++
--- /var/tmp/diff_new_pack.h9Qps1/_old  2018-07-18 22:48:43.703997701 +0200
+++ /var/tmp/diff_new_pack.h9Qps1/_new  2018-07-18 22:48:43.707997687 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-bindata
-Version:2.4.2
+Version:2.4.3
 Release:0
 %define mod_name bindata
 %define mod_full_name %{mod_name}-%{version}

++ bindata-2.4.2.gem -> bindata-2.4.3.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ChangeLog.rdoc new/ChangeLog.rdoc
--- old/ChangeLog.rdoc  2018-01-31 07:48:42.0 +0100
+++ new/ChangeLog.rdoc  2018-03-09 17:32:08.0 +0100
@@ -1,5 +1,9 @@
 = BinData Changelog
 
+== Version 2.4.3 (2018-03-10)
+
+* Add Uint8Arrays.  Requested by masarakki.
+
 == Version 2.4.2 (2018-01-31)
 
 * Allow boolean values as parameters.  Requested by Patrik Wenger.
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/uint8_array.rb 
new/lib/bindata/uint8_array.rb
--- old/lib/bindata/uint8_array.rb  1970-01-01 01:00:00.0 +0100
+++ new/lib/bindata/uint8_array.rb  2018-03-09 17:32:08.0 +0100
@@ -0,0 +1,62 @@
+require "bindata/base_primitive"
+
+module BinData
+  # Uint8Array is a specialised type of array that only contains
+  # bytes (Uint8).  It is a faster and more memory efficient version
+  # of `BinData::Array.new(:type => :uint8)`.
+  #
+  #   require 'bindata'
+  #
+  #   obj = BinData::Uint8Array.new(initial_length: 5)
+  #   obj.read("abcdefg") #=> [97, 98, 99, 100, 101]
+  #   obj[2] #=> 99
+  #   obj.collect { |x| x.chr }.join #=> "abcde"
+  #
+  # == Parameters
+  #
+  # Parameters may be provided at initialisation to control the behaviour of
+  # an object.  These params are:
+  #
+  # :initial_length:: The initial length of the array.
+  # :read_until:: May only have a value of `:eof`.  This parameter
+  #instructs the array to read as much data from
+  #the stream as possible.
+  class Uint8Array < BinData::BasePrimitive
+optional_parameters :initial_length, :read_until
+mutually_exclusive_parameters :initial_length, :read_until
+arg_processor :uint8_array
+
+#---
+private
+
+def value_to_binary_string(val)
+  val.pack("C*")
+end
+
+def read_and_return_value(io)
+  if has_parameter?(:initial_length)
+data = io.readbytes(eval_parameter(:initial_length))
+  else
+data = io.read_all_bytes
+  end
+
+  data.unpack("C*")
+end
+
+def sensible_default
+  []
+end
+  end
+
+  class Uint8ArrayArgProcessor < BaseArgProcessor
+def sanitize_parameters!(obj_class, params) #:nodoc:
+  # ensure one of :initial_length and :read_until exists
+  unless params.has_at_least_one_of?(:initial_length, :read_until)
+params[:initial_length] = 0
+  end
+
+  msg = "Parameter :read_until must have a value of :eof"
+  params.sanitize(:read_until) { |val| raise ArgumentError, msg unless val 
== :eof }
+end
+  end
+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  2018-01-31 07:48:42.0 +0100
+++ new/lib/bindata/version.rb  2018-03-09 17:32:08.0 +0100
@@ -1,3 +1,3 @@
 module BinData
-  VERSION = "2.4.2"
+  VERSION = "2.4.3"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bindata.rb new/lib/bindata.rb
--- old/lib/bindata.rb  2018-01-31 07:48:42.0 +0100
+++ new/lib/bindata.rb  2018-03-09 

commit rubygem-bindata for openSUSE:Factory

2018-02-10 Thread root
Hello community,

here is the log from the commit of package rubygem-bindata for openSUSE:Factory 
checked in at 2018-02-10 17:59:43

Comparing /work/SRC/openSUSE:Factory/rubygem-bindata (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-bindata.new (New)


Package is "rubygem-bindata"

Sat Feb 10 17:59:43 2018 rev:2 rq:574924 version:2.4.2

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-bindata/rubygem-bindata.changes  
2018-01-10 23:30:42.192594613 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-bindata.new/rubygem-bindata.changes 
2018-02-10 17:59:46.292647549 +0100
@@ -1,0 +2,10 @@
+Thu Feb  8 05:54:05 UTC 2018 - co...@suse.com
+
+- updated to version 2.4.2
+ see installed ChangeLog.rdoc
+
+  == Version 2.4.2 (2018-01-31)
+  
+  * Allow boolean values as parameters.  Requested by Patrik Wenger.
+
+---

Old:

  bindata-2.4.1.gem

New:

  bindata-2.4.2.gem



Other differences:
--
++ rubygem-bindata.spec ++
--- /var/tmp/diff_new_pack.MjgeHw/_old  2018-02-10 17:59:47.056619893 +0100
+++ /var/tmp/diff_new_pack.MjgeHw/_new  2018-02-10 17:59:47.060619748 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-bindata
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # 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.1
+Version:2.4.2
 Release:0
 %define mod_name bindata
 %define mod_full_name %{mod_name}-%{version}
@@ -34,7 +34,7 @@
 BuildRequires:  %{ruby}
 BuildRequires:  ruby-macros >= 5
 Url:http://github.com/dmendel/bindata
-Source: http://rubygems.org/gems/%{mod_full_name}.gem
+Source: https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:gem2rpm.yml
 Summary:A declarative way to read and write binary file formats
 License:Ruby

++ bindata-2.4.1.gem -> bindata-2.4.2.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ChangeLog.rdoc new/ChangeLog.rdoc
--- old/ChangeLog.rdoc  2017-08-30 05:28:00.0 +0200
+++ new/ChangeLog.rdoc  2018-01-31 07:48:42.0 +0100
@@ -1,5 +1,9 @@
 = BinData Changelog
 
+== Version 2.4.2 (2018-01-31)
+
+* Allow boolean values as parameters.  Requested by Patrik Wenger.
+
 == Version 2.4.1 (2017-08-30)
 
 * Fix crash with String :length invoking :rel_offset.  Reported by Claudius
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/sanitize.rb new/lib/bindata/sanitize.rb
--- old/lib/bindata/sanitize.rb 2017-08-30 05:28:00.0 +0200
+++ new/lib/bindata/sanitize.rb 2018-01-31 07:48:42.0 +0100
@@ -306,9 +306,7 @@
 end
 
 def needs_sanitizing?(key)
-  parameter = self[key]
-
-  parameter && !parameter.is_a?(SanitizedParameter)
+  has_key?(key) && ! self[key].is_a?(SanitizedParameter)
 end
 
 def ensure_no_nil_values
@@ -322,7 +320,7 @@
 
 def merge_default_parameters!
   @the_class.default_parameters.each do |key, value|
-self[key] ||= value
+self[key] = value unless has_key?(key)
   end
 end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/bindata/struct.rb new/lib/bindata/struct.rb
--- old/lib/bindata/struct.rb   2017-08-30 05:28:00.0 +0200
+++ new/lib/bindata/struct.rb   2018-01-31 07:48:42.0 +0100
@@ -278,7 +278,7 @@
   end
 
   def method_missing(symbol, *args)
-self[symbol] || super
+key?(symbol) ? self[symbol] : super
   end
 end
   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  2017-08-30 05:28:00.0 +0200
+++ new/lib/bindata/version.rb  2018-01-31 07:48:42.0 +0100
@@ -1,3 +1,3 @@
 module BinData
-  VERSION = "2.4.1"
+  VERSION = "2.4.2"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata2017-08-30 05:28:00.0 +0200
+++ new/metadata2018-01-31 07:48:42.0 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: bindata
 version: !ruby/object:Gem::Version
-  version: 2.4.1
+  version: 2.4.2
 platform: ruby
 authors:
 - Dion Mendel
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-08-30 00:00:00.0 Z