acts_as_indexed 0.8.2 → 0.8.3
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.
- checksums.yaml +7 -0
- data/.travis.yml +1 -0
- data/CHANGELOG +5 -3
- data/VERSION +1 -1
- data/acts_as_indexed.gemspec +2 -11
- data/lib/acts_as_indexed/pre_tokenizer.rb +1 -1
- data/test/integration/acts_as_indexed_test.rb +6 -0
- data/test/unit/pre_tokenizer_test.rb +4 -0
- metadata +7 -9
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 642523bc6ba9fd2b5792780bb53c0b3c3dee27b2
|
4
|
+
data.tar.gz: 8d5fe0cbb95dab8171e53291da5c451c667b91f6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 51b9c9c8996073136abe30daeda6381f88cd7b03c11b858be4c4c6f77533c24a55fe29ed052f77200e0d615c59652a50fbb38e1ebb9941f740695af2a747842f
|
7
|
+
data.tar.gz: bfae2e2d9deba4c6c53f02a4f6c20b36c512f11e27e384de0bebfd0cbbd3355c4745f74f5b160cb54fb28f9a408713be7c26f66027dee2dadc036a8c0cdade49
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
===0.8.3 [17 February 2013]
|
2
|
+
- Now tested on Ruby 2.0.
|
3
|
+
- Fixed issue where underscores were not stripped by the pre-tokenizer.
|
4
|
+
|
1
5
|
===0.8.2 [27 January 2013]
|
2
6
|
- Full review and update of test examples.
|
3
7
|
- Fixed bug where all records matching resulted in an ID rather than scored order. [phurni - Pascal Hurni]
|
@@ -14,7 +18,7 @@
|
|
14
18
|
- Fixed bug where intentional hyphenation was treated as a negative query. Fixes #31.
|
15
19
|
- Fixed bug where will_paginate_search was not being required. Fixes #23.
|
16
20
|
- Fixed bug where quoted phrases were matched across field boundaries. [novalis - David Turner]
|
17
|
-
- Fixed bug where records with
|
21
|
+
- Fixed bug where records with identical match-rankings were returned in different orders under different Ruby implementations.
|
18
22
|
- Storage is now process and thread-safe. Fixes issue #34. [rsamoilov - Roman Samoilov]
|
19
23
|
- Added configuration option to force is-Windows mode for storage. Fixes issues #32, #39.
|
20
24
|
- Added multiple Gemfiles for Travis CI. https://travis-ci.org/dougal/acts_as_indexed
|
@@ -167,9 +171,7 @@
|
|
167
171
|
- Fixed a bug when searching for quoted phrases.
|
168
172
|
|
169
173
|
===0.1.01 [31 August 2007]
|
170
|
-
|
171
174
|
- Fixed a casting bug occurring when adding non-string fields to the index.
|
172
175
|
|
173
176
|
===0.1 [31 August 2007]
|
174
|
-
|
175
177
|
- Initial release.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.3
|
data/acts_as_indexed.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "acts_as_indexed"
|
8
|
-
s.version = "0.8.
|
8
|
+
s.version = "0.8.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Douglas F Shearer"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-04-17"
|
13
13
|
s.description = "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 = "dougal.s@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -65,14 +65,5 @@ Gem::Specification.new do |s|
|
|
65
65
|
s.require_paths = ["lib"]
|
66
66
|
s.rubygems_version = "1.8.23"
|
67
67
|
s.summary = "Acts As Indexed is a plugin which provides a pain-free way to add fulltext search to your Ruby on Rails app"
|
68
|
-
|
69
|
-
if s.respond_to? :specification_version then
|
70
|
-
s.specification_version = 3
|
71
|
-
|
72
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
73
|
-
else
|
74
|
-
end
|
75
|
-
else
|
76
|
-
end
|
77
68
|
end
|
78
69
|
|
@@ -282,6 +282,12 @@ class ActsAsIndexedTest < ActiveSupport::TestCase
|
|
282
282
|
assert_equal [], Post.find_with_index('"myself crane"', { :limit => 1 }, :ids_only => true)
|
283
283
|
end
|
284
284
|
|
285
|
+
def test_records_with_underscores
|
286
|
+
post_with_underscores = Post.create(:title => 'Test_try_it', :body => 'Any old thing')
|
287
|
+
|
288
|
+
assert_equal [post_with_underscores], Post.find_with_index('try')
|
289
|
+
end
|
290
|
+
|
285
291
|
private
|
286
292
|
|
287
293
|
def run_queries(queries)
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_indexed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
5
|
-
prerelease:
|
4
|
+
version: 0.8.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Douglas F Shearer
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-04-17 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Acts As Indexed is a plugin which provides a pain-free way to add fulltext
|
15
14
|
search to your Ruby on Rails app
|
@@ -65,27 +64,26 @@ files:
|
|
65
64
|
- test/unit_test_helper.rb
|
66
65
|
homepage: http://github.com/dougal/acts_as_indexed
|
67
66
|
licenses: []
|
67
|
+
metadata: {}
|
68
68
|
post_install_message:
|
69
69
|
rdoc_options: []
|
70
70
|
require_paths:
|
71
71
|
- lib
|
72
72
|
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
73
|
requirements:
|
75
|
-
- -
|
74
|
+
- - '>='
|
76
75
|
- !ruby/object:Gem::Version
|
77
76
|
version: '0'
|
78
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
78
|
requirements:
|
81
|
-
- -
|
79
|
+
- - '>='
|
82
80
|
- !ruby/object:Gem::Version
|
83
81
|
version: '0'
|
84
82
|
requirements: []
|
85
83
|
rubyforge_project:
|
86
|
-
rubygems_version:
|
84
|
+
rubygems_version: 2.0.0
|
87
85
|
signing_key:
|
88
|
-
specification_version:
|
86
|
+
specification_version: 4
|
89
87
|
summary: Acts As Indexed is a plugin which provides a pain-free way to add fulltext
|
90
88
|
search to your Ruby on Rails app
|
91
89
|
test_files: []
|