(maint) Update Gemfile and gitignore

Previously, a bundle install would not pull in gems from Gemfile.local or
~/.gemfile which are common development workflows in Puppet.  This commit
modifies the Gemfile to pull in these additional gemfiles if they exist.  This
commit also adds common files and folders to gitignore which should not be
committed to this repository.
This commit is contained in:
Glenn Sarti 2017-01-24 14:37:36 -08:00
parent 2bf7c4a715
commit 80c0742e80
2 changed files with 14 additions and 0 deletions

10
Gemfile
View file

@ -23,3 +23,13 @@ group :test do
gem 'simplecov', '>= 0.11.2'
gem 'yarjuf', '>= 2.0'
end
# Evaluate Gemfile.local if it exists
if File.exists? "#{__FILE__}.local"
instance_eval(File.read("#{__FILE__}.local"))
end
# Evaluate ~/.gemfile if it exists
if File.exists?(File.join(Dir.home, '.gemfile'))
instance_eval(File.read(File.join(Dir.home, '.gemfile')))
end