inline_forms 1.6.11 → 1.6.12
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/inline_forms +8 -2
- data/lib/inline_forms/version.rb +1 -1
- metadata +1 -1
data/bin/inline_forms
CHANGED
@@ -88,8 +88,14 @@ module InlineForms
|
|
88
88
|
end
|
89
89
|
|
90
90
|
say "- Generating Rails app '#{app_name}'..."
|
91
|
-
dry_run?
|
92
|
-
|
91
|
+
if dry_run?
|
92
|
+
empty_directory(app_name)
|
93
|
+
else
|
94
|
+
if ! RVM.run("rails new #{app_name}").successful?
|
95
|
+
say "Rails could not create the app '#{app_name}', maybe because it is a reserved word...", :red
|
96
|
+
exit 1
|
97
|
+
end
|
98
|
+
end
|
93
99
|
|
94
100
|
say "- Creating and trusting .rvmrc..."
|
95
101
|
ruby_version = (%x[rvm current]).gsub(/@.*/,'')
|
data/lib/inline_forms/version.rb
CHANGED