Sha256: 6c9df26463eb347d4fe05ae80e1da1438a0c22fe74c6e2e6dc126622d6afaba9

Contents?: true

Size: 520 Bytes

Versions: 3

Compression:

Stored size: 520 Bytes

Contents

# encoding: utf-8
class Iuid
  class VERSION
    version = {}
    File.read(File.join(File.dirname(__FILE__), '../', 'VERSION')).each_line do |line|
      type, value = line.chomp.split(":")
      next if type =~ /^\s+$/ || value =~ /^\s+$/
      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

3 entries across 3 versions & 1 rubygems

Version Path
iuid-0.0.4 lib/iuid/version.rb
iuid-0.0.3 lib/iuid/version.rb
iuid-0.0.2 lib/iuid/version.rb