rails_select_on_includes 6.0.0 → 6.0.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
2
  SHA256:
3
- metadata.gz: e3af4d14781af22c9f021619f3ec07e83d353a96145227a1ab3c6dbc2b956ed1
4
- data.tar.gz: fe28d9937d55fab0548ae565ddcf773697346866719bbdf5676a35d11d6adba4
3
+ metadata.gz: 4d4d25c22192e9a003dd59bb2987821cf9935d11062304b7f28e1a73ba51a9d3
4
+ data.tar.gz: cd5e74a9926288b05c35101c4bc478fc2f0bcef3df1742e8e563468ebe40668a
5
5
  SHA512:
6
- metadata.gz: f0a10497309de2e7e3bc49fd84c9f104a115bcc6e960e0a1a28f1b45a502c5dbcc65286e3517c1a9942c5a753eb70da7cea35397e791fbbd07f123ebdec51803
7
- data.tar.gz: 740bd6b513b7c45a3481f28322ea3527d09d9255cd71e079f333e59461eae8d0416909ab60400302869e707eccb4f7e43b3c94cb14ddce340abcce6135f1c49e
6
+ metadata.gz: 70b151e2c9b14e66744b18d042889d9a1646a9ff2aa3f0bff4b4fc2a5cfaad058688c9da668c0e2345d6e247f2d50b1f27cc9afdb8dad21912295bc2eada5898
7
+ data.tar.gz: 91d48036a7cf47745bd66c6e88105d6b0c0afffd063547515ff58f925b9f68d06777634307fea8f5cbe0c2848bfd559e152d8ce5cd078cc78b91fc105c43be05
data/.travis.yml CHANGED
@@ -2,5 +2,5 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.4.4
5
- - 2.5.1
5
+ - 2.5.3
6
6
  - 2.3.7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ #6.0.1
2
+ * select work without 'as'
3
+
1
4
  #6.0.0
2
5
  * support for rails 6.0, master now on rails 6.
3
6
 
@@ -32,6 +32,8 @@ require 'active_support/core_ext/string/filters'
32
32
  sv.split(/,[\s$]*/).each do |sub_sv|
33
33
  if sub_sv[/.+ as .+/i]
34
34
  add_virtual_attribute(sub_sv.rpartition(/ as /i).last.strip)
35
+ elsif sub_sv[/.+\s+.+/i]
36
+ add_virtual_attribute(sub_sv.rpartition(/\s+/i).last.strip)
35
37
  elsif sub_sv[/.+\.[^\*]+/]
36
38
  add_virtual_attribute(sub_sv[/\..+/][1..-1].strip)
37
39
  end
@@ -1,3 +1,3 @@
1
1
  module RailsSelectOnIncludes
2
- VERSION = "6.0.0"
2
+ VERSION = "6.0.1"
3
3
  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: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-28 00:00:00.000000000 Z
11
+ date: 2019-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord