Hi, Discourse team
I want to offer you an interesting solution for Gemfile in the plugin directory and adding external gems if they are needed
# Load plugins' Gemfiles
Dir.glob File.expand_path("../plugins/*/{Gemfile}", __FILE__) do |file|
eval_gemfile file
end
If we add this to the main Gemfile, we can load Gemfiles from plugins.
Lets discuss this solution.
P.S. DSL doc for eval_gemfile => eval_gemfile (Bundler::Dsl) - APIdock