acts_as_indexed 0.7.6 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ ===0.7.7 [14 November 2011]
2
+ - Fixed bug with out-of-date indexes on Windows. Fixes issue #20. [parndt - Philip Arndt]
3
+
1
4
  ===0.7.6 [24th October 2011]
2
5
  - Removed support for atomic writes under Windows. Fixes issue #15.
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.6
1
+ 0.7.7
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{acts_as_indexed}
8
- s.version = "0.7.6"
8
+ s.version = "0.7.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Douglas F Shearer}]
12
- s.date = %q{2011-10-24}
12
+ s.date = %q{2011-11-14}
13
13
  s.description = %q{Acts As Indexed is a plugin which provides a pain-free way to add fulltext search to your Ruby on Rails app}
14
14
  s.email = %q{dougal.s@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -115,7 +115,8 @@ module ActsAsIndexed #:nodoc:
115
115
  version_path = @path.join('version')
116
116
 
117
117
  if @path.exist?
118
- unless version_path.exist? && version_path.read == ActsAsIndexed::INDEX_VERSION
118
+ version_path_to_check = Pathname.new(version_path.to_s + (TEMP_FILE_EXTENSION if windows?).to_s)
119
+ unless version_path_to_check.exist? && version_path_to_check.read == ActsAsIndexed::INDEX_VERSION
119
120
  raise OldIndexVersion, "Index was created prior to version #{ActsAsIndexed::INDEX_VERSION}. Please delete it, it will be rebuilt automatically."
120
121
  end
121
122
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_indexed
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 6
10
- version: 0.7.6
9
+ - 7
10
+ version: 0.7.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Douglas F Shearer
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-24 00:00:00 Z
18
+ date: 2011-11-14 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Acts As Indexed is a plugin which provides a pain-free way to add fulltext search to your Ruby on Rails app