Sha256: e25e79f4ce004a579527affdef5aad2412785bf9b8261e2c46836e42e50e3f23
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
require 'date' module Bubbles class VersionInformation def self.package_name return 'bubbles-rest-client' end def self.version_name '0.2.0' end def self.version_code get_code_from_version_name version_name end def self.get_code_from_version_name(name) # The version code should be the patch version * 1 + the minor version * 2 + the major version * 4 splitVersion = name.split('.') 4 * splitVersion[0].to_i + 2 * splitVersion[1].to_i + splitVersion[2].to_i end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bubbles-rest-client-0.2.0 | lib/bubbles/version.rb |