redis-bloomfilter 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.travis.yml +8 -0
- data/README.md +3 -1
- data/lib/redis-bloomfilter.rb +1 -0
- data/lib/redis/bloomfilter.rb +0 -6
- data/lib/redis/bloomfilter/version.rb +8 -0
- data/redis-bloomfilter.gemspec +5 -4
- data/spec/redis_bloomfilter_spec.rb +3 -3
- metadata +37 -18
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YWU5ZWE2Mjg1OTVmMGVlZWQ0ZTZmNzkwNTE3MDJiNjI1OTI0MzMzYQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
Zjg5NDkwNDdmOWZiOThlMWYxZTkyOWI1OGE2ODcxZmU1ZjZkMTZiYQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
OTQ2YmM1Zjk2NTg4NjE4N2MwMjVlZDEyMmE3ZGE2MTlmMmE2NWM3YzdmYjJh
|
10
|
+
YjdjODBkM2QzN2NiNTgzNmUyMmY4OWNiNTBiNjhiYTU5OGRkNTI1NDNlOWNh
|
11
|
+
ZDJhYWNmMmZjOGQ5M2QxNjYyYzdmMmI4YmEzZjM4NzU0YjIwMzA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YzkzMjg5ZTRhZDNlNGI1YTBlMzMwMjY4NDQ0N2RhMTM4MmE2ZmZmMTY1ZjQ3
|
14
|
+
NTg0MzM3NmM2MGE0N2JkYWMzMDI0NDdjZTFlMzMyMDMzNmU2ZmYzYTZkMjhl
|
15
|
+
ZjMxMTllZTVmZGY4YmMxZGUzYzExZGYyNWNmZmNlZTRiZTlmZGQ=
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
[![Build Status](https://travis-ci.org/taganaka/redis-bloomfilter.svg?branch=master)](https://travis-ci.org/taganaka/redis-bloomfilter)
|
2
|
+
|
1
3
|
redis-bloomfilter
|
2
4
|
=============
|
3
5
|
Requires the redis gem.
|
4
6
|
|
5
|
-
Adds Redis::Bloomfilter class which can be used as
|
7
|
+
Adds Redis::Bloomfilter class which can be used as distributed bloom filter implementation on Redis.
|
6
8
|
|
7
9
|
A Bloom filter is a space-efficient probabilistic data structure that is used to test whether an element is a member of a set.
|
8
10
|
|
data/lib/redis-bloomfilter.rb
CHANGED
data/lib/redis/bloomfilter.rb
CHANGED
data/redis-bloomfilter.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require "redis
|
3
|
+
require "redis/bloomfilter/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "redis-bloomfilter"
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
Adds Redis::Bloomfilter class which can be used as ditributed bloom filter implementation on Redis.
|
14
14
|
A Bloom filter is a space-efficient probabilistic data structure that is used to test whether an element is a member of a set.
|
15
15
|
}
|
16
|
-
|
16
|
+
s.licenses = ['MIT']
|
17
17
|
s.rubyforge_project = "redis-bloomfilter"
|
18
18
|
|
19
19
|
s.files = `git ls-files`.split("\n")
|
@@ -21,10 +21,11 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
|
24
|
-
s.
|
25
|
-
s.
|
24
|
+
s.add_runtime_dependency 'hiredis', '~> 0.5', '>= 0.5.2'
|
25
|
+
s.add_runtime_dependency 'redis', '~> 3.0', '>= 3.0.4'
|
26
26
|
|
27
27
|
s.add_development_dependency "rspec"
|
28
28
|
s.add_development_dependency "flexmock"
|
29
|
+
s.add_development_dependency "rake"
|
29
30
|
|
30
31
|
end
|
@@ -72,7 +72,7 @@ describe Redis::Bloomfilter do
|
|
72
72
|
bf = factory({:size => 100, :error_rate => 0.01, :key_name => '__test_bf'},driver)
|
73
73
|
bf.clear
|
74
74
|
e = test_error_rate bf, 180
|
75
|
-
e.should be
|
75
|
+
e.should be <= bf.options[:error_rate]
|
76
76
|
bf.clear
|
77
77
|
end
|
78
78
|
|
@@ -90,8 +90,8 @@ describe Redis::Bloomfilter do
|
|
90
90
|
it 'should be a scalable bloom filter' do
|
91
91
|
bf = factory({:size => 10, :error_rate => 0.01, :key_name => '__test_bf'},'lua')
|
92
92
|
bf.clear
|
93
|
-
e = test_error_rate(bf,
|
94
|
-
e.should be
|
93
|
+
e = test_error_rate(bf, 100)
|
94
|
+
e.should be <= bf.options[:error_rate]
|
95
95
|
bf.clear
|
96
96
|
|
97
97
|
end
|
metadata
CHANGED
@@ -1,52 +1,58 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-bloomfilter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Francesco Laurita
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-05-24 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: hiredis
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
19
|
+
version: '0.5'
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.5.2
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
25
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: '0.5'
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.5.2
|
30
33
|
- !ruby/object:Gem::Dependency
|
31
34
|
name: redis
|
32
35
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
36
|
requirements:
|
35
37
|
- - ~>
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '3.0'
|
40
|
+
- - ! '>='
|
36
41
|
- !ruby/object:Gem::Version
|
37
42
|
version: 3.0.4
|
38
43
|
type: :runtime
|
39
44
|
prerelease: false
|
40
45
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
46
|
requirements:
|
43
47
|
- - ~>
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '3.0'
|
50
|
+
- - ! '>='
|
44
51
|
- !ruby/object:Gem::Version
|
45
52
|
version: 3.0.4
|
46
53
|
- !ruby/object:Gem::Dependency
|
47
54
|
name: rspec
|
48
55
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
56
|
requirements:
|
51
57
|
- - ! '>='
|
52
58
|
- !ruby/object:Gem::Version
|
@@ -54,7 +60,6 @@ dependencies:
|
|
54
60
|
type: :development
|
55
61
|
prerelease: false
|
56
62
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
63
|
requirements:
|
59
64
|
- - ! '>='
|
60
65
|
- !ruby/object:Gem::Version
|
@@ -62,7 +67,6 @@ dependencies:
|
|
62
67
|
- !ruby/object:Gem::Dependency
|
63
68
|
name: flexmock
|
64
69
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
70
|
requirements:
|
67
71
|
- - ! '>='
|
68
72
|
- !ruby/object:Gem::Version
|
@@ -70,7 +74,20 @@ dependencies:
|
|
70
74
|
type: :development
|
71
75
|
prerelease: false
|
72
76
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: rake
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
91
|
requirements:
|
75
92
|
- - ! '>='
|
76
93
|
- !ruby/object:Gem::Version
|
@@ -86,6 +103,7 @@ extra_rdoc_files: []
|
|
86
103
|
files:
|
87
104
|
- .gitignore
|
88
105
|
- .rspec
|
106
|
+
- .travis.yml
|
89
107
|
- Gemfile
|
90
108
|
- LICENSE.txt
|
91
109
|
- README.md
|
@@ -98,32 +116,33 @@ files:
|
|
98
116
|
- lib/bloomfilter_driver/ruby_test.rb
|
99
117
|
- lib/redis-bloomfilter.rb
|
100
118
|
- lib/redis/bloomfilter.rb
|
119
|
+
- lib/redis/bloomfilter/version.rb
|
101
120
|
- redis-bloomfilter.gemspec
|
102
121
|
- spec/redis_bloomfilter_spec.rb
|
103
122
|
- spec/spec_helper.rb
|
104
123
|
homepage: https://github.com/taganaka/redis-bloomfilter
|
105
|
-
licenses:
|
124
|
+
licenses:
|
125
|
+
- MIT
|
126
|
+
metadata: {}
|
106
127
|
post_install_message:
|
107
128
|
rdoc_options: []
|
108
129
|
require_paths:
|
109
130
|
- lib
|
110
131
|
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
-
none: false
|
112
132
|
requirements:
|
113
133
|
- - ! '>='
|
114
134
|
- !ruby/object:Gem::Version
|
115
135
|
version: '0'
|
116
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
-
none: false
|
118
137
|
requirements:
|
119
138
|
- - ! '>='
|
120
139
|
- !ruby/object:Gem::Version
|
121
140
|
version: '0'
|
122
141
|
requirements: []
|
123
142
|
rubyforge_project: redis-bloomfilter
|
124
|
-
rubygems_version:
|
143
|
+
rubygems_version: 2.2.2
|
125
144
|
signing_key:
|
126
|
-
specification_version:
|
145
|
+
specification_version: 4
|
127
146
|
summary: Distributed Bloom Filter implementation on Redis
|
128
147
|
test_files:
|
129
148
|
- spec/redis_bloomfilter_spec.rb
|