bitmap 0.0.3.1 → 0.0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/bitmap.rb +6 -2
  2. metadata +1 -1
@@ -33,11 +33,15 @@ class Bitmap < Hash
33
33
  end
34
34
 
35
35
  def + (*what)
36
- bitmap[*(@names + what.flatten.compact)]
36
+ bitmap[*(@names + what.flatten.map {|piece|
37
+ piece.to_a rescue piece
38
+ }).flatten.compact]
37
39
  end
38
40
 
39
41
  def - (*what)
40
- bitmap[*(@names - what.flatten.compact)]
42
+ bitmap[*(@names - what.flatten.map {|piece|
43
+ piece.to_a rescue piece
44
+ }).flatten.compact]
41
45
  end
42
46
 
43
47
  def to_i
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bitmap
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3.1
5
+ version: 0.0.3.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - meh.