decisive 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/decisive/template_handler.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: 76362833f3cde4e39498022b60786be0e4bdad668544a0ec15110deb2cdc29d4
|
4
|
+
data.tar.gz: aa339bb96f0eb61ad8afdb495c8d15454ea1c3e9280c3b8518978316d37745e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaf647aaf34732755e0c2d6454190d60f9f9404cd9c0da65279b1226d4cfd30295a00a966f8258f12365052b01ef5325cdb87296be27d07c72c9a42369ee3d3c
|
7
|
+
data.tar.gz: 2aec33ea26ad6100e911d76d82eb753fd8db72d06d9d595d4c417ccb1d234b437afc28b752632e8d2e3995358941357cf93728e41bb0e394eab5e56594b3581c
|
@@ -20,7 +20,7 @@ module Decisive
|
|
20
20
|
if context.csv?
|
21
21
|
response.headers["Content-Type"] = "text/csv"
|
22
22
|
|
23
|
-
if
|
23
|
+
if @stream
|
24
24
|
begin
|
25
25
|
context.each do |row|
|
26
26
|
response.stream.write row.to_csv(force_quotes: true)
|
@@ -55,6 +55,7 @@ module Decisive
|
|
55
55
|
|
56
56
|
module DSL
|
57
57
|
def csv records, filename:, stream: true, &block
|
58
|
+
@stream = stream
|
58
59
|
if stream
|
59
60
|
raise StreamingNotEnabledByControllerError unless controller.is_a?(ActionController::Live)
|
60
61
|
raise StreamIncompatibleBlockArgumentError if block.arity != 0
|
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.1
|
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-02-
|
11
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|