You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
-
# BitArray: A simple bit-array/bitfield library in pure Ruby
1
+
# BitArray: Pure Ruby bit-array/bitfield library
2
2
3
-
A simple, pure-Ruby 'bit field' object. Works well for Bloom filters (the use case for which I originally wrote it).
3
+
A simple, pure-Ruby 'bit field' object. Works well for Bloom filters (the use case for which I originally wrote it, although there are numerous good libraries for that task now).
4
4
5
-
Originally written in 2007 and left without significant update until 2017, it has now been updated to work within a typical, modern Ruby environment while maintaining the same API.
5
+
Despite its age, BitArray has been updated to work within a typical, modern Ruby environment, but is only 'mildly' maintained.
6
6
7
7
## Installation
8
8
9
9
```ruby
10
-
gem install bitarray
10
+
bundle add bitarray
11
11
```
12
12
13
13
## Examples
@@ -63,6 +63,7 @@ ba.to_s # "0000111111110000"
63
63
64
64
65
65
## History
66
+
- 1.3 in 2022 (cleanups and a minor perf tweak)
66
67
- 1.2 in 2018 (Added option to skip reverse the bits for each byte by @dalibor)
67
68
- 1.1 in 2018 (fixed a significant bug)
68
69
- 1.0 in 2017 (updated for modern Ruby, more efficient storage, and 10th birthday)
@@ -77,8 +78,8 @@ ba.to_s # "0000111111110000"
77
78
78
79
Thanks to Michael Slade for encouraging me to update this library on its 10th birthday and for suggesting finally using String's getbyte and setbyte methods now that we're all on 1.9+ compatible implementations.
79
80
80
-
Further thanks to @tdeo, @JoshuaSP, @dalibor and @m1lt0n for pull requests.
81
+
Further thanks to @tdeo, @JoshuaSP, @dalibor, @yegct and @m1lt0n for pull requests.
0 commit comments