Commit 22886d8b75e40e0e9c275203fc07c33160208ce9
1 parent
63a7fec7
Exists in
master
and in
1 other branch
trying to perfect gem dependency management in this environment
Showing
4 changed files
with
45 additions
and
5 deletions
Show diff stats
config/environment.rb
| ... | ... | @@ -12,5 +12,23 @@ Rails::Initializer.run do |config| |
| 12 | 12 | config.time_zone = 'UTC' |
| 13 | 13 | |
| 14 | 14 | config.action_mailer.delivery_method = :smtp |
| 15 | + | |
| 16 | + config.gem "ambethia-smtp-tls", | |
| 17 | + :version => "1.1.2", | |
| 18 | + :source => "http://gems.github.com" | |
| 19 | + config.gem "tobi-delayed_job", | |
| 20 | + :version => "1.7.0", | |
| 21 | + :source => "http://gems.github.com" | |
| 22 | + config.gem "thoughtbot-paperclip", | |
| 23 | + :version => "2.2.9.2", | |
| 24 | + :source => "http://gems.github.com" | |
| 25 | + config.gem "right_aws", | |
| 26 | + :version => "1.10.0" | |
| 27 | + config.gem "rubaidh-google_analytics", | |
| 28 | + :version => "1.1.4", | |
| 29 | + :source => "http://gems.github.com" | |
| 30 | + config.gem "yfactorial-utility_scopes", | |
| 31 | + :version => "0.2.2", | |
| 32 | + :source => "http://gems.github.com" | |
| 15 | 33 | end |
| 16 | 34 | ... | ... |
config/environments/cucumber.rb
| ... | ... | @@ -15,11 +15,14 @@ config.action_controller.allow_forgery_protection = false |
| 15 | 15 | # ActionMailer::Base.deliveries array. |
| 16 | 16 | config.action_mailer.delivery_method = :test |
| 17 | 17 | |
| 18 | -config.gem "cucumber", :lib => false, :version => ">=0.3.11" | |
| 19 | -config.gem "webrat", :lib => false, :version => ">=0.4.4" | |
| 20 | - | |
| 21 | -# config.gem "rspec", :lib => false, :version => ">=1.2.6" | |
| 22 | -# config.gem "rspec-rails", :lib => 'spec/rails', :version => ">=1.2.6" | |
| 18 | +# rake gems:install RAILS_ENV=cucumber | |
| 19 | + | |
| 20 | +config.gem "cucumber", | |
| 21 | + :lib => false, | |
| 22 | + :version => ">=0.3.11" | |
| 23 | +config.gem "webrat", | |
| 24 | + :lib => false, | |
| 25 | + :version => ">=0.4.4" | |
| 23 | 26 | |
| 24 | 27 | require 'rubygems' |
| 25 | 28 | require 'factory_girl' | ... | ... |
config/environments/test.rb
| ... | ... | @@ -21,6 +21,21 @@ config.action_controller.allow_forgery_protection = false |
| 21 | 21 | # ActionMailer::Base.deliveries array. |
| 22 | 22 | config.action_mailer.delivery_method = :test |
| 23 | 23 | |
| 24 | +# rake gems:install RAILS_ENV=test | |
| 25 | + | |
| 26 | +config.gem 'jferris-mocha', | |
| 27 | + :version => '0.9.5.0.1241126838', | |
| 28 | + :source => 'http://gems.github.com', | |
| 29 | + :lib => 'mocha' | |
| 30 | +config.gem 'thoughtbot-factory_girl', | |
| 31 | + :lib => 'factory_girl', | |
| 32 | + :source => 'http://gems.github.com', | |
| 33 | + :version => '>= 1.2.0' | |
| 34 | +config.gem 'thoughtbot-shoulda', | |
| 35 | + :lib => 'shoulda', | |
| 36 | + :source => 'http://gems.github.com', | |
| 37 | + :version => '>= 2.10.1' | |
| 38 | + | |
| 24 | 39 | HOST = 'localhost' |
| 25 | 40 | |
| 26 | 41 | require 'shoulda' | ... | ... |
script/create_project
| ... | ... | @@ -54,6 +54,10 @@ end |
| 54 | 54 | |
| 55 | 55 | run("git commit -a -m 'New Heroku Suspenders app'") |
| 56 | 56 | |
| 57 | +run("rake gems:install RAILS_ENV=development") | |
| 58 | +run("rake gems:install RAILS_ENV=test") | |
| 59 | +run("rake gems:install RAILS_ENV=cucumber") | |
| 60 | + | |
| 57 | 61 | run("rake db:migrate RAILS_ENV=development") |
| 58 | 62 | run("rake db:migrate RAILS_ENV=test") |
| 59 | 63 | run("rake db:migrate RAILS_ENV=cucumber") | ... | ... |