How to load one Gemfile from another Gemfile in Ruby I'm working on a Rubymotion project just now in which most of the application code is held within a submodule (so it can be shared across multiple apps). The submodule has it's own gem dependencies and it's own Gemfile. I was looking for a way to load the submodule's Gemfile from within the main application's Gemfile and I discovered I can do this: # in my main app's Gemfile source '' eval_gemfile File.join(File.dirname(__FILE__), "vendor/MyPlugin/Gemfile") gem "some_other_gem" It's that easy