json-bloomfilter 0.1.1 → 0.1.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.
- data/.gitignore +2 -0
- data/.travis.yml +3 -0
- data/Gemfile +1 -5
- data/README.md +20 -1
- data/json-bloomfilter.gemspec +1 -0
- data/lib/json/bloomfilter.rb +1 -0
- data/lib/json/bloomfilter/version.rb +1 -1
- metadata +20 -11
- data/Gemfile.lock +0 -76
- data/pkg/json-bloomfilter-0.0.1.gem +0 -0
- data/pkg/json-bloomfilter-0.0.2.gem +0 -0
- data/pkg/json-bloomfilter-0.0.3.gem +0 -0
- data/pkg/json-bloomfilter-0.0.4.gem +0 -0
- data/pkg/json-bloomfilter-0.0.5.gem +0 -0
- data/pkg/json-bloomfilter-0.0.6.gem +0 -0
- data/pkg/json-bloomfilter-0.1.0.gem +0 -0
data/.gitignore
ADDED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -18,6 +18,9 @@ All of this while not sending the entire list to the client, which is something
|
|
18
18
|
|
19
19
|
```shell
|
20
20
|
gem install json-bloomfilter
|
21
|
+
|
22
|
+
# and optionally add
|
23
|
+
require "json/bloomfilter"
|
21
24
|
```
|
22
25
|
|
23
26
|
or
|
@@ -36,7 +39,7 @@ With the gem installed run
|
|
36
39
|
json-bloomfilter install
|
37
40
|
```
|
38
41
|
|
39
|
-
and the `json-bloomfilter.min.js` will be copied to your local directory. If you are in a
|
42
|
+
and the `json-bloomfilter.min.js` will be copied to your local directory. If you are in a Rails project it will be copied to your `app/assets/javascripts` folder.
|
40
43
|
|
41
44
|
## Usage
|
42
45
|
|
@@ -112,8 +115,24 @@ Additionally you can pass along:
|
|
112
115
|
* [bloomfilter.rb](https://github.com/cbetta/json-bloomfilter/blob/master/lib/json/bloomfilter.rb) and [bloomfilter.coffee](https://github.com/cbetta/json-bloomfilter/blob/master/coffee/bloomfilter.coffee) inspired by [Ilya Grigorik's Redis Bloomfilter](https://github.com/igrigorik/bloomfilter-rb/blob/master/lib/bloomfilter/redis.rb)
|
113
116
|
* [zlib.coffee](https://github.com/cbetta/json-bloomfilter/blob/master/coffee/zlib.coffee) crc32 method based on the [node-crc32](https://github.com/mikepulaski/node-crc32) library and [this snippet](http://stackoverflow.com/questions/6226189/how-to-convert-a-string-to-bytearray/10132540#10132540)
|
114
117
|
|
118
|
+
## Compatibilities
|
119
|
+
|
120
|
+
### Confirmed:
|
121
|
+
|
122
|
+
* Ruby 1.8.7
|
123
|
+
* Ruby 1.8.2
|
124
|
+
* Ruby 1.9.3
|
125
|
+
* Rubinius (1.8 mode)
|
126
|
+
* Rubinius (1.9 mode)
|
127
|
+
* REE
|
128
|
+
|
129
|
+
### Probably will work:
|
130
|
+
|
131
|
+
* jRuby
|
132
|
+
|
115
133
|
## Release notes
|
116
134
|
|
135
|
+
* **0.1.2** Added Zlib dependency
|
117
136
|
* **0.1.1** Fixes a JS integer overflow issue and makes Ruby 1.8.7 compatible
|
118
137
|
* **0.1.0** Adds travis-ci. Bumped minor release version
|
119
138
|
* **0.0.6** Adds a factory that takes a size + error rate
|
data/json-bloomfilter.gemspec
CHANGED
data/lib/json/bloomfilter.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json-bloomfilter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -27,6 +27,22 @@ dependencies:
|
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
30
46
|
- !ruby/object:Gem::Dependency
|
31
47
|
name: rspec
|
32
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -149,11 +165,11 @@ executables:
|
|
149
165
|
extensions: []
|
150
166
|
extra_rdoc_files: []
|
151
167
|
files:
|
168
|
+
- .gitignore
|
152
169
|
- .rspec
|
153
170
|
- .rvmrc
|
154
171
|
- .travis.yml
|
155
172
|
- Gemfile
|
156
|
-
- Gemfile.lock
|
157
173
|
- LICENSE
|
158
174
|
- README.md
|
159
175
|
- Rakefile
|
@@ -166,13 +182,6 @@ files:
|
|
166
182
|
- lib/json/bloomfilter.rb
|
167
183
|
- lib/json/bloomfilter/bitarray.rb
|
168
184
|
- lib/json/bloomfilter/version.rb
|
169
|
-
- pkg/json-bloomfilter-0.0.1.gem
|
170
|
-
- pkg/json-bloomfilter-0.0.2.gem
|
171
|
-
- pkg/json-bloomfilter-0.0.3.gem
|
172
|
-
- pkg/json-bloomfilter-0.0.4.gem
|
173
|
-
- pkg/json-bloomfilter-0.0.5.gem
|
174
|
-
- pkg/json-bloomfilter-0.0.6.gem
|
175
|
-
- pkg/json-bloomfilter-0.1.0.gem
|
176
185
|
- spec/javascripts/bitarray_spec.js
|
177
186
|
- spec/javascripts/bloomfilter_spec.js
|
178
187
|
- spec/javascripts/support/jasmine.yml
|
@@ -201,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
210
|
version: '0'
|
202
211
|
segments:
|
203
212
|
- 0
|
204
|
-
hash:
|
213
|
+
hash: 4489875817135745324
|
205
214
|
requirements: []
|
206
215
|
rubyforge_project:
|
207
216
|
rubygems_version: 1.8.24
|
data/Gemfile.lock
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
json-bloomfilter (0.1.1)
|
5
|
-
json
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: http://rubygems.org/
|
9
|
-
specs:
|
10
|
-
POpen4 (0.1.4)
|
11
|
-
Platform (>= 0.4.0)
|
12
|
-
open4
|
13
|
-
Platform (0.4.0)
|
14
|
-
addressable (2.3.2)
|
15
|
-
childprocess (0.3.6)
|
16
|
-
ffi (~> 1.0, >= 1.0.6)
|
17
|
-
coffee-script (2.2.0)
|
18
|
-
coffee-script-source
|
19
|
-
execjs
|
20
|
-
coffee-script-source (1.4.0)
|
21
|
-
diff-lcs (1.1.3)
|
22
|
-
execjs (1.4.0)
|
23
|
-
multi_json (~> 1.0)
|
24
|
-
ffi (1.3.1)
|
25
|
-
fssm (0.2.9)
|
26
|
-
jasmine (1.3.1)
|
27
|
-
jasmine-core (~> 1.3.1)
|
28
|
-
rack (~> 1.0)
|
29
|
-
rspec (>= 1.3.1)
|
30
|
-
selenium-webdriver (>= 0.1.3)
|
31
|
-
jasmine-core (1.3.1)
|
32
|
-
json (1.7.6)
|
33
|
-
libv8 (3.11.8.13)
|
34
|
-
libwebsocket (0.1.7.1)
|
35
|
-
addressable
|
36
|
-
websocket
|
37
|
-
multi_json (1.5.0)
|
38
|
-
open4 (1.3.0)
|
39
|
-
rack (1.4.4)
|
40
|
-
rake (10.0.3)
|
41
|
-
rb-fsevent (0.9.3)
|
42
|
-
ref (1.0.2)
|
43
|
-
rspec (2.12.0)
|
44
|
-
rspec-core (~> 2.12.0)
|
45
|
-
rspec-expectations (~> 2.12.0)
|
46
|
-
rspec-mocks (~> 2.12.0)
|
47
|
-
rspec-core (2.12.2)
|
48
|
-
rspec-expectations (2.12.1)
|
49
|
-
diff-lcs (~> 1.1.3)
|
50
|
-
rspec-mocks (2.12.1)
|
51
|
-
rubyzip (0.9.9)
|
52
|
-
selenium-webdriver (2.27.2)
|
53
|
-
childprocess (>= 0.2.5)
|
54
|
-
libwebsocket (~> 0.1.3)
|
55
|
-
multi_json (~> 1.0)
|
56
|
-
rubyzip
|
57
|
-
therubyracer (0.11.3)
|
58
|
-
libv8 (~> 3.11.8.12)
|
59
|
-
ref
|
60
|
-
websocket (1.0.6)
|
61
|
-
yui-compressor (0.9.6)
|
62
|
-
POpen4 (>= 0.1.4)
|
63
|
-
|
64
|
-
PLATFORMS
|
65
|
-
ruby
|
66
|
-
|
67
|
-
DEPENDENCIES
|
68
|
-
coffee-script
|
69
|
-
fssm
|
70
|
-
jasmine
|
71
|
-
json-bloomfilter!
|
72
|
-
rake
|
73
|
-
rb-fsevent
|
74
|
-
rspec
|
75
|
-
therubyracer
|
76
|
-
yui-compressor
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|