ferret 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/ferret.rb CHANGED
@@ -22,7 +22,7 @@
22
22
  #++
23
23
  # :include: ../TUTORIAL
24
24
  module Ferret
25
- VERSION = '0.9.2'
25
+ VERSION = '0.9.3'
26
26
  end
27
27
 
28
28
  # try and load the C extension but it isn't necessary.
@@ -164,7 +164,12 @@ module Ferret::Store
164
164
  rescue
165
165
  # try again, this time forcing the delete
166
166
  FileUtils.rm_rf(dir_path(to))
167
- FileUtils.cp(dir_path(from), dir_path(to))
167
+ begin
168
+ FileUtils.mv(dir_path(from), dir_path(to))
169
+ rescue
170
+ FileUtils.cp(dir_path(from), dir_path(to))
171
+ FileUtils.rm_rf(dir_path(to))
172
+ end
168
173
  end
169
174
  end
170
175
  end
data/lib/rferret.rb CHANGED
@@ -23,7 +23,7 @@ $: << File.dirname(__FILE__)
23
23
  #++
24
24
  # :include: ../TUTORIAL
25
25
  module Ferret
26
- VERSION = '0.9.2'
26
+ VERSION = '0.9.3'
27
27
  end
28
28
 
29
29
  $ferret_pure_ruby = true
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: ferret
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.9.2
6
+ version: 0.9.3
7
7
  date: 2006-05-11 00:00:00 +09:00
8
8
  summary: Ruby indexing library.
9
9
  require_paths: