bitfields 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08330b3abc50142d13e76b375850bf801e726a62
4
- data.tar.gz: 7e8000377a4d47a4c58efeb407f49ab416878e47
3
+ metadata.gz: 106a09ba14ca7da95a4fa0c8b2da45a0a4de5624
4
+ data.tar.gz: 2ed11e3e4ef88782ace1559d73ead45c8c34b59c
5
5
  SHA512:
6
- metadata.gz: 83a8a21cc1fb2507d5985c3b88eb88c61a0cfe91d75e18536eab8626bd864d2a8d658e75a2b64b547e9ba81c74dfa7c701f9cfaf4c17671ab147fb50a4c80bc8
7
- data.tar.gz: 217bd3fca492ccdfac286537c5f228bb08c9ecacdbe6ce6dc1c0e767ca4ae1d4976b392a74eed737907e9c3d12cefd61331a3ce67240080a190d3a7ca5c8aebc
6
+ metadata.gz: ed6b161c7dc68ac136a09fb03491c3bdde83c74f99798457c7aac1f4404dbb5fb4ff42f61ba3e584e6f99bcdfec39df95175ddb6efb8e098bb3b3ce0993621a6
7
+ data.tar.gz: c1564e6c0144701399a9f288d26993daa31ff60fdd3a46b37b9babe19eb00cd2449b607ec7e4987e57532d369e7668fdfbbef4574bb4ef76d314dd9e406d7ce8
@@ -29,7 +29,7 @@ module Bitfields
29
29
 
30
30
  def self.extract_bits(options)
31
31
  bitfields = {}
32
- options.keys.select{|key| key.is_a?(Fixnum) }.each do |bit|
32
+ options.keys.select{|key| key.is_a?(Numeric) }.each do |bit|
33
33
  raise "#{bit} is not a power of 2 !!" unless bit.to_s(2).scan('1').size == 1
34
34
  bit_name = options.delete(bit).to_sym
35
35
  raise DuplicateBitNameError if bitfields.include?(bit_name)
@@ -1,3 +1,3 @@
1
1
  module Bitfields
2
- Version = VERSION = "0.5.1"
2
+ Version = VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitfields
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser