First, setup Bundler. Then, require it.

Per a conversation in
https://github.com/bundler/bundler/issues/3252#issuecomment-63208769
This commit is contained in:
Parker Moore 2014-11-16 21:18:19 -08:00
parent 22275e571d
commit 32b14d6402
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ module Jekyll
false
else
require "bundler"
required_gems = Bundler.require(:jekyll_plugins)
Bundler.setup # puts all groups on the load path
Bundler.require(:jekyll_plugins) # requires the gems in this group only
Jekyll.logger.debug("PluginManager:", "Required #{required_gems.map(&:name).join(', ')}")
ENV["JEKYLL_NO_BUNDLER_REQUIRE"] = "true"
true