decisive 0.4.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/.travis.yml +17 -0
- data/Appraisals +13 -0
- data/decisive.gemspec +1 -0
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/rails_5.1.gemfile +8 -0
- data/gemfiles/rails_5.1.gemfile.lock +77 -0
- data/gemfiles/rails_5.2.gemfile +8 -0
- data/gemfiles/rails_5.2.gemfile.lock +77 -0
- data/gemfiles/rails_6.0.gemfile +8 -0
- data/gemfiles/rails_6.0.gemfile.lock +79 -0
- data/lib/decisive/template_handler.rb +2 -2
- data/lib/decisive/version.rb +1 -1
- metadata +25 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b60447b37bbccdfc13d130a2db9199093ccc32295badaa1601ed6c33e122862f
|
4
|
+
data.tar.gz: e035f6817936942e618f403c271b086f49990dcb34ab8c64136818362b2357c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e07edb9d01fe16917d57f8d991d91aaf498ed4007487167ce6131c300d69e20a3a49172a5ae2a16788d090bef1d0de50ffce30b7b52bcb0e9e23b68d35f49a94
|
7
|
+
data.tar.gz: f68c8f8946d13d48c03f316e9637f938980f10735579d148b81744c93e8b661c3f654a66a0930f9eb2ce6bd11e6af736dd6d4fb0d624e4afddf6791089d0e168
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.6.3
|
data/.travis.yml
CHANGED
@@ -1,4 +1,21 @@
|
|
1
1
|
---
|
2
2
|
sudo: false
|
3
3
|
language: ruby
|
4
|
+
rvm:
|
5
|
+
- 2.4
|
6
|
+
- 2.5
|
7
|
+
- 2.6
|
8
|
+
|
9
|
+
gemfile:
|
10
|
+
- gemfiles/rails_5.1.gemfile
|
11
|
+
- gemfiles/rails_5.2.gemfile
|
12
|
+
- gemfiles/rails_6.0.gemfile
|
13
|
+
|
14
|
+
matrix:
|
15
|
+
exclude:
|
16
|
+
- rvm: 2.4
|
17
|
+
gemfile: gemfiles/rails_6.0.gemfile
|
18
|
+
- rvm: 2.5
|
19
|
+
gemfile: gemfiles/rails_6.0.gemfile
|
20
|
+
|
4
21
|
cache: bundler
|
data/Appraisals
ADDED
data/decisive.gemspec
CHANGED
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_dependency "actionview"
|
27
27
|
|
28
28
|
spec.add_development_dependency "bundler"
|
29
|
+
spec.add_development_dependency "appraisal"
|
29
30
|
spec.add_development_dependency "rake"
|
30
31
|
spec.add_development_dependency "rspec", "~> 3.0"
|
31
32
|
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
decisive (0.4.3)
|
5
|
+
actionview
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actionview (5.1.0)
|
11
|
+
activesupport (= 5.1.0)
|
12
|
+
builder (~> 3.1)
|
13
|
+
erubi (~> 1.4)
|
14
|
+
rails-dom-testing (~> 2.0)
|
15
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
16
|
+
activesupport (5.1.0)
|
17
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
+
i18n (~> 0.7)
|
19
|
+
minitest (~> 5.1)
|
20
|
+
tzinfo (~> 1.1)
|
21
|
+
appraisal (2.2.0)
|
22
|
+
bundler
|
23
|
+
rake
|
24
|
+
thor (>= 0.14.0)
|
25
|
+
builder (3.2.3)
|
26
|
+
byebug (11.0.1)
|
27
|
+
concurrent-ruby (1.1.5)
|
28
|
+
crass (1.0.4)
|
29
|
+
diff-lcs (1.3)
|
30
|
+
erubi (1.8.0)
|
31
|
+
i18n (0.9.5)
|
32
|
+
concurrent-ruby (~> 1.0)
|
33
|
+
loofah (2.2.3)
|
34
|
+
crass (~> 1.0.2)
|
35
|
+
nokogiri (>= 1.5.9)
|
36
|
+
mini_portile2 (2.4.0)
|
37
|
+
minitest (5.11.3)
|
38
|
+
nokogiri (1.10.4)
|
39
|
+
mini_portile2 (~> 2.4.0)
|
40
|
+
rails-dom-testing (2.0.3)
|
41
|
+
activesupport (>= 4.2.0)
|
42
|
+
nokogiri (>= 1.6)
|
43
|
+
rails-html-sanitizer (1.2.0)
|
44
|
+
loofah (~> 2.2, >= 2.2.2)
|
45
|
+
rake (12.3.3)
|
46
|
+
rspec (3.8.0)
|
47
|
+
rspec-core (~> 3.8.0)
|
48
|
+
rspec-expectations (~> 3.8.0)
|
49
|
+
rspec-mocks (~> 3.8.0)
|
50
|
+
rspec-core (3.8.2)
|
51
|
+
rspec-support (~> 3.8.0)
|
52
|
+
rspec-expectations (3.8.4)
|
53
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
+
rspec-support (~> 3.8.0)
|
55
|
+
rspec-mocks (3.8.1)
|
56
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
57
|
+
rspec-support (~> 3.8.0)
|
58
|
+
rspec-support (3.8.2)
|
59
|
+
thor (0.20.3)
|
60
|
+
thread_safe (0.3.6)
|
61
|
+
tzinfo (1.2.5)
|
62
|
+
thread_safe (~> 0.1)
|
63
|
+
|
64
|
+
PLATFORMS
|
65
|
+
ruby
|
66
|
+
|
67
|
+
DEPENDENCIES
|
68
|
+
actionview (= 5.1)
|
69
|
+
appraisal
|
70
|
+
bundler
|
71
|
+
byebug
|
72
|
+
decisive!
|
73
|
+
rake
|
74
|
+
rspec (~> 3.0)
|
75
|
+
|
76
|
+
BUNDLED WITH
|
77
|
+
1.17.3
|
@@ -0,0 +1,77 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
decisive (0.4.3)
|
5
|
+
actionview
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actionview (5.2.0)
|
11
|
+
activesupport (= 5.2.0)
|
12
|
+
builder (~> 3.1)
|
13
|
+
erubi (~> 1.4)
|
14
|
+
rails-dom-testing (~> 2.0)
|
15
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
16
|
+
activesupport (5.2.0)
|
17
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
+
i18n (>= 0.7, < 2)
|
19
|
+
minitest (~> 5.1)
|
20
|
+
tzinfo (~> 1.1)
|
21
|
+
appraisal (2.2.0)
|
22
|
+
bundler
|
23
|
+
rake
|
24
|
+
thor (>= 0.14.0)
|
25
|
+
builder (3.2.3)
|
26
|
+
byebug (11.0.1)
|
27
|
+
concurrent-ruby (1.1.5)
|
28
|
+
crass (1.0.4)
|
29
|
+
diff-lcs (1.3)
|
30
|
+
erubi (1.8.0)
|
31
|
+
i18n (1.6.0)
|
32
|
+
concurrent-ruby (~> 1.0)
|
33
|
+
loofah (2.2.3)
|
34
|
+
crass (~> 1.0.2)
|
35
|
+
nokogiri (>= 1.5.9)
|
36
|
+
mini_portile2 (2.4.0)
|
37
|
+
minitest (5.11.3)
|
38
|
+
nokogiri (1.10.4)
|
39
|
+
mini_portile2 (~> 2.4.0)
|
40
|
+
rails-dom-testing (2.0.3)
|
41
|
+
activesupport (>= 4.2.0)
|
42
|
+
nokogiri (>= 1.6)
|
43
|
+
rails-html-sanitizer (1.2.0)
|
44
|
+
loofah (~> 2.2, >= 2.2.2)
|
45
|
+
rake (12.3.3)
|
46
|
+
rspec (3.8.0)
|
47
|
+
rspec-core (~> 3.8.0)
|
48
|
+
rspec-expectations (~> 3.8.0)
|
49
|
+
rspec-mocks (~> 3.8.0)
|
50
|
+
rspec-core (3.8.2)
|
51
|
+
rspec-support (~> 3.8.0)
|
52
|
+
rspec-expectations (3.8.4)
|
53
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
+
rspec-support (~> 3.8.0)
|
55
|
+
rspec-mocks (3.8.1)
|
56
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
57
|
+
rspec-support (~> 3.8.0)
|
58
|
+
rspec-support (3.8.2)
|
59
|
+
thor (0.20.3)
|
60
|
+
thread_safe (0.3.6)
|
61
|
+
tzinfo (1.2.5)
|
62
|
+
thread_safe (~> 0.1)
|
63
|
+
|
64
|
+
PLATFORMS
|
65
|
+
ruby
|
66
|
+
|
67
|
+
DEPENDENCIES
|
68
|
+
actionview (= 5.2)
|
69
|
+
appraisal
|
70
|
+
bundler
|
71
|
+
byebug
|
72
|
+
decisive!
|
73
|
+
rake
|
74
|
+
rspec (~> 3.0)
|
75
|
+
|
76
|
+
BUNDLED WITH
|
77
|
+
1.17.3
|
@@ -0,0 +1,79 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
decisive (0.4.3)
|
5
|
+
actionview
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actionview (6.0.0)
|
11
|
+
activesupport (= 6.0.0)
|
12
|
+
builder (~> 3.1)
|
13
|
+
erubi (~> 1.4)
|
14
|
+
rails-dom-testing (~> 2.0)
|
15
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
16
|
+
activesupport (6.0.0)
|
17
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
+
i18n (>= 0.7, < 2)
|
19
|
+
minitest (~> 5.1)
|
20
|
+
tzinfo (~> 1.1)
|
21
|
+
zeitwerk (~> 2.1, >= 2.1.8)
|
22
|
+
appraisal (2.2.0)
|
23
|
+
bundler
|
24
|
+
rake
|
25
|
+
thor (>= 0.14.0)
|
26
|
+
builder (3.2.3)
|
27
|
+
byebug (11.0.1)
|
28
|
+
concurrent-ruby (1.1.5)
|
29
|
+
crass (1.0.4)
|
30
|
+
diff-lcs (1.3)
|
31
|
+
erubi (1.8.0)
|
32
|
+
i18n (1.6.0)
|
33
|
+
concurrent-ruby (~> 1.0)
|
34
|
+
loofah (2.2.3)
|
35
|
+
crass (~> 1.0.2)
|
36
|
+
nokogiri (>= 1.5.9)
|
37
|
+
mini_portile2 (2.4.0)
|
38
|
+
minitest (5.11.3)
|
39
|
+
nokogiri (1.10.4)
|
40
|
+
mini_portile2 (~> 2.4.0)
|
41
|
+
rails-dom-testing (2.0.3)
|
42
|
+
activesupport (>= 4.2.0)
|
43
|
+
nokogiri (>= 1.6)
|
44
|
+
rails-html-sanitizer (1.2.0)
|
45
|
+
loofah (~> 2.2, >= 2.2.2)
|
46
|
+
rake (12.3.3)
|
47
|
+
rspec (3.8.0)
|
48
|
+
rspec-core (~> 3.8.0)
|
49
|
+
rspec-expectations (~> 3.8.0)
|
50
|
+
rspec-mocks (~> 3.8.0)
|
51
|
+
rspec-core (3.8.2)
|
52
|
+
rspec-support (~> 3.8.0)
|
53
|
+
rspec-expectations (3.8.4)
|
54
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
55
|
+
rspec-support (~> 3.8.0)
|
56
|
+
rspec-mocks (3.8.1)
|
57
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
58
|
+
rspec-support (~> 3.8.0)
|
59
|
+
rspec-support (3.8.2)
|
60
|
+
thor (0.20.3)
|
61
|
+
thread_safe (0.3.6)
|
62
|
+
tzinfo (1.2.5)
|
63
|
+
thread_safe (~> 0.1)
|
64
|
+
zeitwerk (2.1.9)
|
65
|
+
|
66
|
+
PLATFORMS
|
67
|
+
ruby
|
68
|
+
|
69
|
+
DEPENDENCIES
|
70
|
+
actionview (= 6.0)
|
71
|
+
appraisal
|
72
|
+
bundler
|
73
|
+
byebug
|
74
|
+
decisive!
|
75
|
+
rake
|
76
|
+
rspec (~> 3.0)
|
77
|
+
|
78
|
+
BUNDLED WITH
|
79
|
+
2.0.2
|
@@ -8,10 +8,10 @@ module Decisive
|
|
8
8
|
ActionView::Template.register_template_handler 'decisive', self
|
9
9
|
end
|
10
10
|
|
11
|
-
def self.call template
|
11
|
+
def self.call template, source=template.source
|
12
12
|
<<~RUBY
|
13
13
|
extend Decisive::DSL
|
14
|
-
context = (#{
|
14
|
+
context = (#{source})
|
15
15
|
|
16
16
|
response.headers["Content-Type"] = "text/csv"
|
17
17
|
response.headers["Content-Transfer-Encoding"] = "binary"
|
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: appraisal
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,6 +92,7 @@ files:
|
|
78
92
|
- ".ruby-gemset"
|
79
93
|
- ".ruby-version"
|
80
94
|
- ".travis.yml"
|
95
|
+
- Appraisals
|
81
96
|
- Gemfile
|
82
97
|
- LICENSE.txt
|
83
98
|
- README.md
|
@@ -85,6 +100,13 @@ files:
|
|
85
100
|
- bin/console
|
86
101
|
- bin/setup
|
87
102
|
- decisive.gemspec
|
103
|
+
- gemfiles/.bundle/config
|
104
|
+
- gemfiles/rails_5.1.gemfile
|
105
|
+
- gemfiles/rails_5.1.gemfile.lock
|
106
|
+
- gemfiles/rails_5.2.gemfile
|
107
|
+
- gemfiles/rails_5.2.gemfile.lock
|
108
|
+
- gemfiles/rails_6.0.gemfile
|
109
|
+
- gemfiles/rails_6.0.gemfile.lock
|
88
110
|
- lib/decisive.rb
|
89
111
|
- lib/decisive/template_handler.rb
|
90
112
|
- lib/decisive/version.rb
|
@@ -107,8 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
129
|
- !ruby/object:Gem::Version
|
108
130
|
version: '0'
|
109
131
|
requirements: []
|
110
|
-
|
111
|
-
rubygems_version: 2.6.14
|
132
|
+
rubygems_version: 3.0.3
|
112
133
|
signing_key:
|
113
134
|
specification_version: 4
|
114
135
|
summary: DSL for rendering CSVs
|