jruby-bloomfilter 1.0.4 → 1.0.5
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/bloomfilter.gemspec +1 -1
- data/lib/bloomfilter/serialization/file.rb +11 -2
- metadata +2 -2
data/bloomfilter.gemspec
CHANGED
@@ -6,9 +6,18 @@ module Bloomfilter
|
|
6
6
|
unless ::File.directory?(dir)
|
7
7
|
%x(mkdir -p #{dir})
|
8
8
|
end
|
9
|
+
|
10
|
+
unless ::File.directory?(dir)
|
11
|
+
$stderr.puts "Unable to create the directory #{dir}. Trying again."
|
12
|
+
%x(mkdir -p #{dir})
|
13
|
+
end
|
9
14
|
|
10
|
-
::File.
|
11
|
-
|
15
|
+
unless ::File.directory?(dir)
|
16
|
+
$stderr.puts "#{dir} still doesn't exist. Giving up for now."
|
17
|
+
else
|
18
|
+
::File.open(path, 'w') do |f|
|
19
|
+
Marshal.dump(filter, f)
|
20
|
+
end
|
12
21
|
end
|
13
22
|
end
|
14
23
|
|
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.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Daniel Gaiottino
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-14 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: jets3t-rb
|