pg_search 0.6.2 → 0.6.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 +4 -4
- data/.travis.yml +16 -7
- data/CHANGELOG.rdoc +4 -0
- data/Gemfile +1 -0
- data/lib/pg_search/scope_options.rb +5 -3
- data/lib/pg_search/version.rb +1 -1
- data/spec/integration/pg_search_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 002be327b000c695d0971186e1b3a2a1924f5b9f
|
4
|
+
data.tar.gz: b414d034c40908cd3d8e18a64916ae72724e3d9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af2d2c1a826dd76a0157d701832a891f0e799b20bfa4dd3200444cbc3e7c280b6e342dae220997585b44f28f83bf041cf52c6aa8ef33afa9f168baf4a455bef0
|
7
|
+
data.tar.gz: 8021aadff3504589004416926ca131fb1c90b4e0c6d81bcd1b8c2d67d76ec7c4ffcb64b595e7161a0dce4338baaff8195266268cc474d946514527d2e85a066e
|
data/.travis.yml
CHANGED
@@ -11,7 +11,8 @@ rvm:
|
|
11
11
|
- ree
|
12
12
|
|
13
13
|
env:
|
14
|
-
-
|
14
|
+
- ACTIVE_RECORD_BRANCH="master"
|
15
|
+
- ACTIVE_RECORD_BRANCH="4-0-stable"
|
15
16
|
- ACTIVE_RECORD_VERSION="~> 3.2.0"
|
16
17
|
- ACTIVE_RECORD_VERSION="~> 3.1.0"
|
17
18
|
|
@@ -20,17 +21,25 @@ matrix:
|
|
20
21
|
- rvm: rbx-18mode
|
21
22
|
- rvm: rbx-19mode
|
22
23
|
- rvm: jruby-19mode
|
23
|
-
- env:
|
24
|
+
- env: ACTIVE_RECORD_BRANCH="master"
|
25
|
+
- env: ACTIVE_RECORD_BRANCH="4-0-stable"
|
24
26
|
exclude:
|
25
27
|
- rvm: 1.8.7
|
26
|
-
env:
|
28
|
+
env: ACTIVE_RECORD_BRANCH="master"
|
29
|
+
- rvm: 1.8.7
|
30
|
+
env: ACTIVE_RECORD_BRANCH="4-0-stable"
|
31
|
+
- rvm: jruby-18mode
|
32
|
+
env: ACTIVE_RECORD_BRANCH="master"
|
27
33
|
- rvm: jruby-18mode
|
28
|
-
env:
|
34
|
+
env: ACTIVE_RECORD_BRANCH="4-0-stable"
|
35
|
+
- rvm: rbx-18mode
|
36
|
+
env: ACTIVE_RECORD_BRANCH="master"
|
29
37
|
- rvm: rbx-18mode
|
30
|
-
env:
|
38
|
+
env: ACTIVE_RECORD_BRANCH="4-0-stable"
|
31
39
|
- rvm: ree
|
32
|
-
env:
|
33
|
-
|
40
|
+
env: ACTIVE_RECORD_BRANCH="master"
|
41
|
+
- rvm: ree
|
42
|
+
env: ACTIVE_RECORD_BRANCH="4-0-stable"
|
34
43
|
|
35
44
|
before_script:
|
36
45
|
- "psql -c 'create database pg_search_test;' -U postgres >/dev/null"
|
data/CHANGELOG.rdoc
CHANGED
data/Gemfile
CHANGED
@@ -6,6 +6,7 @@ gem 'pg', :platform => :ruby
|
|
6
6
|
gem "activerecord-jdbcpostgresql-adapter", :platform => :jruby
|
7
7
|
|
8
8
|
gem "activerecord", ENV["ACTIVE_RECORD_VERSION"] if ENV["ACTIVE_RECORD_VERSION"]
|
9
|
+
gem "activerecord", :github => "rails", :branch => ENV["ACTIVE_RECORD_BRANCH"] if ENV["ACTIVE_RECORD_BRANCH"]
|
9
10
|
|
10
11
|
gem 'coveralls', :require => false, :platform => :mri_20
|
11
12
|
|
@@ -49,9 +49,11 @@ module PgSearch
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def joins
|
52
|
-
config.associations.
|
53
|
-
association
|
54
|
-
|
52
|
+
if config.associations.any?
|
53
|
+
config.associations.map do |association|
|
54
|
+
association.join(primary_key)
|
55
|
+
end.join(' ')
|
56
|
+
end
|
55
57
|
end
|
56
58
|
|
57
59
|
FEATURE_CLASSES = {
|
data/lib/pg_search/version.rb
CHANGED
@@ -16,7 +16,7 @@ describe "an Active Record model which includes PgSearch" do
|
|
16
16
|
describe ".pg_search_scope" do
|
17
17
|
it "builds a chainable scope" do
|
18
18
|
ModelWithPgSearch.pg_search_scope "matching_query", :against => []
|
19
|
-
scope = ModelWithPgSearch.
|
19
|
+
scope = ModelWithPgSearch.where("1 = 1").matching_query("foo").where("1 = 1")
|
20
20
|
scope.should be_an ActiveRecord::Relation
|
21
21
|
end
|
22
22
|
|
@@ -660,7 +660,7 @@ describe "an Active Record model which includes PgSearch" do
|
|
660
660
|
|
661
661
|
it "should refer to the tsvector column in the query unambiguously" do
|
662
662
|
expect {
|
663
|
-
ModelWithTsvector.joins(:another_models).search_by_content_with_tsvector("test").
|
663
|
+
ModelWithTsvector.joins(:another_models).search_by_content_with_tsvector("test").to_a
|
664
664
|
}.not_to raise_exception
|
665
665
|
end
|
666
666
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grant Hutchins
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
222
|
version: '0'
|
223
223
|
requirements: []
|
224
224
|
rubyforge_project:
|
225
|
-
rubygems_version: 2.0.
|
225
|
+
rubygems_version: 2.0.3
|
226
226
|
signing_key:
|
227
227
|
specification_version: 4
|
228
228
|
summary: PgSearch builds Active Record named scopes that take advantage of PostgreSQL's
|