rails_select_on_includes 5.2.0.3 → 5.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/rails_select_on_includes.rb +2 -1
- data/lib/rails_select_on_includes/version.rb +1 -1
- data/rails_select_on_includes.gemspec +5 -3
- metadata +22 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4d39a2874d64c8681290836b2a7a7ece40572769ab425c451ca4c4a1f854cd15
|
4
|
+
data.tar.gz: ad32d81616f470249d37d7da77f6af3f52670b050afc075216beb9d586730170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df43fcd041449a955903f07a09055a92a346bfc607b45ca521469684636e0fc3d9629297a76b78292f4c27a2bd92d714d0027422d59698f5d3c8ffe658e45e7e
|
7
|
+
data.tar.gz: 7fdfd73563b6f769af6e8908de76ad71b11c002c26109cc59c0b102b5723dfa71379fb7723d6119779bb1f74c4893ddb01a3de39f8c59fb9029483ada1577381
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -122,10 +122,11 @@ end
|
|
122
122
|
if ActiveRecord::NullRelation === relation
|
123
123
|
[]
|
124
124
|
else
|
125
|
+
relation = join_dependency.apply_column_aliases(relation)
|
125
126
|
rows = connection.select_all(relation.arel, "SQL")
|
126
127
|
#1 DISTINCTION IS HERE:
|
127
128
|
# now we gently mokey-patching existing column aliases with select values
|
128
|
-
join_dependency.aliases.update_aliases_to_select_values(values[:select]) unless values[:select].blank?
|
129
|
+
join_dependency.send(:aliases).update_aliases_to_select_values(values[:select]) unless values[:select].blank?
|
129
130
|
|
130
131
|
join_dependency.instantiate(rows, &block)
|
131
132
|
end.freeze
|
@@ -30,12 +30,14 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
|
-
spec.add_dependency "activerecord", ">=5.2.
|
33
|
+
spec.add_dependency "activerecord", ">=5.2.1"
|
34
34
|
|
35
|
-
spec.add_development_dependency "rails", ">=5"
|
35
|
+
spec.add_development_dependency "rails", ">=5.2.1"
|
36
36
|
spec.add_development_dependency "bundler", "~> 1.13"
|
37
37
|
spec.add_development_dependency "rake", "~> 10.0"
|
38
38
|
spec.add_development_dependency 'sqlite3'
|
39
39
|
|
40
|
-
spec.add_development_dependency '
|
40
|
+
spec.add_development_dependency 'byebug'
|
41
|
+
|
42
|
+
spec.add_development_dependency 'niceql'
|
41
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_select_on_includes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.2.
|
4
|
+
version: 5.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alekseyl
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.2.
|
19
|
+
version: 5.2.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: 5.2.
|
26
|
+
version: 5.2.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 5.2.1
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 5.2.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,21 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: byebug
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: niceql
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - ">="
|
@@ -134,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
148
|
version: '0'
|
135
149
|
requirements: []
|
136
150
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
151
|
+
rubygems_version: 2.7.7
|
138
152
|
signing_key:
|
139
153
|
specification_version: 4
|
140
154
|
summary: Patching rails include/select/virtual attributes issue
|