rails_select_on_includes 5.2.0.2 → 5.2.0.3

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: f735c9e723abda05cd6a281c6c7a139c69887a55
4
- data.tar.gz: 34278129d02c746f2c85a233a228e87498125b7b
3
+ metadata.gz: f8f12487132478185aabe323f47231046bab9002
4
+ data.tar.gz: 9119e184af803fd65518d2bee9020faff7bf4366
5
5
  SHA512:
6
- metadata.gz: 2f84a4f76b9252352386d9e6bfa84ffb5893988e3af3a1ea34028464700c1bd37d10c448755d51bed52fdb63172374da0b19db616460f07638b54e1dfc115f58
7
- data.tar.gz: 075ee3bc8ebbed66703f5bf3097ec615b1c1196772af727e4a1bb27c3c3d3c5d061716de45bf3a4a21aa5b8e33bd4994697f95034cc2c42f4766501ad8e5c36e
6
+ metadata.gz: 797f4a7faa1c5ef8a4ec449968554a1f7bba74a44343248deaaa86fa6cc17c60c402bdfc147ad8fcec73b45b81d5ee5784f06651e162f6380a1422c2c28d3581
7
+ data.tar.gz: 599030bd5b71a7e3230493c34b14335acf8efcd119c8b75044e60ee2d41970e4dc7971996353d6516f07bd60029245fcfb658c0be822a9dda67ac379d5c0aefc
@@ -1,3 +1,6 @@
1
+ # 5.2.0.3
2
+ *resolve issue #15
3
+
1
4
  # 5.2.0.2
2
5
 
3
6
  * Arel::Nodes::TableAlias added
@@ -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( ", " ).each do |sub_sv|
35
+ sv.split(/,[\s$]*/).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[/.+\.[^\*]+/]
@@ -1,3 +1,3 @@
1
1
  module RailsSelectOnIncludes
2
- VERSION = "5.2.0.2"
2
+ VERSION = "5.2.0.3"
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: 5.2.0.2
4
+ version: 5.2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-19 00:00:00.000000000 Z
11
+ date: 2018-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord