lib/nanoc.rb in nanoc-3.6.7 vs lib/nanoc.rb in nanoc-3.6.8
- old
+ new
@@ -3,12 +3,12 @@
module Nanoc
# @return [String] A string containing information about this nanoc version
# and its environment (Ruby engine and version, Rubygems version if any).
def self.version_information
- gem_info = defined?(Gem) ? "with RubyGems #{Gem::VERSION}" : "without RubyGems"
- engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby"
+ gem_info = defined?(Gem) ? "with RubyGems #{Gem::VERSION}" : 'without RubyGems'
+ engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
res = ''
res << "nanoc #{Nanoc::VERSION} © 2007-2013 Denis Defreyne.\n"
res << "Running #{engine} #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) on #{RUBY_PLATFORM} #{gem_info}.\n"
res
end
@@ -32,9 +32,10 @@
require 'set'
require 'tempfile'
require 'thread'
require 'time'
require 'yaml'
+require 'English'
# Load nanoc
require 'nanoc/version'
require 'nanoc/base'
require 'nanoc/extra'