Created
October 8, 2010 21:56
-
-
Save listrophy/617645 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sentinel='if RbConfig' | |
sed -i '.bak' -e "s/^${sentinel}.*$/if false/" Gemfile | |
bundle | |
git update-index --no-assume-unchanged Gemfile.lock | |
git add Gemfile.lock | |
mv Gemfile.bak Gemfile | |
bundle | |
git co Gemfile.lock | |
git update-index --assume-unchanged Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem 'rails' | |
# Or find something else that returns true | |
# locally, but false on heroku | |
if RbConfig::CONFIG['host_os'] =~ /darwin/ | |
group :test do | |
# heroku fails hard on this gem | |
gem 'specjour' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment