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 +4 -4
- data/.travis.yml +3 -2
- data/CHANGELOG.md +4 -0
- data/lib/surus/json/has_and_belongs_to_many_scope_builder.rb +5 -1
- data/lib/surus/version.rb +1 -1
- data/surus.gemspec +1 -3
- metadata +4 -33
- data/gemfiles/4.0.gemfile +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afd6203a513dcb6136faec8044f8dbbb14ed2f35
|
4
|
+
data.tar.gz: fdec01e83da15fde64daaf59ed496fe65a613ee8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4286d4e69d627d9ea2cf774870bf7dfd1e7006313a9921e54bfdc7156bb7d16e4ae460f142851e15d1ba8b6ed0707be0e3626c20a54e490d756f788e7d0d2b45
|
7
|
+
data.tar.gz: fb9e31a45421de9f476440d6d225d2cd34f8984afd5443f5489613acb79d0242a1ea243ee400a6f1ae03c43296f3840f3b7ec3c0038fd9effe8fa0478ebb7dc8
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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}.#{
|
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
|
data/lib/surus/version.rb
CHANGED
data/surus.gemspec
CHANGED
@@ -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.
|
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.
|
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
|
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.
|
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.
|
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
|