Actions
Defect #14028
closedPlugins Gemfiles loading breaks __FILE__
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
When loading Gemfile
inside plugins, Redmine simply does an instance_eval
call. This breaks __FILE__
inside loaded files because the filename is not provided (it's set to (eval)
actually). This breaks the ability to provide a gemspec
, and it may break other features of bundler that relies on current path. The gemspec
directive won't work out of the box with the filename provided, but at least it will be possible to manually provide an option to the current directory of the gemspec.
Bundler now provides a eval_gemfile
directive in its DSL that would be safer overall, but it's only here since 1.2.0, and we don't enforce such restriction for now (only restriction on bundler version is imposed by rails, requiring ~> 1.0
).
Actions