Commit 52bb8ba394ad02ae3da4960998517347d5d35142
1 parent
c717cb2c
Exists in
master
and in
29 other branches
Gemfile: allow custom dependencies to be loaded through Gemfile
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
Gemfile
@@ -41,9 +41,12 @@ group :cucumber do | @@ -41,9 +41,12 @@ group :cucumber do | ||
41 | gem 'selenium-webdriver', '~> 2.39.0' | 41 | gem 'selenium-webdriver', '~> 2.39.0' |
42 | end | 42 | end |
43 | 43 | ||
44 | +# Requires custom dependencies | ||
45 | +eval(File.read('config/Gemfile'), binding) rescue nil | ||
46 | + | ||
44 | # include gemfiles from enabled plugins | 47 | # include gemfiles from enabled plugins |
45 | # plugins in baseplugins/ are not included on purpose. They should not have any | 48 | # plugins in baseplugins/ are not included on purpose. They should not have any |
46 | # dependencies. | 49 | # dependencies. |
47 | Dir.glob('config/plugins/*/Gemfile').each do |gemfile| | 50 | Dir.glob('config/plugins/*/Gemfile').each do |gemfile| |
48 | eval File.read(gemfile) | 51 | eval File.read(gemfile) |
49 | -end | 52 | -end |
53 | +end | ||
50 | \ No newline at end of file | 54 | \ No newline at end of file |
-
mentioned in commit 50c398652396ee4e8b716d0d956a8ac1be411589