[#506] Read Gemfile.local for local gem inclusions.

Contributed by Holger Just
This commit is contained in:
Eric Davis 2011-07-22 14:43:08 -07:00
parent 9c47208efa
commit a35d61bfb7
2 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -26,4 +26,5 @@
doc/app
/.bundle
/Gemfile.lock
/Gemfile.local
/.rvmrc*

View File

@ -71,6 +71,13 @@ platforms :jruby do
end
end
# Load a "local" Gemfile
gemfile_local = File.join(File.dirname(__FILE__), "Gemfile.local")
if File.readable?(gemfile_local)
puts "Loading #{gemfile_local} ..." if $DEBUG
instance_eval(File.read(gemfile_local))
end
# Load plugins' Gemfiles
Dir.glob File.expand_path("../vendor/plugins/*/Gemfile", __FILE__) do |file|
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`