Method: Jekyll::PluginManager#require_theme_deps
- Defined in:
- lib/jekyll/plugin_manager.rb
#require_theme_deps ⇒ Object
Require each of the runtime_dependencies specified by the theme’s gemspec.
Returns false only if no dependencies have been specified, otherwise nothing.
38 39 40 41 42 43 44 45 46 |
# File 'lib/jekyll/plugin_manager.rb', line 38 def require_theme_deps return false unless site.theme.runtime_dependencies site.theme.runtime_dependencies.each do |dep| next if dep.name == "jekyll" External.require_with_graceful_fail(dep.name) if plugin_allowed?(dep.name) end end |