inline_forms 1.6.11 → 1.6.12

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.
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? ? empty_directory(app_name) : RVM.run("rails new #{app_name}")
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(/@.*/,'')
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.6.11"
3
+ VERSION = "1.6.12"
4
4
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.6.11
5
+ version: 1.6.12
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ace Suares