class Bubbles::VersionInformation

Public Class Methods

get_code_from_version_name(name) click to toggle source
# File lib/bubbles/version.rb, line 17
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
package_name() click to toggle source
# File lib/bubbles/version.rb, line 5
def self.package_name
  return 'bubbles-rest-client'
end
version_code() click to toggle source
# File lib/bubbles/version.rb, line 13
def self.version_code
  get_code_from_version_name version_name
end
version_name() click to toggle source
# File lib/bubbles/version.rb, line 9
def self.version_name
  '0.6.0'
end