Sha256: 216006460ed2c8d8d24c0d9b6bc61766443b648d78e36f1bbdefc1b00569d00d
Contents?: true
Size: 1.13 KB
Versions: 5
Compression:
Stored size: 1.13 KB
Contents
# 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). 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-2014 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, 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' require 'forwardable' require 'pathname' require 'pstore' require 'set' require 'tempfile' require 'thread' require 'time' require 'yaml' require 'English' # Load nanoc require 'nanoc/version' require 'nanoc/base' require 'nanoc/extra' require 'nanoc/data_sources' require 'nanoc/filters' require 'nanoc/helpers'
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
nanoc-3.7.3 | lib/nanoc.rb |
nanoc-3.7.2 | lib/nanoc.rb |
nanoc-3.7.1 | lib/nanoc.rb |
nanoc-3.7.0 | lib/nanoc.rb |
nanoc-3.6.11 | lib/nanoc.rb |