rails_select_on_includes 5.1.4.2 → 5.1.4.3

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
  SHA1:
3
- metadata.gz: 90f9c99a1481e490f598f5587282c15877dbca54
4
- data.tar.gz: ee9f66985319c893b0f728bcb51beb990124430a
3
+ metadata.gz: 5fa0d16a8143bff077619791b2e03c761f56a277
4
+ data.tar.gz: b79e1d54dc4f0d37df54486edd9e30059ac8389f
5
5
  SHA512:
6
- metadata.gz: a2cda62f2208f8a167cd50f8a72f83e6ef27382ad5da73e66ee6804957a3fbef50118c975586a09235bebeb7a5ca4b2b91601bc7cdb2e591fc0e6c682fc87af7
7
- data.tar.gz: 3bf458afffe68dd46870cb6f0ea201f6f29982cef1281b65cdbb5667de617200f5fdb8dbd6b8fb893d7bfa66d9990fed4b3681314609c834b45edf612c176031
6
+ metadata.gz: b88c7bae705128a215e284735087bf6de35a6ecbe5d0b3fc7d758bfbe095115955a2066533aa679adf8431f4eaa357b198784000cdcd63b06a1c174b5d79e6fb
7
+ data.tar.gz: ccfb270e482d59e6b34329ad09e8adcf2c2e975316eaddd9b5366d5f6f1987d4aa75586b923377264ff7ddae634de9a125e53df95226b4b0614ea64c8df25120
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 5.1.5.3
2
+ * solve issue #15
3
+
1
4
  # 5.1.5.2
2
5
 
3
6
  * Arel::Nodes::TableAlias added
@@ -1,3 +1,3 @@
1
1
  module RailsSelectOnIncludes
2
- VERSION = "5.1.4.2"
2
+ VERSION = "5.1.4.3"
3
3
  end
@@ -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[/.+\.[^\*]+/]
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.2
4
+ version: 5.1.4.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