Skip to content

Commit

Permalink
address code review
Browse files Browse the repository at this point in the history
  • Loading branch information
vast committed Sep 16, 2013
1 parent e3360a9 commit 294ce19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ gem 'active_model_serializers'
gem 'seedbank', github: 'james2m/seedbank'
gem 'dotenv'
gem 'devise', '~> 3.1.0'
gem 'rails_12factor', group: [:production, :staging]

group :development do
gem 'letter_opener'
Expand Down Expand Up @@ -59,3 +58,7 @@ group :staging do
gem 'uglifier'
gem 'coffee-rails'
end

group :staging, :production do
gem 'rails_12factor'
end
4 changes: 2 additions & 2 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def install_bundler
end
end

def install_gems(without = 'production staging')
def install_gems(without: 'production staging')
check(:gemfile) do |old_version|
# check both Gemfile and Gemfile.lock as there might be local changes that hasn't been bundled yet
version = File.read('Gemfile') + File.read('Gemfile.lock')
Expand Down Expand Up @@ -82,7 +82,7 @@ is_ci = ARGV.shift == 'ci'
setup_database_yml
setup_dotenv
install_bundler
install_gems(is_ci ? 'development' : '')
install_gems(without: is_ci ? 'development' : '')

is_ci ? prepare_test_db : migrate_db

Expand Down

0 comments on commit 294ce19

Please sign in to comment.