Sha256: 2c25a6436fba1b08623d94b94b058ea148e91b33db219d413e2b922e4a1f471c

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.8'
    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.8 lib/bubbles/version.rb