pg_search 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e731121eded3c8c6fc307d432507be225d61134
4
- data.tar.gz: a19f47bb6292573ae715b2b055805a4b9992825f
3
+ metadata.gz: 002be327b000c695d0971186e1b3a2a1924f5b9f
4
+ data.tar.gz: b414d034c40908cd3d8e18a64916ae72724e3d9e
5
5
  SHA512:
6
- metadata.gz: 74a646b6bcac56df197514459c42789b69f6862d14340184444cf8438b24d8847e226f4ae0d0a23e20c1409611417702e6f47a9f0c18fbcf67aa77e86bafc663
7
- data.tar.gz: 6b546e771fe0b0c1f6970b0812d15c71c155cce162f4ccdd11c63e2f180b98e1e74d024b42f196a753b18c4c038d49ad4053effa53a11097ff5f9e8e45a53fc7
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
- - ACTIVE_RECORD_VERSION="~> 4.0.0.beta1"
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: ACTIVE_RECORD_VERSION="~> 4.0.0.beta1"
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: ACTIVE_RECORD_VERSION="~> 4.0.0.beta1"
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: ACTIVE_RECORD_VERSION="~> 4.0.0.beta1"
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: ACTIVE_RECORD_VERSION="~> 4.0.0.beta1"
38
+ env: ACTIVE_RECORD_BRANCH="4-0-stable"
31
39
  - rvm: ree
32
- env: ACTIVE_RECORD_VERSION="~> 4.0.0.beta1"
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
@@ -1,5 +1,9 @@
1
1
  = PgSearch
2
2
 
3
+ == 0.6.3
4
+
5
+ * Fix issues and deprecations for Active Record 4.0.0.rc1
6
+
3
7
  == 0.6.2
4
8
 
5
9
  * Add workaround for issue with how ActiveRecord relations handle Arel OR
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.map do |association|
53
- association.join(primary_key)
54
- end.join(' ')
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 = {
@@ -1,3 +1,3 @@
1
1
  module PgSearch
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
@@ -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.scoped({}).matching_query("foo").scoped({})
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").all
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.2
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-04-20 00:00:00.000000000 Z
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.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