scripts/webapp.rb in standup-0.3.16 vs scripts/webapp.rb in standup-0.3.17
- old
+ new
@@ -66,10 +66,15 @@
case params.gem_manager.to_sym
when :bundler
install_gem 'bundler'
exec 'bundle install'
when :rake_gems
- exec "RAILS_ENV=#{params.rails_env} rake gems:install"
+ cmd = "RAILS_ENV=#{params.rails_env} rake gems:install"
+ output = exec cmd
+ if output.match(/Missing the Rails ([\d\.]+) gem/) || output.match(/RubyGem version error: rails\([\d\.]+ not = ([\d\.]+)\)/)
+ install_gem 'rails', $1
+ exec cmd
+ end
end
end
end
protected