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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 396540579e82830745c22839f173f3dcf7886929cef16c023bd85fe2e8eff1e9
4
- data.tar.gz: 49ed399702320635522c2640a52bc9b65b0563311371a0e2591dafce2b5a8865
3
+ metadata.gz: 76362833f3cde4e39498022b60786be0e4bdad668544a0ec15110deb2cdc29d4
4
+ data.tar.gz: aa339bb96f0eb61ad8afdb495c8d15454ea1c3e9280c3b8518978316d37745e1
5
5
  SHA512:
6
- metadata.gz: 716dce8f3d55a83fed5494f9b033e2a59406758d2a948f023308758535e97075dc7a5c4e3bfe047602e6849dbeec567fc1b6939bc184c2b434528918710ca98f
7
- data.tar.gz: ad89e1e17edf6fc83d6b44cdf78451d456cda767d62dde058129b06c352d43c03093c411a8fc08195eb165e1179be9b68947d1d552dacd4c37cc593ca832d8d2
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 controller.is_a?(ActionController::Live)
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
@@ -1,3 +1,3 @@
1
1
  module Decisive
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview