pluck_all 1.1.1 → 1.1.2

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: 485e0ca4ce63f16b9832772663ea5c383eb838de
4
- data.tar.gz: 66df601d24c04c6f3f1744dbaa96fd51b1fa9964
3
+ metadata.gz: 3e2e3f485c2caea545a255bafabcacf858a4b5ba
4
+ data.tar.gz: 0b3c0e6ab93d853cfcd7c28130105b3ea0c0d309
5
5
  SHA512:
6
- metadata.gz: 37d6fc731ab8bf01b6090a95ef92e1d9514ba7e03ddfe74f713bbb22aded239702b8228367483898aa12556d8bef30dc680e34b64dd131740e23199964f6fd1e
7
- data.tar.gz: 8f0f4b77ab635b9d7d8c2bf4ac1d94208ff9cfc37ea9df7ae447b41665c61f76760fee4c98cc36b0438e43e089ab9697f0a1f54c7cddbb75b388452968419270
6
+ metadata.gz: e287c8ededf69e125f4b08df26c7b9b93adca467649bec0352d2a9b5bdc716cdba2a759dd8a992147cfbb471b72887c0a9fab38c5d37f3fddc17fb07023156b5
7
+ data.tar.gz: e06748b79bb73d4a4ae68949b9af43e29f04a9a2aba65ec03d8977863b500f6a3626d1a953809badf32b75a08e095e393ca2302fdab85edb811f920fd6bd5164
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  # PluckAll
8
8
 
9
- Pluck multiple attributes in Rails 3, 4, 5, and can return data as hash instead of only array.
9
+ Pluck multiple columns/attributes in Rails 3, 4, 5, and can return data as hash instead of only array.
10
10
 
11
11
  This Gem standing on the shoulders of this [article](http://meltingice.net/2013/06/11/pluck-multiple-columns-rails/).
12
12
  And modify it to support not only Rail 3.
data/lib/pluck_all.rb CHANGED
@@ -55,8 +55,7 @@ private
55
55
  end
56
56
  end
57
57
  relation = clone
58
- relation.select_values = args
59
- return klass.connection.select_all(relation.to_sql)
58
+ return klass.connection.select_all(relation.select(args).to_sql)
60
59
  #return klass.connection.select_all(relation.arel)
61
60
  end
62
61
  end
@@ -1,3 +1,3 @@
1
1
  module PluckAll
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pluck_all
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - khiav reoy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-01 00:00:00.000000000 Z
11
+ date: 2017-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler