Skip to content

Instantly share code, notes, and snippets.

@listrophy
Created October 8, 2010 21:56
Show Gist options
  • Save listrophy/617645 to your computer and use it in GitHub Desktop.
Save listrophy/617645 to your computer and use it in GitHub Desktop.
#!/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
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