bin/katapult in katapult-0.4.0 vs bin/katapult in katapult-0.4.1
- old
+ new
@@ -58,18 +58,21 @@
util.run 'git init --quiet'
util.git_commit "rails new #{ app_name }", '--quiet'
util.pink 'Installing katapult ...'
File.open('Gemfile', 'a') do |file|
- file.puts "gem 'katapult'#{ ENV['KATAPULT_GEMFILE_OPTIONS'] }, group: :development"
+ file.puts "gem 'katapult', '#{ Katapult::VERSION }', group: :development #{ ENV['KATAPULT_GEMFILE_OPTIONS'] }"
end
- util.run 'bundle install --quiet'
+ # "update rails" ensures the application uses the Rails version that katapult
+ # requires (the default Gemfile lists Rails with ~>, meaning the patch level
+ # may mismatch). It also installs katapult.
+ util.run 'bundle update rails --quiet'
util.run 'bundle exec rails generate katapult:app_model'
util.git_commit 'rails generate katapult:app_model', '--quiet'
util.pink 'Generating katapult basics ...'
util.run basics_command
- # Do not use `basics_command` as commit message, as it contains the password!
+ # Do not use `basics_command` as commit message, it contains the db password!
util.git_commit 'rails generate katapult:basics', '--quiet'
util.pink <<-INSTRUCTIONS
Application initialization done.