Skip to content

Commit

Permalink
Extract Gemfile additions to an external file
Browse files Browse the repository at this point in the history
  • Loading branch information
Harold Giménez committed Oct 21, 2011
1 parent 07602fa commit 064b1e6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 39 deletions.
42 changes: 3 additions & 39 deletions lib/suspenders/app_builder.rb
Expand Up @@ -53,45 +53,9 @@ def create_database
end

def include_custom_gems
insert_into_file("Gemfile", <<-GEMS, :after => /gem 'jquery-rails'/)
\ngem 'thin'
gem 'sass'
gem 'clearance', '~> 0.13.0'
gem 'high_voltage'
gem 'paperclip'
gem 'formtastic'
gem 'flutie'
gem 'bourbon'
gem 'copycopter_client'
gem 'airbrake'
group :development do
gem "heroku"
end
group :development, :test do
gem "rspec-rails", "~> 2.6.1"
gem "ruby-debug19"
gem "sham_rack"
end
group :test do
gem "cucumber-rails", "1.1.0"
gem "capybara-webkit", "~> 0.7.1"
gem "factory_girl_rails"
gem "bourne"
gem "database_cleaner"
gem "timecop"
gem "shoulda-matchers"
gem "launchy"
gem "email_spec"
end
group :staging, :production do
gem 'newrelic_rpm'
gem 'sprockets-redirect'
end
GEMS
additions_path = File.expand_path(File.join('..', '..', 'template', 'files', 'Gemfile_additions'), File.dirname(__FILE__))
new_gems = File.open(additions_path).read
insert_into_file("Gemfile", "\n#{new_gems}", :after => /gem 'jquery-rails'/)
end

def configure_rspec
Expand Down
37 changes: 37 additions & 0 deletions template/files/Gemfile_additions
@@ -0,0 +1,37 @@
gem 'thin'
gem 'sass'
gem 'clearance', '~> 0.13.0'
gem 'high_voltage'
gem 'paperclip'
gem 'formtastic'
gem 'flutie'
gem 'bourbon'
gem 'copycopter_client'
gem 'airbrake'

group :development do
gem "heroku"
end

group :development, :test do
gem "rspec-rails", "~> 2.6.1"
gem "ruby-debug19"
gem "sham_rack"
end

group :test do
gem "cucumber-rails", "1.1.0"
gem "capybara-webkit", "~> 0.7.1"
gem "factory_girl_rails"
gem "bourne"
gem "database_cleaner"
gem "timecop"
gem "shoulda-matchers"
gem "launchy"
gem "email_spec"
end

group :staging, :production do
gem 'newrelic_rpm'
gem 'sprockets-redirect'
end

0 comments on commit 064b1e6

Please sign in to comment.