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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54ee2d74ff336976060d07ce9b8cc15d4b96e3e5959106f1e5d8c64bef0670d5
4
- data.tar.gz: 9a2c1f592993cdbd308686eb3cc0772263a120e1dd4953665cc175f21092e419
3
+ metadata.gz: 63388e83e357176bb1ef22ce0c950a30180bb89b08598faab5e9a7dbf81e8be4
4
+ data.tar.gz: 228587348d6d34e2d675adf678afb42c6c794083b82e806af8399ea8d8957178
5
5
  SHA512:
6
- metadata.gz: cc6a17ae49b13b9099aceb67db1498b81fbf975bb87b09b22191a42cfe0834ba084b383e2aa9c41a5178a2ed44164b1e30d7eb5a952caad7e50361c3bb3e43c2
7
- data.tar.gz: 93348105d22f91265d51dd5b99f6718ac53f26797251d141dec1a585c3b182895f96de69a85ee0631723b191df704f66bb59a0cebbe09640e41260a149c77246
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 = nil
119
-
120
- case question.dig("type")
121
- when "boolean"
122
- answer = prompt.yes?(title) { |q| q.default(default) }
123
- when "range"
124
- answer = prompt.ask(title, default: default) { |q| q.in(question.dig("range")) }
125
- when "text"
126
- answer = prompt.ask(title, default: default)
127
- when "select"
128
- answer = prompt.select(title, question.dig("options"))
129
- else
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
@@ -244,6 +244,7 @@ module Panacea # :nodoc:
244
244
  generate "devise", model_name
245
245
  generate "devise:views", plural_model_name if config.dig("devise_override_views")
246
246
 
247
+ rails_command "db:create"
247
248
  rails_command "db:migrate"
248
249
  end
249
250
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Panacea # :nodoc:
4
4
  module Rails # :nodoc:
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  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.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-04 00:00:00.000000000 Z
13
+ date: 2018-09-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler