rails_select_on_includes 5.1.4.3 → 5.1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fa0d16a8143bff077619791b2e03c761f56a277
4
- data.tar.gz: b79e1d54dc4f0d37df54486edd9e30059ac8389f
3
+ metadata.gz: 4ec07844e06d10d2c75e591cb9ce4a3de3af6739
4
+ data.tar.gz: 4fbf0fa3eb78a0927958af64236d06cbd171bcbb
5
5
  SHA512:
6
- metadata.gz: b88c7bae705128a215e284735087bf6de35a6ecbe5d0b3fc7d758bfbe095115955a2066533aa679adf8431f4eaa357b198784000cdcd63b06a1c174b5d79e6fb
7
- data.tar.gz: ccfb270e482d59e6b34329ad09e8adcf2c2e975316eaddd9b5366d5f6f1987d4aa75586b923377264ff7ddae634de9a125e53df95226b4b0614ea64c8df25120
6
+ metadata.gz: 2f78d348a76a17b026062ace97a6248fd28c69134f4383b2b24d7ddfd793db8faf5b6cc85baca9e36c2ff1827486329088883086185025cd949b94d2f45abb39
7
+ data.tar.gz: fe46be5453ed9db5e7b99b4e91c2f748d63af500940e04c4db399af0c1d4b54cd9e47794ca7c14599e8a1a92f57bbdba7cae6c1257343feba7ab769f4f89cb33
data/README.md CHANGED
@@ -74,11 +74,8 @@ Add this line to your application's Gemfile:
74
74
  #rails 4
75
75
  gem 'rails_select_on_includes', '~> 0.4.11'
76
76
 
77
- #rails 5.1.4
78
- gem 'rails_select_on_includes', '~> 5.1.4.0'
79
-
80
- #rails 5.1.5
81
- gem 'rails_select_on_includes', '~> 5.1.5.0'
77
+ #rails 5
78
+ gem 'rails_select_on_includes', '~> 0.5.7'
82
79
  ```
83
80
 
84
81
  And then execute:
@@ -32,7 +32,7 @@ require 'active_support/core_ext/string/filters'
32
32
  # all we need is some specials joins+select from related tables
33
33
  case sv
34
34
  when String
35
- sv.split(/,[\s$]*/).each do |sub_sv|
35
+ sv.split( ", " ).each do |sub_sv|
36
36
  if sub_sv[/.+ as .+/i]
37
37
  add_virtual_attribute(sub_sv.rpartition(/ as /i).last.strip)
38
38
  elsif sub_sv[/.+\.[^\*]+/]
@@ -41,8 +41,6 @@ require 'active_support/core_ext/string/filters'
41
41
  end
42
42
  when Arel::Nodes::As
43
43
  add_virtual_attribute(sv.right)
44
- when Arel::Nodes::TableAlias
45
- add_virtual_attribute(sv.right)
46
44
  when Arel::Nodes::Function
47
45
  add_virtual_attribute(sv.alias) if sv.alias.present?
48
46
  end
@@ -1,3 +1,3 @@
1
1
  module RailsSelectOnIncludes
2
- VERSION = "5.1.4.3"
2
+ VERSION = "5.1.5.1"
3
3
  end
@@ -30,7 +30,7 @@ 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', '<= 5.1.4'
33
+ spec.add_dependency "activerecord", ">=5.1.5", '<5.2'
34
34
 
35
35
  spec.add_development_dependency "rails", ">=5"
36
36
  spec.add_development_dependency "bundler", "~> 1.13"
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.1.4.3
4
+ version: 5.1.5.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-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5'
20
- - - "<="
19
+ version: 5.1.5
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 5.1.4
22
+ version: '5.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '5'
30
- - - "<="
29
+ version: 5.1.5
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 5.1.4
32
+ version: '5.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rails
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -109,7 +109,6 @@ extensions: []
109
109
  extra_rdoc_files: []
110
110
  files:
111
111
  - ".gitignore"
112
- - CHANGELOG.md
113
112
  - Gemfile
114
113
  - LICENSE.txt
115
114
  - README.md
@@ -1,6 +0,0 @@
1
- # 5.1.5.3
2
- * solve issue #15
3
-
4
- # 5.1.5.2
5
-
6
- * Arel::Nodes::TableAlias added