Sha256: 89bac1e4913b09b4b9a75cd1dc61415f1306ea6c71efe2243715d344c3533137

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

# encoding: utf-8
module RViki
  module VERSION

    version = {}
    File.read(File.join(File.dirname(__FILE__), '../', 'VERSION')).each_line do |line|
      type, value = line.chomp.split(":")
      next if type =~ /^ +$/  || value =~ /^ +$/
      version[type] = value
    end

    MAJOR = version['major']
    MINOR = version['minor']
    PATCH = version['patch']
    BUILD = version['build']

    STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')

    def self.version
      STRING
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rviki-0.0.2 lib/rviki/version.rb
rviki-0.0.1 lib/rviki/version.rb