diff --git a/.gitignore b/.gitignore index 6f7528fc..0b625b2e 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,5 @@ doc/app /.bundle /Gemfile.lock +/Gemfile.local /.rvmrc* diff --git a/Gemfile b/Gemfile index 2bda2e82..2a85bf3e 100644 --- a/Gemfile +++ b/Gemfile @@ -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`