Sha256: 112ce344133f0b9d594307dcbe19a32a09f7203be79580b7e14c4f407a719cfd

Contents?: true

Size: 1.41 KB

Versions: 11

Compression:

Stored size: 1.41 KB

Contents

# frozen_string_literal: true

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 = String.new
    res << "Nanoc #{Nanoc::VERSION} © 2007-2017 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, false otherwise.
  #
  # @api private
  def self.on_windows?
    RUBY_PLATFORM =~ /windows|bccwin|cygwin|djgpp|mingw|mswin|wince/i
  end
end

# Load external dependencies
require 'hamster'
require 'ref'
require 'ddplugin'

# Load general requirements
require 'digest'
require 'enumerator'
require 'fiber'
require 'fileutils'
require 'forwardable'
require 'pathname'
require 'pstore'
require 'set'
require 'singleton'
require 'tempfile'
require 'thread'
require 'time'
require 'yaml'
require 'uri'
require 'English'

# Load Nanoc
require 'nanoc/version'
require 'nanoc/base'
require 'nanoc/telemetry'
require 'nanoc/checking'
require 'nanoc/deploying'
require 'nanoc/extra'
require 'nanoc/data_sources'
require 'nanoc/filters'
require 'nanoc/helpers'
require 'nanoc/rule_dsl'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
nanoc-4.8.5 lib/nanoc.rb
nanoc-4.8.4 lib/nanoc.rb
nanoc-4.8.3 lib/nanoc.rb
nanoc-4.8.2 lib/nanoc.rb
nanoc-4.8.1 lib/nanoc.rb
nanoc-4.8.0 lib/nanoc.rb
nanoc-4.7.14 lib/nanoc.rb
nanoc-4.7.13 lib/nanoc.rb
nanoc-4.7.12 lib/nanoc.rb
nanoc-4.7.11 lib/nanoc.rb
nanoc-4.7.10 lib/nanoc.rb