From 9d26643288a658823624476c39deba0506a748ed Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Tue, 27 Mar 2012 15:43:54 -0700 Subject: [PATCH] update heroku_san --- Gemfile | 2 +- Gemfile.lock | 10 +++++----- lib/tasks/before_deploy.rake | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Gemfile b/Gemfile index 4f978d144..eecfddd92 100644 --- a/Gemfile +++ b/Gemfile @@ -143,7 +143,7 @@ end group :development do gem 'heroku' - gem 'heroku_san', '1.3.0' + gem 'heroku_san' gem 'capistrano', '~> 2.9.0', :require => false gem 'capistrano_colors', :require => false gem 'capistrano-ext', '1.2.1', :require => false diff --git a/Gemfile.lock b/Gemfile.lock index 32c069695..e97cd5e60 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -187,14 +187,14 @@ GEM json (>= 1.4.6) haml (3.1.4) hashie (1.2.0) - heroku (2.21.3) + heroku (2.23.0) launchy (>= 0.3.2) netrc (~> 0.7.1) rest-client (~> 1.6.1) rubyzip - heroku_san (1.3.0) + heroku_san (2.1.1) heroku (>= 2) - rails (>= 2) + rake highline (1.6.11) hike (1.2.1) hodel_3000_compliant_logger (0.1.0) @@ -219,7 +219,7 @@ GEM rspec (>= 1.3.1) selenium-webdriver (>= 0.1.3) jasmine-core (1.1.0) - json (1.6.5) + json (1.6.6) jsonpath (0.5.0) multi_json jwt (0.1.4) @@ -480,7 +480,7 @@ DEPENDENCIES fuubar (= 0.0.6) haml heroku - heroku_san (= 1.3.0) + heroku_san http_accept_language (~> 1.0.2) i18n-inflector-rails (~> 1.0) jammit-s3 diff --git a/lib/tasks/before_deploy.rake b/lib/tasks/before_deploy.rake index d899db86c..41cd8a0fd 100644 --- a/lib/tasks/before_deploy.rake +++ b/lib/tasks/before_deploy.rake @@ -1,8 +1,8 @@ desc "include custom landing page before heroku san deploys" task :before_deploy => :environment do - each_heroku_app do |name, app, repo| - home_file = @app_settings[name]['config']['HOME_FILE'] + each_heroku_app do |stage| + home_file = stage.config['HOME_FILE'] # Perform this task only if custom landing page is not present in app/views/home/_show.html.haml if home_file.present? puts "-----> custom landing page detected..."