[#506] Read Gemfile.local for local gem inclusions.
Contributed by Holger Just
This commit is contained in:
parent
9c47208efa
commit
a35d61bfb7
1
.gitignore
vendored
1
.gitignore
vendored
@ -26,4 +26,5 @@
|
|||||||
doc/app
|
doc/app
|
||||||
/.bundle
|
/.bundle
|
||||||
/Gemfile.lock
|
/Gemfile.lock
|
||||||
|
/Gemfile.local
|
||||||
/.rvmrc*
|
/.rvmrc*
|
||||||
|
7
Gemfile
7
Gemfile
@ -71,6 +71,13 @@ platforms :jruby do
|
|||||||
end
|
end
|
||||||
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
|
# Load plugins' Gemfiles
|
||||||
Dir.glob File.expand_path("../vendor/plugins/*/Gemfile", __FILE__) do |file|
|
Dir.glob File.expand_path("../vendor/plugins/*/Gemfile", __FILE__) do |file|
|
||||||
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
|
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user