bitindex 0.0.2 → 0.0.3
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.
- data/README.md +2 -2
- data/lib/bitindex/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Bitindex
|
1
|
+
# Bitindex [](http://travis-ci.org/palmergs/bitindex)
|
2
2
|
|
3
3
|
Bitindex is a simple gem for writing binary files where the position of a 1 in the bits of the file indicates a true value and 0 indicates a false. The default is to read from left to right so that a file that consists of `1000 1000` could be read to return true for the value 0 and the value 4 and false for all other integer values.
|
4
4
|
|
@@ -27,7 +27,7 @@ require 'bitindex'
|
|
27
27
|
|
28
28
|
# Specifics
|
29
29
|
|
30
|
-
A project I was working was given a file that mapped the 32bit address space into a 530MB file where bits set to 1 indicated integer values that were set. I decided to expand the library to handle both the reading and writing of these files. Creating files of that size on my desktop (few year old MacBook Pro) takes about
|
30
|
+
A project I was working was given a file that mapped the 32bit address space into a 530MB file where bits set to 1 indicated integer values that were set. I decided to expand the library to handle both the reading and writing of these files. Creating files of that size on my desktop (few year old MacBook Pro) takes about 10 minutes. But reading from the file is fairly quick.
|
31
31
|
|
32
32
|
Future enhancements:
|
33
33
|
* compressing and decompressing the file
|
data/lib/bitindex/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Galen Palmer
|
@@ -52,7 +52,7 @@ files:
|
|
52
52
|
- spec/writer_spec.rb
|
53
53
|
- README.md
|
54
54
|
has_rdoc: true
|
55
|
-
homepage:
|
55
|
+
homepage: https://github.com/palmergs/bitindex
|
56
56
|
licenses: []
|
57
57
|
|
58
58
|
post_install_message:
|