]> source.dussan.org Git - redmine.git/commitdiff
Improve plugins' Gemfile loading (#14028).
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>
Sat, 11 May 2013 11:19:21 +0000 (11:19 +0000)
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>
Sat, 11 May 2013 11:19:21 +0000 (11:19 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11826 e93f8b46-1217-0410-a6f0-8f06a7374b81

Gemfile

diff --git a/Gemfile b/Gemfile
index a94a97b2696b9ad64bedd140f4ad6c3476862ec0..5c32962dcb30bb19e4f382f01e5938cf54080853 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -94,5 +94,6 @@ end
 # Load plugins' Gemfiles
 Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
   puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
-  instance_eval File.read(file)
+  #TODO: switch to "eval_gemfile file" when bundler >= 1.2.0 will be required (rails 4)
+  instance_eval File.read(file), file
 end