lib/nanoc.rb in nanoc-3.8.0 vs lib/nanoc.rb in nanoc-4.0.0a1

- old
+ new

@@ -1,25 +1,27 @@ # encoding: utf-8 module Nanoc # @return [String] A string containing information about this nanoc version # and its environment (Ruby engine and version, Rubygems version if any). + # + # @api private def self.version_information gem_info = defined?(Gem) ? "with RubyGems #{Gem::VERSION}" : 'without RubyGems' engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby' res = '' res << "nanoc #{Nanoc::VERSION} © 2007-2015 Denis Defreyne.\n" res << "Running #{engine} #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) on #{RUBY_PLATFORM} #{gem_info}.\n" res end - # @return [Boolean] True if the current platform is Windows, + # @return [Boolean] True if the current platform is Windows, false otherwise. + # + # @api private def self.on_windows? RUBY_PLATFORM =~ /windows|bccwin|cygwin|djgpp|mingw|mswin|wince/i end end - -Nanoc3 = Nanoc # Load general requirements require 'digest' require 'enumerator' require 'fileutils'