panacea-rails 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/panacea/rails/customizer.rb +12 -14
- data/lib/panacea/rails/generator.rb +1 -0
- data/lib/panacea/rails/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: 63388e83e357176bb1ef22ce0c950a30180bb89b08598faab5e9a7dbf81e8be4
|
4
|
+
data.tar.gz: 228587348d6d34e2d675adf678afb42c6c794083b82e806af8399ea8d8957178
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e1483c884fabc80f97978935e50871de32f20812a1f833a59d2a71bb64dc7270c9e6dd4188c7783b94937fd6bb238f343c3c149d300ba4452985d13f253f08a
|
7
|
+
data.tar.gz: '0019d15f77ffc5e461e588bb3a9b97f79a15a97d6ffa241c23b3016f939f26055158c377945ff34ee8167ba19626bf34a5d832dee3264037ab5bbf4df5987c99'
|
data/README.md
CHANGED
@@ -26,6 +26,10 @@ You can read the full documentation here:
|
|
26
26
|
|
27
27
|
**[https://www.panacea.website](https://www.panacea.website)**
|
28
28
|
|
29
|
+
## Suggesting Integrations
|
30
|
+
|
31
|
+
We accept suggestions via Github's Issues. Please create one issue per suggested gem and mark it with the `suggestion` label. We will do our best to integrate the suggested gem into the Panacea Generator.
|
32
|
+
|
29
33
|
## Contributing
|
30
34
|
|
31
35
|
Bug reports and pull requests are welcome on GitHub at [https://github.com/panacea-rails/panacea](https://github.com/panacea-rails/panacea). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
@@ -115,20 +115,18 @@ module Panacea # :nodoc:
|
|
115
115
|
return unless eval(condition)
|
116
116
|
end
|
117
117
|
|
118
|
-
answer =
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
raise StandardError, "Question type not supported."
|
131
|
-
end
|
118
|
+
answer = case question.dig("type")
|
119
|
+
when "boolean"
|
120
|
+
prompt.yes?(title) { |q| q.default(default) }
|
121
|
+
when "range"
|
122
|
+
prompt.ask(title, default: default) { |q| q.in(question.dig("range")) }
|
123
|
+
when "text"
|
124
|
+
prompt.ask(title, default: default)
|
125
|
+
when "select"
|
126
|
+
prompt.select(title, question.dig("options"))
|
127
|
+
else
|
128
|
+
raise StandardError, "Question type not supported."
|
129
|
+
end
|
132
130
|
|
133
131
|
update_answer(key, answer)
|
134
132
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panacea-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillermo Moreno
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-09-
|
13
|
+
date: 2018-09-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|