Skip to content

Commit

Permalink
Add support to specify bower version on deployment (heroku#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
juno committed Apr 2, 2014
1 parent 37e2b78 commit 5d895a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/language_pack/ruby.rb
Expand Up @@ -21,7 +21,7 @@ class LanguagePack::Ruby < LanguagePack::Base
LEGACY_JVM_VERSION = "openjdk1.7.0_25"
DEFAULT_RUBY_VERSION = "ruby-2.0.0"
RBX_BASE_URL = "http://binaries.rubini.us/heroku"
BOWER_VERSION = "1.3.1-patched"
BOWER_VERSION = user_env_hash['BOWER_VERSION'] || "1.3.1-patched"
BOWER_BASE_URL = "http://heroku-buildpack-ruby-bower.s3.amazonaws.com"
NODE_JS_VERSION = "0.10.21"
NODE_JS_BASE_URL = "http://heroku-buildpack-nodejs.s3.amazonaws.com"
Expand Down Expand Up @@ -589,7 +589,7 @@ def install_bower
log("bower") do
run("curl #{BOWER_BASE_URL}/bower-#{BOWER_VERSION}/node_modules.tar.gz -s -o - | tar xzf -")
unless $?.success?
error "Can't install Bower #{BOWER_VERSION}"
error "Can't install Bower #{BOWER_VERSION}. You can specify the version listed on http://heroku-buildpack-ruby-bower.s3-website-us-east-1.amazonaws.com/"
end
end
end
Expand Down

0 comments on commit 5d895a5

Please sign in to comment.