Sha256: 8f0f6dda39fb6acc5d12c38344ba517405fe4f8f58ffdd93bde02b2ed4269d56
Contents?: true
Size: 547 Bytes
Versions: 63
Compression:
Stored size: 547 Bytes
Contents
# encoding: utf-8 module Mail module VERSION def self.version version_hash = {} File.read(File.join(File.dirname(__FILE__), '../', 'VERSION')).each_line do |line| type, value = line.chomp.split(":") next if type =~ /^\s+$/ || value =~ /^\s+$/ version_hash[type] = value end version_hash end MAJOR = version['major'] MINOR = version['minor'] PATCH = version['patch'] BUILD = version['build'] STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.') end end
Version data entries
63 entries across 33 versions & 2 rubygems