Module: Mutagem

Defined in:
lib/mutagem.rb,
lib/mutagem/task.rb,
lib/mutagem/mutex.rb,
lib/mutagem/lockfile.rb

Overview

Master namespace

Defined Under Namespace

Classes: Lockfile, Mutex, Task

Constant Summary collapse

WINDOWS =
RbConfig::CONFIG['host_os'] =~ /mswin|mingw/i
CYGWIN =
RbConfig::CONFIG['host_os'] =~ /cygwin/i

Class Method Summary collapse

Class Method Details

.versionString

Contents of the VERSION file

Example format: 0.0.1

Returns:

  • (String)

    the contents of the version file in #.#.# format



15
16
17
18
19
20
# File 'lib/mutagem.rb', line 15

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