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 +4 -4
- data/lib/decisive/renderer.rb +5 -2
- data/lib/decisive/stream_csv_context.rb +2 -1
- data/lib/decisive/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b38c58e34d219f9261afb9e253086ac9b6119c5b99ee402c940190e366f77c9
|
4
|
+
data.tar.gz: 681cc003a82807f8a2ab9993f009a1791a14ed3eab7737d9b4547daeb2c03d1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c019470bf1cb254b454849a58063fcfd66ca758e246cd352df3b200dc209b649221ce93bd028fb74455b77fcc42b7d597abadd2bf6c537d9fb7eb8e9abdf8cc6
|
7
|
+
data.tar.gz: 88d114b63a742e467cf3c07b13fe69be4f3d8c7a1abb59433c91f0b00b6f7332e4e9e81869b7432f2b2c8069eaa39db49355a896525043720890ef1ebdce2f3a
|
data/lib/decisive/renderer.rb
CHANGED
@@ -23,8 +23,11 @@ module Decisive
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def hashes
|
26
|
-
@hashes ||=
|
27
|
-
|
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
|
|
data/lib/decisive/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|