Sha256: 4b0fda3b8f47eabd036415f09e06703a6ed808113f0b123f5536f778d5b90860

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

# require all files here
require 'rbconfig'
require 'oct/app'
require 'oct/oct'

# Master namespace
module Oct

  # Contents of the VERSION file
  #
  # Example format: 0.0.1
  #
  # @return [String] the contents of the version file in #.#.# format
  def self.version
    version_info_file = File.join(File.dirname(__FILE__), *%w[.. VERSION])
    File.open(version_info_file, "r") do |f|
      f.read.strip
    end
  end

  # Platform constants
  unless defined?(BasicGem::WINDOWS)
    WINDOWS = Config::CONFIG['host_os'] =~ /mswin|mingw/i
    CYGWIN = Config::CONFIG['host_os'] =~ /cygwin/i
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oct-0.2.0 lib/oct.rb