Sha256: 66309630744113d37e39448f34a29fa37ea8f56950ff13ae9608bdcd6bff7690
Contents?: true
Size: 818 Bytes
Versions: 1
Compression:
Stored size: 818 Bytes
Contents
# encoding: utf-8 module Nanoc3 # The current nanoc version. VERSION = '3.1.0a2' # Loads all nanoc3 plugins, i.e. requires all ruby gems whose name start # with `nanoc3-`. # # @return [Boolean] true if all plugins were loaded successfully, false if # rubygems isn’t loaded. def self.load_plugins # Don’t load if there’s no rubygems return false if !defined?(Gem) Gem.source_index.find_name('').each do |gem| # Skip irrelevant ones next if gem.name !~ /^nanoc3-/ # Load plugin require gem.name end true end end # Load requirements require 'yaml' require 'fileutils' # Load nanoc require 'nanoc3/base' require 'nanoc3/extra' require 'nanoc3/data_sources' require 'nanoc3/filters' require 'nanoc3/helpers' # Load plugins Nanoc3.load_plugins
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc3-3.1.0a2 | lib/nanoc3.rb |