fuzzily 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +9 -0
- data/Appraisals +15 -0
- data/Gemfile.lock +19 -5
- data/README.md +2 -0
- data/Rakefile +1 -0
- data/fuzzily.gemspec +2 -1
- data/gemfiles/rails23.gemfile +7 -0
- data/gemfiles/rails23.gemfile.lock +48 -0
- data/gemfiles/rails30.gemfile +7 -0
- data/gemfiles/rails30.gemfile.lock +59 -0
- data/gemfiles/rails31.gemfile +7 -0
- data/gemfiles/rails31.gemfile.lock +61 -0
- data/gemfiles/rails32.gemfile +7 -0
- data/gemfiles/rails32.gemfile.lock +61 -0
- data/lib/fuzzily/model.rb +6 -3
- data/lib/fuzzily/version.rb +1 -1
- data/spec/fuzzily/model_spec.rb +2 -0
- data/spec/fuzzily/trigram_spec.rb +1 -0
- metadata +132 -108
data/.travis.yml
ADDED
data/Appraisals
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
appraise "rails23" do
|
2
|
+
gem "activerecord", "~> 2.3.0"
|
3
|
+
end
|
4
|
+
|
5
|
+
appraise "rails30" do
|
6
|
+
gem "activerecord", "~> 3.0.0"
|
7
|
+
end
|
8
|
+
|
9
|
+
appraise "rails31" do
|
10
|
+
gem "activerecord", "~> 3.1.0"
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise "rails32" do
|
14
|
+
gem "activerecord", "~> 3.2.0"
|
15
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,21 +1,33 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fuzzily (0.0
|
5
|
-
activerecord (
|
4
|
+
fuzzily (0.1.0)
|
5
|
+
activerecord (>= 2.3.17)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
activesupport (= 2.
|
12
|
-
|
10
|
+
activemodel (3.2.12)
|
11
|
+
activesupport (= 3.2.12)
|
12
|
+
builder (~> 3.0.0)
|
13
|
+
activerecord (3.2.12)
|
14
|
+
activemodel (= 3.2.12)
|
15
|
+
activesupport (= 3.2.12)
|
16
|
+
arel (~> 3.0.2)
|
17
|
+
tzinfo (~> 0.3.29)
|
18
|
+
activesupport (3.2.12)
|
19
|
+
i18n (~> 0.6)
|
20
|
+
multi_json (~> 1.0)
|
13
21
|
appraisal (0.5.1)
|
14
22
|
bundler
|
15
23
|
rake
|
24
|
+
arel (3.0.2)
|
25
|
+
builder (3.0.4)
|
16
26
|
coderay (1.0.9)
|
17
27
|
diff-lcs (1.1.3)
|
28
|
+
i18n (0.6.1)
|
18
29
|
method_source (0.8.1)
|
30
|
+
multi_json (1.6.1)
|
19
31
|
pry (0.9.12)
|
20
32
|
coderay (~> 1.0.5)
|
21
33
|
method_source (~> 0.8)
|
@@ -33,6 +45,7 @@ GEM
|
|
33
45
|
rspec-mocks (2.12.2)
|
34
46
|
slop (3.4.3)
|
35
47
|
sqlite3 (1.3.7)
|
48
|
+
tzinfo (0.3.35)
|
36
49
|
|
37
50
|
PLATFORMS
|
38
51
|
ruby
|
@@ -42,5 +55,6 @@ DEPENDENCIES
|
|
42
55
|
fuzzily!
|
43
56
|
pry
|
44
57
|
pry-nav
|
58
|
+
rake
|
45
59
|
rspec
|
46
60
|
sqlite3
|
data/README.md
CHANGED
@@ -4,6 +4,8 @@ A fast, [trigram](http://en.wikipedia.org/wiki/N-gram)-based, database-backed [f
|
|
4
4
|
|
5
5
|
Loosely inspired from an [old blog post](http://unirec.blogspot.co.uk/2007/12/live-fuzzy-search-using-n-grams-in.html).
|
6
6
|
|
7
|
+
Compatible with ActiveRecord 2.3, 3.0, 3.1, 3.2.
|
8
|
+
|
7
9
|
## Installation
|
8
10
|
|
9
11
|
Add this line to your application's Gemfile:
|
data/Rakefile
CHANGED
data/fuzzily.gemspec
CHANGED
@@ -12,9 +12,10 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.summary = %q{A fast, trigram-based, database-backed fuzzy string search/match engine for Rails.}
|
13
13
|
gem.homepage = ""
|
14
14
|
|
15
|
-
gem.add_runtime_dependency 'activerecord', '
|
15
|
+
gem.add_runtime_dependency 'activerecord', '>= 2.3.17'
|
16
16
|
|
17
17
|
gem.add_development_dependency 'rspec'
|
18
|
+
gem.add_development_dependency 'rake'
|
18
19
|
gem.add_development_dependency 'appraisal'
|
19
20
|
gem.add_development_dependency 'pry'
|
20
21
|
gem.add_development_dependency 'pry-nav'
|
@@ -0,0 +1,48 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/mezis/Dropbox/Development/fuzzily
|
3
|
+
specs:
|
4
|
+
fuzzily (0.1.0)
|
5
|
+
activerecord (>= 2.3.17)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activerecord (2.3.17)
|
11
|
+
activesupport (= 2.3.17)
|
12
|
+
activesupport (2.3.17)
|
13
|
+
appraisal (0.5.1)
|
14
|
+
bundler
|
15
|
+
rake
|
16
|
+
coderay (1.0.9)
|
17
|
+
diff-lcs (1.1.3)
|
18
|
+
method_source (0.8.1)
|
19
|
+
pry (0.9.12)
|
20
|
+
coderay (~> 1.0.5)
|
21
|
+
method_source (~> 0.8)
|
22
|
+
slop (~> 3.4)
|
23
|
+
pry-nav (0.2.3)
|
24
|
+
pry (~> 0.9.10)
|
25
|
+
rake (10.0.3)
|
26
|
+
rspec (2.12.0)
|
27
|
+
rspec-core (~> 2.12.0)
|
28
|
+
rspec-expectations (~> 2.12.0)
|
29
|
+
rspec-mocks (~> 2.12.0)
|
30
|
+
rspec-core (2.12.2)
|
31
|
+
rspec-expectations (2.12.1)
|
32
|
+
diff-lcs (~> 1.1.3)
|
33
|
+
rspec-mocks (2.12.2)
|
34
|
+
slop (3.4.3)
|
35
|
+
sqlite3 (1.3.7)
|
36
|
+
|
37
|
+
PLATFORMS
|
38
|
+
ruby
|
39
|
+
|
40
|
+
DEPENDENCIES
|
41
|
+
activerecord (~> 2.3.0)
|
42
|
+
appraisal
|
43
|
+
fuzzily!
|
44
|
+
pry
|
45
|
+
pry-nav
|
46
|
+
rake
|
47
|
+
rspec
|
48
|
+
sqlite3
|
@@ -0,0 +1,59 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/mezis/Dropbox/Development/fuzzily
|
3
|
+
specs:
|
4
|
+
fuzzily (0.1.0)
|
5
|
+
activerecord (>= 2.3.17)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (3.0.20)
|
11
|
+
activesupport (= 3.0.20)
|
12
|
+
builder (~> 2.1.2)
|
13
|
+
i18n (~> 0.5.0)
|
14
|
+
activerecord (3.0.20)
|
15
|
+
activemodel (= 3.0.20)
|
16
|
+
activesupport (= 3.0.20)
|
17
|
+
arel (~> 2.0.10)
|
18
|
+
tzinfo (~> 0.3.23)
|
19
|
+
activesupport (3.0.20)
|
20
|
+
appraisal (0.5.1)
|
21
|
+
bundler
|
22
|
+
rake
|
23
|
+
arel (2.0.10)
|
24
|
+
builder (2.1.2)
|
25
|
+
coderay (1.0.9)
|
26
|
+
diff-lcs (1.1.3)
|
27
|
+
i18n (0.5.0)
|
28
|
+
method_source (0.8.1)
|
29
|
+
pry (0.9.12)
|
30
|
+
coderay (~> 1.0.5)
|
31
|
+
method_source (~> 0.8)
|
32
|
+
slop (~> 3.4)
|
33
|
+
pry-nav (0.2.3)
|
34
|
+
pry (~> 0.9.10)
|
35
|
+
rake (10.0.3)
|
36
|
+
rspec (2.12.0)
|
37
|
+
rspec-core (~> 2.12.0)
|
38
|
+
rspec-expectations (~> 2.12.0)
|
39
|
+
rspec-mocks (~> 2.12.0)
|
40
|
+
rspec-core (2.12.2)
|
41
|
+
rspec-expectations (2.12.1)
|
42
|
+
diff-lcs (~> 1.1.3)
|
43
|
+
rspec-mocks (2.12.2)
|
44
|
+
slop (3.4.3)
|
45
|
+
sqlite3 (1.3.7)
|
46
|
+
tzinfo (0.3.35)
|
47
|
+
|
48
|
+
PLATFORMS
|
49
|
+
ruby
|
50
|
+
|
51
|
+
DEPENDENCIES
|
52
|
+
activerecord (~> 3.0.0)
|
53
|
+
appraisal
|
54
|
+
fuzzily!
|
55
|
+
pry
|
56
|
+
pry-nav
|
57
|
+
rake
|
58
|
+
rspec
|
59
|
+
sqlite3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/mezis/Dropbox/Development/fuzzily
|
3
|
+
specs:
|
4
|
+
fuzzily (0.1.0)
|
5
|
+
activerecord (>= 2.3.17)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (3.1.11)
|
11
|
+
activesupport (= 3.1.11)
|
12
|
+
builder (~> 3.0.0)
|
13
|
+
i18n (~> 0.6)
|
14
|
+
activerecord (3.1.11)
|
15
|
+
activemodel (= 3.1.11)
|
16
|
+
activesupport (= 3.1.11)
|
17
|
+
arel (~> 2.2.3)
|
18
|
+
tzinfo (~> 0.3.29)
|
19
|
+
activesupport (3.1.11)
|
20
|
+
multi_json (~> 1.0)
|
21
|
+
appraisal (0.5.1)
|
22
|
+
bundler
|
23
|
+
rake
|
24
|
+
arel (2.2.3)
|
25
|
+
builder (3.0.4)
|
26
|
+
coderay (1.0.9)
|
27
|
+
diff-lcs (1.1.3)
|
28
|
+
i18n (0.6.1)
|
29
|
+
method_source (0.8.1)
|
30
|
+
multi_json (1.6.1)
|
31
|
+
pry (0.9.12)
|
32
|
+
coderay (~> 1.0.5)
|
33
|
+
method_source (~> 0.8)
|
34
|
+
slop (~> 3.4)
|
35
|
+
pry-nav (0.2.3)
|
36
|
+
pry (~> 0.9.10)
|
37
|
+
rake (10.0.3)
|
38
|
+
rspec (2.12.0)
|
39
|
+
rspec-core (~> 2.12.0)
|
40
|
+
rspec-expectations (~> 2.12.0)
|
41
|
+
rspec-mocks (~> 2.12.0)
|
42
|
+
rspec-core (2.12.2)
|
43
|
+
rspec-expectations (2.12.1)
|
44
|
+
diff-lcs (~> 1.1.3)
|
45
|
+
rspec-mocks (2.12.2)
|
46
|
+
slop (3.4.3)
|
47
|
+
sqlite3 (1.3.7)
|
48
|
+
tzinfo (0.3.35)
|
49
|
+
|
50
|
+
PLATFORMS
|
51
|
+
ruby
|
52
|
+
|
53
|
+
DEPENDENCIES
|
54
|
+
activerecord (~> 3.1.0)
|
55
|
+
appraisal
|
56
|
+
fuzzily!
|
57
|
+
pry
|
58
|
+
pry-nav
|
59
|
+
rake
|
60
|
+
rspec
|
61
|
+
sqlite3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/mezis/Dropbox/Development/fuzzily
|
3
|
+
specs:
|
4
|
+
fuzzily (0.1.0)
|
5
|
+
activerecord (>= 2.3.17)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activemodel (3.2.12)
|
11
|
+
activesupport (= 3.2.12)
|
12
|
+
builder (~> 3.0.0)
|
13
|
+
activerecord (3.2.12)
|
14
|
+
activemodel (= 3.2.12)
|
15
|
+
activesupport (= 3.2.12)
|
16
|
+
arel (~> 3.0.2)
|
17
|
+
tzinfo (~> 0.3.29)
|
18
|
+
activesupport (3.2.12)
|
19
|
+
i18n (~> 0.6)
|
20
|
+
multi_json (~> 1.0)
|
21
|
+
appraisal (0.5.1)
|
22
|
+
bundler
|
23
|
+
rake
|
24
|
+
arel (3.0.2)
|
25
|
+
builder (3.0.4)
|
26
|
+
coderay (1.0.9)
|
27
|
+
diff-lcs (1.1.3)
|
28
|
+
i18n (0.6.1)
|
29
|
+
method_source (0.8.1)
|
30
|
+
multi_json (1.6.1)
|
31
|
+
pry (0.9.12)
|
32
|
+
coderay (~> 1.0.5)
|
33
|
+
method_source (~> 0.8)
|
34
|
+
slop (~> 3.4)
|
35
|
+
pry-nav (0.2.3)
|
36
|
+
pry (~> 0.9.10)
|
37
|
+
rake (10.0.3)
|
38
|
+
rspec (2.12.0)
|
39
|
+
rspec-core (~> 2.12.0)
|
40
|
+
rspec-expectations (~> 2.12.0)
|
41
|
+
rspec-mocks (~> 2.12.0)
|
42
|
+
rspec-core (2.12.2)
|
43
|
+
rspec-expectations (2.12.1)
|
44
|
+
diff-lcs (~> 1.1.3)
|
45
|
+
rspec-mocks (2.12.2)
|
46
|
+
slop (3.4.3)
|
47
|
+
sqlite3 (1.3.7)
|
48
|
+
tzinfo (0.3.35)
|
49
|
+
|
50
|
+
PLATFORMS
|
51
|
+
ruby
|
52
|
+
|
53
|
+
DEPENDENCIES
|
54
|
+
activerecord (~> 3.2.0)
|
55
|
+
appraisal
|
56
|
+
fuzzily!
|
57
|
+
pry
|
58
|
+
pry-nav
|
59
|
+
rake
|
60
|
+
rspec
|
61
|
+
sqlite3
|
data/lib/fuzzily/model.rb
CHANGED
@@ -5,6 +5,9 @@ module Fuzzily
|
|
5
5
|
|
6
6
|
def self.included(by)
|
7
7
|
by.ancestors.include?(ActiveRecord::Base) or raise 'Not included in an ActiveRecord subclass'
|
8
|
+
|
9
|
+
scope_method = ActiveRecord::VERSION::MAJOR == 2 ? :named_scope : :scope
|
10
|
+
|
8
11
|
by.class_eval do
|
9
12
|
return if class_variable_defined?(:@@fuzzily_trigram_model)
|
10
13
|
|
@@ -15,13 +18,13 @@ module Fuzzily
|
|
15
18
|
validates_presence_of :score
|
16
19
|
validates_presence_of :fuzzy_field
|
17
20
|
|
18
|
-
|
21
|
+
send scope_method, :for_model, lambda { |model| {
|
19
22
|
:conditions => { :owner_type => model.kind_of?(Class) ? model.name : model }
|
20
23
|
}}
|
21
|
-
|
24
|
+
send scope_method, :for_field, lambda { |field_name| {
|
22
25
|
:conditions => { :fuzzy_field => field_name }
|
23
26
|
}}
|
24
|
-
|
27
|
+
send scope_method, :with_trigram, lambda { |trigrams| {
|
25
28
|
:conditions => { :trigram => trigrams }
|
26
29
|
}}
|
27
30
|
|
data/lib/fuzzily/version.rb
CHANGED
data/spec/fuzzily/model_spec.rb
CHANGED
metadata
CHANGED
@@ -1,126 +1,153 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: fuzzily
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 3
|
10
|
-
version: 0.0.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Julien Letessier
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
-
none: false
|
24
|
-
requirements:
|
25
|
-
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
hash: 5
|
28
|
-
segments:
|
29
|
-
- 2
|
30
|
-
- 3
|
31
|
-
version: "2.3"
|
32
|
-
prerelease: false
|
12
|
+
date: 2013-03-04 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
33
15
|
name: activerecord
|
34
|
-
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
38
17
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
|
44
|
-
- 0
|
45
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.3.17
|
22
|
+
type: :runtime
|
46
23
|
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.3.17
|
30
|
+
- !ruby/object:Gem::Dependency
|
47
31
|
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
48
38
|
type: :development
|
49
|
-
|
50
|
-
|
51
|
-
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
52
49
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
|
58
|
-
- 0
|
59
|
-
version: "0"
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
60
55
|
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
61
63
|
name: appraisal
|
62
|
-
|
63
|
-
version_requirements: *id003
|
64
|
-
- !ruby/object:Gem::Dependency
|
65
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
66
65
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
|
71
|
-
|
72
|
-
- 0
|
73
|
-
version: "0"
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
74
71
|
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
75
79
|
name: pry
|
76
|
-
|
77
|
-
version_requirements: *id004
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
80
81
|
none: false
|
81
|
-
requirements:
|
82
|
-
- -
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
|
85
|
-
|
86
|
-
- 0
|
87
|
-
version: "0"
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
88
87
|
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
89
95
|
name: pry-nav
|
90
|
-
|
91
|
-
version_requirements: *id005
|
92
|
-
- !ruby/object:Gem::Dependency
|
93
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
94
97
|
none: false
|
95
|
-
requirements:
|
96
|
-
- -
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
|
99
|
-
|
100
|
-
- 0
|
101
|
-
version: "0"
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
102
103
|
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
103
111
|
name: sqlite3
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
104
118
|
type: :development
|
105
|
-
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
106
126
|
description: Fast fuzzy string matching for rails
|
107
|
-
email:
|
127
|
+
email:
|
108
128
|
- julien.letessier@gmail.com
|
109
129
|
executables: []
|
110
|
-
|
111
130
|
extensions: []
|
112
|
-
|
113
131
|
extra_rdoc_files: []
|
114
|
-
|
115
|
-
files:
|
132
|
+
files:
|
116
133
|
- .gitignore
|
117
134
|
- .rspec
|
135
|
+
- .travis.yml
|
136
|
+
- Appraisals
|
118
137
|
- Gemfile
|
119
138
|
- Gemfile.lock
|
120
139
|
- LICENSE.txt
|
121
140
|
- README.md
|
122
141
|
- Rakefile
|
123
142
|
- fuzzily.gemspec
|
143
|
+
- gemfiles/rails23.gemfile
|
144
|
+
- gemfiles/rails23.gemfile.lock
|
145
|
+
- gemfiles/rails30.gemfile
|
146
|
+
- gemfiles/rails30.gemfile.lock
|
147
|
+
- gemfiles/rails31.gemfile
|
148
|
+
- gemfiles/rails31.gemfile.lock
|
149
|
+
- gemfiles/rails32.gemfile
|
150
|
+
- gemfiles/rails32.gemfile.lock
|
124
151
|
- lib/fuzzily.rb
|
125
152
|
- lib/fuzzily/migration.rb
|
126
153
|
- lib/fuzzily/model.rb
|
@@ -133,41 +160,38 @@ files:
|
|
133
160
|
- spec/fuzzily/trigram_spec.rb
|
134
161
|
- spec/meta_spec.rb
|
135
162
|
- spec/spec_helper.rb
|
136
|
-
|
137
|
-
homepage: ""
|
163
|
+
homepage: ''
|
138
164
|
licenses: []
|
139
|
-
|
140
165
|
post_install_message:
|
141
166
|
rdoc_options: []
|
142
|
-
|
143
|
-
require_paths:
|
167
|
+
require_paths:
|
144
168
|
- lib
|
145
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
169
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
146
170
|
none: false
|
147
|
-
requirements:
|
148
|
-
- -
|
149
|
-
- !ruby/object:Gem::Version
|
150
|
-
|
151
|
-
segments:
|
171
|
+
requirements:
|
172
|
+
- - ! '>='
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
segments:
|
152
176
|
- 0
|
153
|
-
|
154
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
|
+
hash: -3139686676920702806
|
178
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
179
|
none: false
|
156
|
-
requirements:
|
157
|
-
- -
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
|
160
|
-
segments:
|
180
|
+
requirements:
|
181
|
+
- - ! '>='
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '0'
|
184
|
+
segments:
|
161
185
|
- 0
|
162
|
-
|
186
|
+
hash: -3139686676920702806
|
163
187
|
requirements: []
|
164
|
-
|
165
188
|
rubyforge_project:
|
166
|
-
rubygems_version: 1.
|
189
|
+
rubygems_version: 1.8.23
|
167
190
|
signing_key:
|
168
191
|
specification_version: 3
|
169
|
-
summary: A fast, trigram-based, database-backed fuzzy string search/match engine for
|
170
|
-
|
192
|
+
summary: A fast, trigram-based, database-backed fuzzy string search/match engine for
|
193
|
+
Rails.
|
194
|
+
test_files:
|
171
195
|
- spec/fuzzily/migration_spec.rb
|
172
196
|
- spec/fuzzily/model_spec.rb
|
173
197
|
- spec/fuzzily/searchable_spec.rb
|