bitmap 0.0.1 → 0.0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bitmap.rb +1 -1
- metadata +19 -38
data/lib/bitmap.rb
CHANGED
@@ -43,7 +43,7 @@ class Bitmap < Hash
|
|
43
43
|
Value.new(args.first, args.first.to_s(2).reverse.chars.each_with_index.map {|bit, index|
|
44
44
|
next if bit.to_i.zero?
|
45
45
|
|
46
|
-
|
46
|
+
key("#{bit}#{'0' * index}".to_i(2)) or raise ArgumentError, "unknown bit at #{index}"
|
47
47
|
}.compact)
|
48
48
|
else
|
49
49
|
Value.new(args.map {|arg|
|
metadata
CHANGED
@@ -1,65 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitmap
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- meh.
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2011-08-06 00:00:00 Z
|
12
|
+
date: 2011-08-11 00:00:00.000000000Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
14
|
description:
|
22
15
|
email: meh@paranoici.org
|
23
16
|
executables: []
|
24
|
-
|
25
17
|
extensions: []
|
26
|
-
|
27
18
|
extra_rdoc_files: []
|
28
|
-
|
29
|
-
files:
|
19
|
+
files:
|
30
20
|
- lib/bitmap.rb
|
31
21
|
homepage: http://github.com/meh/ruby-bitmap
|
32
22
|
licenses: []
|
33
|
-
|
34
23
|
post_install_message:
|
35
24
|
rdoc_options: []
|
36
|
-
|
37
|
-
require_paths:
|
25
|
+
require_paths:
|
38
26
|
- lib
|
39
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
27
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
40
28
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
|
46
|
-
- 0
|
47
|
-
version: "0"
|
48
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
34
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
segments:
|
55
|
-
- 0
|
56
|
-
version: "0"
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
57
39
|
requirements: []
|
58
|
-
|
59
40
|
rubyforge_project:
|
60
41
|
rubygems_version: 1.8.6
|
61
42
|
signing_key:
|
62
43
|
specification_version: 3
|
63
|
-
summary: Simple and stupid bitmap implementation (bitmap as in bitset, not bitmap
|
44
|
+
summary: Simple and stupid bitmap implementation (bitmap as in bitset, not bitmap
|
45
|
+
image)
|
64
46
|
test_files: []
|
65
|
-
|