mneme 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -4
- data/lib/mneme.rb +6 -8
- data/mneme.gemspec +1 -1
- metadata +2 -2
data/Gemfile
CHANGED
data/lib/mneme.rb
CHANGED
@@ -75,8 +75,8 @@ class Mneme < Goliath::API
|
|
75
75
|
def filter(n)
|
76
76
|
period = epoch_name(config['namespace'], n, config['length'])
|
77
77
|
|
78
|
-
filter = if env.key? period
|
79
|
-
env[period]
|
78
|
+
filter = if env[Goliath::Constants::CONFIG].key? period
|
79
|
+
env[Goliath::Constants::CONFIG][period]
|
80
80
|
else
|
81
81
|
opts = {
|
82
82
|
namespace: config['namespace'],
|
@@ -85,13 +85,11 @@ class Mneme < Goliath::API
|
|
85
85
|
hashes: config['hashes']
|
86
86
|
}
|
87
87
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
env[period]
|
88
|
+
env[Goliath::Constants::CONFIG][period] = EventMachine::Synchrony::ConnectionPool.new(size: 1) do
|
89
|
+
BloomFilter::Redis.new(opts)
|
90
|
+
end
|
93
91
|
end
|
94
92
|
|
95
93
|
filter
|
96
94
|
end
|
97
|
-
end
|
95
|
+
end
|
data/mneme.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: mneme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.5.
|
5
|
+
version: 0.5.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ilya Grigorik
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-30 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|