decisive 0.8.2 → 0.8.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
  SHA256:
3
- metadata.gz: 8a4b8cdff3c2ddd8c64ec924b270b0c8dab2ce52c631ac572ccef3b7541dad42
4
- data.tar.gz: 2a1ba9fc08f84ecf47563c1e9bd864ef13f66131d0384f3860a0c94ac844fa73
3
+ metadata.gz: 0b38c58e34d219f9261afb9e253086ac9b6119c5b99ee402c940190e366f77c9
4
+ data.tar.gz: 681cc003a82807f8a2ab9993f009a1791a14ed3eab7737d9b4547daeb2c03d1a
5
5
  SHA512:
6
- metadata.gz: 2ae0fe37fa0c1dcc23bbfdee96c0616894d9b49a2864c60a191bf9c57238e59633f32ad258b8a96612d4df1ea0f41d4cded036ee92c84d4ae4aa5048b36b16f0
7
- data.tar.gz: 82b3ac5951766e055c46787768f15e58f13ebb83540ad61d1108efcfcd350968b67d28986808d1f32eaab39be188b9a4fae9ece2a87898a80fd4569cba501000
6
+ metadata.gz: c019470bf1cb254b454849a58063fcfd66ca758e246cd352df3b200dc209b649221ce93bd028fb74455b77fcc42b7d597abadd2bf6c537d9fb7eb8e9abdf8cc6
7
+ data.tar.gz: 88d114b63a742e467cf3c07b13fe69be4f3d8c7a1abb59433c91f0b00b6f7332e4e9e81869b7432f2b2c8069eaa39db49355a896525043720890ef1ebdce2f3a
@@ -23,8 +23,11 @@ module Decisive
23
23
  end
24
24
 
25
25
  def hashes
26
- @hashes ||= records.map do |record|
27
- Row.new(record, block).to_hash
26
+ @hashes ||= begin
27
+ method = records.respond_to?(:find_each) ? :find_each : :each
28
+ records.send(method).map do |record|
29
+ Row.new(record, block).to_hash
30
+ end
28
31
  end
29
32
  end
30
33
 
@@ -22,7 +22,8 @@ module Decisive
22
22
  def each
23
23
  yield header
24
24
 
25
- records.map do |record|
25
+ method = records.respond_to?(:find_each) ? :find_each : :each
26
+ records.send(method) do |record|
26
27
  row = columns.map do |column|
27
28
  column.block.call(record).to_s
28
29
  end
@@ -1,3 +1,3 @@
1
1
  module Decisive
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decisive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-30 00:00:00.000000000 Z
11
+ date: 2022-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview