active_record-write 1.0.3 → 1.1.0

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: ad1d111426b59a67395f7a9e76c9f4d4975d7555
4
- data.tar.gz: 6937803329eedd16c1f1050dee1909844c659080
3
+ metadata.gz: f3d30c186b55fe4f0161d618aa54dde8bdf6576a
4
+ data.tar.gz: 86418394a430a44f0bd58e91b41d99a20043a546
5
5
  SHA512:
6
- metadata.gz: 7a356d06d8e8b6c57958b7bfb1ca1aea1488bd9634c865481f1a1cd10da9447db9fe9c9d310d928020a00486df599a88ec4007bdd7fc767e8b793dd454d7b165
7
- data.tar.gz: 5ee90dbfe767b52593d55f20c38e46bf0af7cca1dd46d098dfdcbdf3c937214cb5d0f4232a4ec9f9b80edc66b8967afe52c66362abd28b0a25f538de8f6fc06c
6
+ metadata.gz: 7c0d051fabb838f3ba416332e63719b70ca45e0217f52f89a24ff8500434a433b86a4d2254b0c071ef2e47696a4eac88e44e14cb936429da18777bc22f244a04
7
+ data.tar.gz: c322f37915aa63872738f19f78a75f9f2c84c2ec4ade03aa02dd39e1229f402d279232139cb7bb07052e6026bfa0694ecff7514a8411e4754365154be55835fe
@@ -32,7 +32,7 @@ module ActiveRecord
32
32
  when arel?
33
33
  ActiveRecord::Base.connection.execute(@query.to_sql).map(&:values)
34
34
  when tuple?
35
- @query.map(&:values)
35
+ @query.map { |result| result.slice(@columns) }
36
36
  when twodimensional?
37
37
  @query
38
38
  else
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  class Write
3
- VERSION = "1.0.3"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record-write
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kurtis Rainbolt-Greene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord