Sha256: ec9a2c59f0c0a1d985b691cda339615c752c3f3601ca9be21187591af8121ed9

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

module Bubbles
  class VersionInformation
    def self.package_name
      return 'bubbles-rest-client'
    end

    def self.version_name
      '0.0.7'
    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.0.7 lib/bubbles/version.rb