pg_search 0.2.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -2
- data/.rspec +1 -0
- data/.travis.yml +2 -0
- data/CHANGELOG +8 -5
- data/Gemfile +10 -5
- data/README.rdoc +151 -44
- data/Rakefile +9 -24
- data/lib/pg_search.rb +45 -21
- data/lib/pg_search/configuration.rb +13 -1
- data/lib/pg_search/configuration/association.rb +5 -6
- data/lib/pg_search/configuration/column.rb +1 -2
- data/lib/pg_search/document.rb +21 -0
- data/lib/pg_search/features/tsearch.rb +19 -10
- data/lib/pg_search/multisearch.rb +46 -0
- data/lib/pg_search/multisearchable.rb +28 -0
- data/lib/pg_search/railtie.rb +0 -4
- data/lib/pg_search/scope.rb +1 -1
- data/lib/pg_search/scope_options.rb +13 -17
- data/lib/pg_search/tasks.rb +37 -0
- data/lib/pg_search/version.rb +1 -1
- data/pg_search.gemspec +3 -0
- data/spec/associations_spec.rb +209 -230
- data/spec/pg_search/document_spec.rb +49 -0
- data/spec/pg_search/multisearch_spec.rb +66 -0
- data/spec/pg_search/multisearchable_spec.rb +108 -0
- data/spec/pg_search_spec.rb +148 -42
- data/spec/spec_helper.rb +6 -2
- metadata +83 -31
- checksums.yaml +0 -7
- data/TODO +0 -10
- data/gemfiles/Gemfile.common +0 -9
- data/gemfiles/rails2/Gemfile +0 -4
- data/gemfiles/rails3/Gemfile +0 -4
metadata
CHANGED
@@ -1,43 +1,80 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_search
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 13
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
version: "0.3"
|
5
10
|
platform: ruby
|
6
|
-
authors:
|
11
|
+
authors:
|
7
12
|
- Case Commons, LLC
|
8
13
|
autorequire:
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
+
|
17
|
+
date: 2011-09-06 00:00:00 Z
|
18
|
+
dependencies:
|
19
|
+
- !ruby/object:Gem::Dependency
|
20
|
+
name: activerecord
|
21
|
+
prerelease: false
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 5
|
28
|
+
segments:
|
29
|
+
- 3
|
30
|
+
version: "3"
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: *id001
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: activesupport
|
35
|
+
prerelease: false
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
hash: 5
|
42
|
+
segments:
|
43
|
+
- 3
|
44
|
+
version: "3"
|
45
|
+
type: :runtime
|
46
|
+
version_requirements: *id002
|
47
|
+
description: PgSearch builds ActiveRecord named scopes that take advantage of PostgreSQL's full text search
|
48
|
+
email:
|
16
49
|
- casecommons-dev@googlegroups.com
|
17
50
|
executables: []
|
51
|
+
|
18
52
|
extensions: []
|
53
|
+
|
19
54
|
extra_rdoc_files: []
|
20
|
-
|
55
|
+
|
56
|
+
files:
|
21
57
|
- .autotest
|
22
58
|
- .gitignore
|
59
|
+
- .rspec
|
23
60
|
- .rvmrc
|
61
|
+
- .travis.yml
|
24
62
|
- CHANGELOG
|
25
63
|
- Gemfile
|
26
64
|
- LICENSE
|
27
65
|
- README.rdoc
|
28
66
|
- Rakefile
|
29
|
-
- TODO
|
30
|
-
- gemfiles/Gemfile.common
|
31
|
-
- gemfiles/rails2/Gemfile
|
32
|
-
- gemfiles/rails3/Gemfile
|
33
67
|
- lib/pg_search.rb
|
34
68
|
- lib/pg_search/configuration.rb
|
35
69
|
- lib/pg_search/configuration/association.rb
|
36
70
|
- lib/pg_search/configuration/column.rb
|
71
|
+
- lib/pg_search/document.rb
|
37
72
|
- lib/pg_search/features.rb
|
38
73
|
- lib/pg_search/features/dmetaphone.rb
|
39
74
|
- lib/pg_search/features/trigram.rb
|
40
75
|
- lib/pg_search/features/tsearch.rb
|
76
|
+
- lib/pg_search/multisearch.rb
|
77
|
+
- lib/pg_search/multisearchable.rb
|
41
78
|
- lib/pg_search/normalizer.rb
|
42
79
|
- lib/pg_search/railtie.rb
|
43
80
|
- lib/pg_search/scope.rb
|
@@ -47,35 +84,50 @@ files:
|
|
47
84
|
- pg_search.gemspec
|
48
85
|
- script/setup-contrib
|
49
86
|
- spec/associations_spec.rb
|
87
|
+
- spec/pg_search/document_spec.rb
|
88
|
+
- spec/pg_search/multisearch_spec.rb
|
89
|
+
- spec/pg_search/multisearchable_spec.rb
|
50
90
|
- spec/pg_search_spec.rb
|
51
91
|
- spec/spec_helper.rb
|
52
92
|
- sql/dmetaphone.sql
|
53
93
|
- sql/uninstall_dmetaphone.sql
|
54
94
|
homepage: https://github.com/Casecommons/pg_search
|
55
95
|
licenses: []
|
56
|
-
|
96
|
+
|
57
97
|
post_install_message:
|
58
98
|
rdoc_options: []
|
59
|
-
|
99
|
+
|
100
|
+
require_paths:
|
60
101
|
- lib
|
61
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
hash: 3
|
108
|
+
segments:
|
109
|
+
- 0
|
110
|
+
version: "0"
|
111
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
hash: 3
|
117
|
+
segments:
|
118
|
+
- 0
|
119
|
+
version: "0"
|
71
120
|
requirements: []
|
121
|
+
|
72
122
|
rubyforge_project:
|
73
|
-
rubygems_version:
|
123
|
+
rubygems_version: 1.8.10
|
74
124
|
signing_key:
|
75
|
-
specification_version:
|
76
|
-
summary: PgSearch builds ActiveRecord named scopes that take advantage of PostgreSQL's
|
77
|
-
|
78
|
-
test_files:
|
125
|
+
specification_version: 3
|
126
|
+
summary: PgSearch builds ActiveRecord named scopes that take advantage of PostgreSQL's full text search
|
127
|
+
test_files:
|
79
128
|
- spec/associations_spec.rb
|
129
|
+
- spec/pg_search/document_spec.rb
|
130
|
+
- spec/pg_search/multisearch_spec.rb
|
131
|
+
- spec/pg_search/multisearchable_spec.rb
|
80
132
|
- spec/pg_search_spec.rb
|
81
133
|
- spec/spec_helper.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 735ffccde62a50183e77d846993ef9f8d947cf43
|
4
|
-
data.tar.gz: 197fedcebf3d1fcd57dade510d804ec2aa146291
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: d580a5b8367c0eda143d7f50ac9565e9c171bd7626db7d039c5b4a5c98da6f595a0d4dd63de02acba76e36525eb32e0b5e98db149cc460c213868259f5643099
|
7
|
-
data.tar.gz: 7c2be9002e9a6acee62d80583ca689fb8a6f89988e8656d59fb561facdeebcd348f05a91f0bdb8d6e39631ebb107a5ad9efc9586594910f55666e9f14f2e8efe
|
data/TODO
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
* Railtie for rake tasks
|
2
|
-
* Tracker project
|
3
|
-
* Exceptions for missing trigram, dmetaphone, etc. support
|
4
|
-
* LIKE search
|
5
|
-
* accept a block and pass it to the underlying scope
|
6
|
-
* ability to search again a tsvector column
|
7
|
-
* Generate indexes
|
8
|
-
* Allow for chaining multiple pg_search scopes
|
9
|
-
|
10
|
-
Also see https://github.com/Casecommons/pg_search/issues
|
data/gemfiles/Gemfile.common
DELETED
data/gemfiles/rails2/Gemfile
DELETED
data/gemfiles/rails3/Gemfile
DELETED