decisive 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/gemfiles/rails_5.1.gemfile.lock +17 -1
- data/gemfiles/rails_5.2.gemfile.lock +17 -1
- data/gemfiles/rails_6.0.gemfile.lock +17 -1
- data/lib/decisive/template_handler.rb +2 -2
- 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: 20085276241af8bbb0205e66f1a9f027022536d23b798bd55fa767cec7b7e4c2
|
|
4
|
+
data.tar.gz: 5cd0983236f2c23cf4015d96064ee20abba6d6404f0efe75aef07f38ebdaf670
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8e212a8c72c14bbcce4421ebd86db23a77abb208bde13c81c24caf382896926bf448fcdcc5322a97aa889dc473a7fcc83ac0596b2ea2b7d5a2824470a7778dc
|
|
7
|
+
data.tar.gz: 4537d5d6e3e5dab9aa9822f29187cf11460ef195f297276ac4f9c809b0a33856a6a525c865eeefa2004382ec4d9d662363e8ffdbf756d85344ce29272e2cfe70
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
decisive (0.
|
|
4
|
+
decisive (0.6.0)
|
|
5
5
|
actionview
|
|
6
|
+
spreadsheet
|
|
6
7
|
|
|
7
8
|
GEM
|
|
8
9
|
remote: https://rubygems.org/
|
|
@@ -43,6 +44,13 @@ GEM
|
|
|
43
44
|
rails-html-sanitizer (1.2.0)
|
|
44
45
|
loofah (~> 2.2, >= 2.2.2)
|
|
45
46
|
rake (12.3.3)
|
|
47
|
+
roo (2.8.3)
|
|
48
|
+
nokogiri (~> 1)
|
|
49
|
+
rubyzip (>= 1.3.0, < 3.0.0)
|
|
50
|
+
roo-xls (1.2.0)
|
|
51
|
+
nokogiri
|
|
52
|
+
roo (>= 2.0.0, < 3)
|
|
53
|
+
spreadsheet (> 0.9.0)
|
|
46
54
|
rspec (3.8.0)
|
|
47
55
|
rspec-core (~> 3.8.0)
|
|
48
56
|
rspec-expectations (~> 3.8.0)
|
|
@@ -56,6 +64,13 @@ GEM
|
|
|
56
64
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
57
65
|
rspec-support (~> 3.8.0)
|
|
58
66
|
rspec-support (3.8.2)
|
|
67
|
+
ruby-ole (1.2.12.2)
|
|
68
|
+
rubyzip (2.3.0)
|
|
69
|
+
simple-spreadsheet (0.5.0)
|
|
70
|
+
roo (~> 2.4)
|
|
71
|
+
roo-xls (~> 1.0)
|
|
72
|
+
spreadsheet (1.2.6)
|
|
73
|
+
ruby-ole (>= 1.0)
|
|
59
74
|
thor (0.20.3)
|
|
60
75
|
thread_safe (0.3.6)
|
|
61
76
|
tzinfo (1.2.5)
|
|
@@ -72,6 +87,7 @@ DEPENDENCIES
|
|
|
72
87
|
decisive!
|
|
73
88
|
rake
|
|
74
89
|
rspec (~> 3.0)
|
|
90
|
+
simple-spreadsheet
|
|
75
91
|
|
|
76
92
|
BUNDLED WITH
|
|
77
93
|
2.0.2
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
decisive (0.
|
|
4
|
+
decisive (0.6.0)
|
|
5
5
|
actionview
|
|
6
|
+
spreadsheet
|
|
6
7
|
|
|
7
8
|
GEM
|
|
8
9
|
remote: https://rubygems.org/
|
|
@@ -43,6 +44,13 @@ GEM
|
|
|
43
44
|
rails-html-sanitizer (1.2.0)
|
|
44
45
|
loofah (~> 2.2, >= 2.2.2)
|
|
45
46
|
rake (12.3.3)
|
|
47
|
+
roo (2.8.3)
|
|
48
|
+
nokogiri (~> 1)
|
|
49
|
+
rubyzip (>= 1.3.0, < 3.0.0)
|
|
50
|
+
roo-xls (1.2.0)
|
|
51
|
+
nokogiri
|
|
52
|
+
roo (>= 2.0.0, < 3)
|
|
53
|
+
spreadsheet (> 0.9.0)
|
|
46
54
|
rspec (3.8.0)
|
|
47
55
|
rspec-core (~> 3.8.0)
|
|
48
56
|
rspec-expectations (~> 3.8.0)
|
|
@@ -56,6 +64,13 @@ GEM
|
|
|
56
64
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
57
65
|
rspec-support (~> 3.8.0)
|
|
58
66
|
rspec-support (3.8.2)
|
|
67
|
+
ruby-ole (1.2.12.2)
|
|
68
|
+
rubyzip (2.3.0)
|
|
69
|
+
simple-spreadsheet (0.5.0)
|
|
70
|
+
roo (~> 2.4)
|
|
71
|
+
roo-xls (~> 1.0)
|
|
72
|
+
spreadsheet (1.2.6)
|
|
73
|
+
ruby-ole (>= 1.0)
|
|
59
74
|
thor (0.20.3)
|
|
60
75
|
thread_safe (0.3.6)
|
|
61
76
|
tzinfo (1.2.5)
|
|
@@ -72,6 +87,7 @@ DEPENDENCIES
|
|
|
72
87
|
decisive!
|
|
73
88
|
rake
|
|
74
89
|
rspec (~> 3.0)
|
|
90
|
+
simple-spreadsheet
|
|
75
91
|
|
|
76
92
|
BUNDLED WITH
|
|
77
93
|
2.0.2
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
decisive (0.
|
|
4
|
+
decisive (0.6.0)
|
|
5
5
|
actionview
|
|
6
|
+
spreadsheet
|
|
6
7
|
|
|
7
8
|
GEM
|
|
8
9
|
remote: https://rubygems.org/
|
|
@@ -44,6 +45,13 @@ GEM
|
|
|
44
45
|
rails-html-sanitizer (1.2.0)
|
|
45
46
|
loofah (~> 2.2, >= 2.2.2)
|
|
46
47
|
rake (12.3.3)
|
|
48
|
+
roo (2.8.3)
|
|
49
|
+
nokogiri (~> 1)
|
|
50
|
+
rubyzip (>= 1.3.0, < 3.0.0)
|
|
51
|
+
roo-xls (1.2.0)
|
|
52
|
+
nokogiri
|
|
53
|
+
roo (>= 2.0.0, < 3)
|
|
54
|
+
spreadsheet (> 0.9.0)
|
|
47
55
|
rspec (3.8.0)
|
|
48
56
|
rspec-core (~> 3.8.0)
|
|
49
57
|
rspec-expectations (~> 3.8.0)
|
|
@@ -57,6 +65,13 @@ GEM
|
|
|
57
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
58
66
|
rspec-support (~> 3.8.0)
|
|
59
67
|
rspec-support (3.8.2)
|
|
68
|
+
ruby-ole (1.2.12.2)
|
|
69
|
+
rubyzip (2.3.0)
|
|
70
|
+
simple-spreadsheet (0.5.0)
|
|
71
|
+
roo (~> 2.4)
|
|
72
|
+
roo-xls (~> 1.0)
|
|
73
|
+
spreadsheet (1.2.6)
|
|
74
|
+
ruby-ole (>= 1.0)
|
|
60
75
|
thor (0.20.3)
|
|
61
76
|
thread_safe (0.3.6)
|
|
62
77
|
tzinfo (1.2.5)
|
|
@@ -74,6 +89,7 @@ DEPENDENCIES
|
|
|
74
89
|
decisive!
|
|
75
90
|
rake
|
|
76
91
|
rspec (~> 3.0)
|
|
92
|
+
simple-spreadsheet
|
|
77
93
|
|
|
78
94
|
BUNDLED WITH
|
|
79
95
|
2.0.2
|
|
@@ -20,7 +20,7 @@ module Decisive
|
|
|
20
20
|
if context.csv?
|
|
21
21
|
response.headers["Content-Type"] = "text/csv"
|
|
22
22
|
|
|
23
|
-
if controller.
|
|
23
|
+
if controller.is_a?(ActionController::Live)
|
|
24
24
|
begin
|
|
25
25
|
context.each do |row|
|
|
26
26
|
response.stream.write row.to_csv(force_quotes: true)
|
|
@@ -57,7 +57,7 @@ module Decisive
|
|
|
57
57
|
module DSL
|
|
58
58
|
def csv records, filename:, stream: true, &block
|
|
59
59
|
if stream
|
|
60
|
-
raise StreamingNotEnabledByControllerError unless controller.
|
|
60
|
+
raise StreamingNotEnabledByControllerError unless controller.is_a?(ActionController::Live)
|
|
61
61
|
raise StreamIncompatibleBlockArgumentError if block.arity != 0
|
|
62
62
|
StreamContext.new([], records, filename, &block)
|
|
63
63
|
else
|
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.6.
|
|
4
|
+
version: 0.6.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: 2020-05-
|
|
11
|
+
date: 2020-05-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionview
|