jruby-bloomfilter 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/bloomfilter.gemspec +1 -1
- data/lib/bloomfilter.rb +3 -0
- metadata +2 -2
data/bloomfilter.gemspec
CHANGED
@@ -6,7 +6,7 @@ Dir['ext/*.jar'].each { |jar| require jar }
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = 'jruby-bloomfilter'
|
9
|
-
s.version = '1.0.
|
9
|
+
s.version = '1.0.11'
|
10
10
|
s.platform = Gem::Platform::RUBY
|
11
11
|
s.authors = ['Daniel Gaiottino', 'David Tollmyr']
|
12
12
|
s.email = ['daniel@burtcorp.com', 'david@burtcorp.com']
|
data/lib/bloomfilter.rb
CHANGED
@@ -12,6 +12,8 @@ end
|
|
12
12
|
|
13
13
|
module Bloomfilter
|
14
14
|
class Bloomfilter
|
15
|
+
attr_accessor :recently_loaded
|
16
|
+
|
15
17
|
def initialize(options = {})
|
16
18
|
if options[:size] && options[:false_positive_percentage]
|
17
19
|
@filter = Jar::BloomFilter.new(options[:false_positive_percentage], options[:size])
|
@@ -20,6 +22,7 @@ module Bloomfilter
|
|
20
22
|
end
|
21
23
|
|
22
24
|
@lock = Jar::ReentrantLock.new
|
25
|
+
@recently_loaded = true
|
23
26
|
end
|
24
27
|
|
25
28
|
def << (k)
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: jruby-bloomfilter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.11
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Daniel Gaiottino
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-08-
|
14
|
+
date: 2011-08-12 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: jets3t-rb
|