Last active
August 22, 2018 21:30
-
-
Save ferventcoder/822146d5f12fa5195af0 to your computer and use it in GitHub Desktop.
local gem file for ruby development
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
# name the file Gemfile.local | |
gem 'fuubar' | |
gem 'pry' | |
gem 'pry-stack_explorer' | |
if RUBY_VERSION =~ /^2/ | |
gem 'pry-byebug' | |
else | |
gem 'pry-debugger' | |
end |
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
### you need this in your Gemfile for it to access the local Gemfile | |
if File.exists? "#{__FILE__}.local" | |
eval(File.read("#{__FILE__}.local"), binding) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bundler provides a way to evaluate a Gemfile: