Commit a02ded99ad2e46f68c1d24357dd7a4855fbf6056
Exists in
master
and in
22 other branches
Merge branch 'deploy-gemfile' into 'master'
Load custom dependencies through Gemfile This allows custom dependencies to be loaded through the Gemfile. See merge request !472
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 |