surus 0.6.3 → 0.6.4

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: 3979b782fd1e13d2e96ba994192cacf5433c53d7
4
- data.tar.gz: 8f030cf17f9d8fb30dace66d08edb1b224a192bf
3
+ metadata.gz: afd6203a513dcb6136faec8044f8dbbb14ed2f35
4
+ data.tar.gz: fdec01e83da15fde64daaf59ed496fe65a613ee8
5
5
  SHA512:
6
- metadata.gz: aab88cce49c5e6582b04c14b43e38da23e7463fec01e5772650537d241fa23cf6e1fdf06a40a57e6e3d5e2a4663dc8700d9b7e95a01914b9196b494c91a55b58
7
- data.tar.gz: c3da04f7796d29af7a73d1ffff121ef2f206613921f8f1b6456e52257ee4e31bfc74bd32e0c9d3f123c1eb49c588b40e588d2c3517d2212a0baa74e57058fb44
6
+ metadata.gz: 4286d4e69d627d9ea2cf774870bf7dfd1e7006313a9921e54bfdc7156bb7d16e4ae460f142851e15d1ba8b6ed0707be0e3626c20a54e490d756f788e7d0d2b45
7
+ data.tar.gz: fb9e31a45421de9f476440d6d225d2cd34f8984afd5443f5489613acb79d0242a1ea243ee400a6f1ae03c43296f3840f3b7ec3c0038fd9effe8fa0478ebb7dc8
@@ -1,11 +1,12 @@
1
1
  language: ruby
2
+ sudo: false
3
+ cache: bundler
2
4
  rvm:
3
5
  - 2.3.1
4
6
  - 2.2.5
5
- - 2.1.9
7
+ - 2.1.10
6
8
  - rbx
7
9
  gemfile:
8
- - gemfiles/4.0.gemfile
9
10
  - gemfiles/4.1.gemfile
10
11
  - gemfiles/4.2.gemfile
11
12
  - gemfiles/5.0.gemfile
@@ -1,3 +1,7 @@
1
+ # 0.6.4 (November 5, 2016)
2
+
3
+ * Fix has_and_belongs_to_many scope with non-standard primary key (Nick Inhofe)
4
+
1
5
  # 0.6.3 (May 14, 2016)
2
6
 
3
7
  * Gemspec allows Rails 5
@@ -5,7 +5,7 @@ module Surus
5
5
  s = association
6
6
  .klass
7
7
  .joins("JOIN #{join_table} ON #{join_table}.#{association_foreign_key}=#{association_table}.#{association_primary_key}")
8
- .where("#{outside_class.quoted_table_name}.#{association_primary_key}=#{join_table}.#{foreign_key}")
8
+ .where("#{outside_class.quoted_table_name}.#{primary_key}=#{join_table}.#{foreign_key}")
9
9
  s = s.instance_eval(&association.scope) if association.scope
10
10
  s
11
11
  end
@@ -14,6 +14,10 @@ module Surus
14
14
  connection.quote_table_name association.join_table
15
15
  end
16
16
 
17
+ def primary_key
18
+ connection.quote_table_name association.active_record_primary_key
19
+ end
20
+
17
21
  def association_foreign_key
18
22
  connection.quote_column_name association.association_foreign_key
19
23
  end
@@ -1,3 +1,3 @@
1
1
  module Surus
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
@@ -24,11 +24,9 @@ Gem::Specification.new do |s|
24
24
  s.require_paths = ["lib"]
25
25
 
26
26
  # specify any dependencies here; for example:
27
- s.add_dependency 'activerecord', "> 4.0"
27
+ s.add_dependency 'activerecord', "> 4.1"
28
28
 
29
29
  s.add_development_dependency 'rspec', "~> 3.1.0"
30
- s.add_development_dependency 'guard', ">= 0.10.0"
31
- s.add_development_dependency 'guard-rspec'
32
30
  s.add_development_dependency 'rb-fsevent', '~> 0.9.1'
33
31
  s.add_development_dependency 'oj', '~> 2.0.2'
34
32
  s.add_development_dependency 'pg'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: surus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Christensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-14 00:00:00.000000000 Z
11
+ date: 2016-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '4.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: '4.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,34 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 3.1.0
41
- - !ruby/object:Gem::Dependency
42
- name: guard
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 0.10.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: 0.10.0
55
- - !ruby/object:Gem::Dependency
56
- name: guard-rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
41
  - !ruby/object:Gem::Dependency
70
42
  name: rb-fsevent
71
43
  requirement: !ruby/object:Gem::Requirement
@@ -206,7 +178,6 @@ files:
206
178
  - bench/hstore_find.rb
207
179
  - bench/json_generation.rb
208
180
  - bench/synchronous_commit.rb
209
- - gemfiles/4.0.gemfile
210
181
  - gemfiles/4.1.gemfile
211
182
  - gemfiles/4.2.gemfile
212
183
  - gemfiles/5.0.gemfile
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activerecord", "4.0.13"
4
-
5
- gemspec :path=>"../"