jruby-bloomfilter 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.4'
9
+ s.version = '1.0.5'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = ['Daniel Gaiottino']
12
12
  s.email = ['daniel@burtcorp.com']
@@ -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.open(path, 'w') do |f|
11
- Marshal.dump(filter, f)
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.4
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-12 00:00:00 Z
13
+ date: 2011-07-14 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jets3t-rb