Commit 7992de9d64c7d3c3c6aa8631caaa4dcbbb6826ed
1 parent
0ee3ff4d
Exists in
master
and in
27 other branches
Gemfile: simplify loading plugins' Gemfiles
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
Gemfile
@@ -41,8 +41,9 @@ group :cucumber do | @@ -41,8 +41,9 @@ group :cucumber do | ||
41 | gem 'selenium-webdriver', '~> 2.39.0' | 41 | gem 'selenium-webdriver', '~> 2.39.0' |
42 | end | 42 | end |
43 | 43 | ||
44 | -# include plugin gemfiles | ||
45 | -Dir.glob(File.join('config', 'plugins', '*')).each do |plugin| | ||
46 | - plugin_gemfile = File.join(plugin, 'Gemfile') | ||
47 | - eval File.read(plugin_gemfile) if File.exists?(plugin_gemfile) | 44 | +# include gemfiles from enabled plugins |
45 | +# plugins in baseplugins/ are not included on purpose. They should not have any | ||
46 | +# dependencies. | ||
47 | +Dir.glob('config/plugins/*/Gemfile').each do |gemfile| | ||
48 | + eval File.read(gemfile) | ||
48 | end | 49 | end |