Sha256: f16f48f17e5a31ee9ce1f8226f801c01a722ccda09fb48d4fe36ac31c4e56d23
Contents?: true
Size: 516 Bytes
Versions: 13
Compression:
Stored size: 516 Bytes
Contents
require 'keen' require 'yaml' # parse VERSION.yml yaml_path = File.join(File.expand_path(File.dirname(__FILE__)), '..', '..', 'VERSION.yml') version_info = File.open( yaml_path ) { |file| YAML::load( file ) } # build the version string version_string = "" version_string += "#{version_info[:major]}" version_string += "#{version_info[:minor]}" version_string += "#{version_info[:patch]}" if version_info[:build] version_string += "#{version_info[:build]}" end # set the constant Keen::VERSION = version_string
Version data entries
13 entries across 13 versions & 1 rubygems