bindata 2.3.4 → 2.3.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bindata might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a8a6f316e5cf5c69644ea1e3f841ad322c0e02f
4
- data.tar.gz: bf847f59e5d21294aa23a8e55b30316259917995
3
+ metadata.gz: fa6f6792c33e83b12b474d4e1b6a6b057fdd4425
4
+ data.tar.gz: 347099da9214708c8799fef5e2aa1d8d6dc6a0bf
5
5
  SHA512:
6
- metadata.gz: ce1e8ebef76eca71f03e78fd5d0443b489965433848f4d05137cb02b8e6b90db535fa97cd9e1987d93eddeba11cf8c96fd1cbc4cd2f8f83145a88728d1e65a7f
7
- data.tar.gz: 49df943ca5a0347649bfd35f2307f17cd4cb0308472c6d8f4341bd65926b9a805b7e0ad75bab3db71d83f4e6803be32a03fe7e996ddb8455d9b3b5952ab79c02
6
+ metadata.gz: d9da79f0e12fdf4854db54801f3233b79ab5c3f30850e9d64bdcb27bcb7d937527a7e700d16fdf7abd2ebf9cd1caf1a72ef37488d989e1ead8406ba540327981
7
+ data.tar.gz: a6f7fb484a15d030d277c723ba023f76308e4b87d36b73a28385de25705dc9776408323380eabbc087cd339b2738d2f0a5a3132ee0827c639c6cf150a7e9fe53
@@ -1,5 +1,10 @@
1
1
  = BinData Changelog
2
2
 
3
+ == Version 2.3.5 (2017-01-19)
4
+
5
+ * Enforce Integer#nbits > 0. Reported by Keenan Tims.
6
+ * Fix auto_call_delayed_io crash. Reported by Michael Petter.
7
+
3
8
  == Version 2.3.4 (2016-10-17)
4
9
 
5
10
  * Memoize dynamic methods for primitives. Thanks to hiroeorz.
@@ -159,6 +159,8 @@ module BinData
159
159
  def auto_call_delayed_io
160
160
  include AutoCallDelayedIO
161
161
 
162
+ return if DelayedIO.method_defined? :initialize_instance_without_record_io
163
+
162
164
  DelayedIO.send(:alias_method, :initialize_instance_without_record_io, :initialize_instance)
163
165
  DelayedIO.send(:define_method, :initialize_instance) do
164
166
  if @parent && !defined? @delayed_io_recorded
@@ -194,7 +194,7 @@ module BinData
194
194
  mappings.each_pair do |regex, args|
195
195
  if regex =~ name.to_s
196
196
  nbits = $1.to_i
197
- if (nbits % 8).zero?
197
+ if nbits > 0 && (nbits % 8).zero?
198
198
  return Int.define_class(name, nbits, *args)
199
199
  end
200
200
  end
@@ -1,3 +1,3 @@
1
1
  module BinData
2
- VERSION = "2.3.4"
2
+ VERSION = "2.3.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bindata
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dion Mendel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-17 00:00:00.000000000 Z
11
+ date: 2017-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake