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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f8f12487132478185aabe323f47231046bab9002
4
- data.tar.gz: 9119e184af803fd65518d2bee9020faff7bf4366
2
+ SHA256:
3
+ metadata.gz: 4d39a2874d64c8681290836b2a7a7ece40572769ab425c451ca4c4a1f854cd15
4
+ data.tar.gz: ad32d81616f470249d37d7da77f6af3f52670b050afc075216beb9d586730170
5
5
  SHA512:
6
- metadata.gz: 797f4a7faa1c5ef8a4ec449968554a1f7bba74a44343248deaaa86fa6cc17c60c402bdfc147ad8fcec73b45b81d5ee5784f06651e162f6380a1422c2c28d3581
7
- data.tar.gz: 599030bd5b71a7e3230493c34b14335acf8efcd119c8b75044e60ee2d41970e4dc7971996353d6516f07bd60029245fcfb658c0be822a9dda67ac379d5c0aefc
6
+ metadata.gz: df43fcd041449a955903f07a09055a92a346bfc607b45ca521469684636e0fc3d9629297a76b78292f4c27a2bd92d714d0027422d59698f5d3c8ffe658e45e7e
7
+ data.tar.gz: 7fdfd73563b6f769af6e8908de76ad71b11c002c26109cc59c0b102b5723dfa71379fb7723d6119779bb1f74c4893ddb01a3de39f8c59fb9029483ada1577381
@@ -1,3 +1,8 @@
1
+ # 5.2.1
2
+ * resolve issue #16
3
+ * add development dependencies on niceql and byebug
4
+ * rails version supported 5.2.1! (for 5.2.rc use previous gem version)
5
+
1
6
  # 5.2.0.3
2
7
  *resolve issue #15
3
8
 
data/README.md CHANGED
@@ -82,7 +82,7 @@ gem 'rails_select_on_includes', '~> 5.1.5.0'
82
82
 
83
83
 
84
84
  #rails 5.2
85
- gem 'rails_select_on_includes', '~> 5.2.0.1'
85
+ gem 'rails_select_on_includes', '~> 5.2.1'
86
86
  ```
87
87
 
88
88
  And then execute:
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RailsSelectOnIncludes
2
- VERSION = "5.2.0.3"
2
+ VERSION = "5.2.1"
3
3
  end
@@ -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.0.rc1"
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 'pry-byebug'
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.0.3
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-05-24 00:00:00.000000000 Z
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.0.rc1
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.0.rc1
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: '5'
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: '5'
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: pry-byebug
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.6.11
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