Class: Bubbles::VersionInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/bubbles/version.rb

Class Method Summary collapse

Class Method Details

.get_code_from_version_name(name) ⇒ Object



17
18
19
20
21
22
# 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_nameObject



5
6
7
# File 'lib/bubbles/version.rb', line 5

def self.package_name
  return 'bubbles-rest-client'
end

.version_codeObject



13
14
15
# File 'lib/bubbles/version.rb', line 13

def self.version_code
  get_code_from_version_name version_name
end

.version_nameObject



9
10
11
# File 'lib/bubbles/version.rb', line 9

def self.version_name
  '0.7.0'
end