Sha256: 9c3309acf14086c90265647d2bf17840107bed1de43302d2be3803b13cbc462a

Contents?: true

Size: 807 Bytes

Versions: 8

Compression:

Stored size: 807 Bytes

Contents

# Contains information about currently used Loops version.
#
# @example
#   puts "Loops #{Loops::Version}"
#
class Loops::Version
  # @return [Hash<Symbol, Integer>]
  #   a +Hash+ containing major, minor, and patch version parts.
  CURRENT = YAML.load_file(File.join(Loops::LIB_ROOT, '../VERSION.yml'))

  # @return [Integer]
  #   a major part of the Loops version.
  MAJOR = CURRENT[:major]
  # @return [Integer]
  #   a minor part of the Loops version.
  MINOR = CURRENT[:minor]
  # @return [Integer]
  #   a patch part of the Loops version.
  PATCH = CURRENT[:patch]

  # @return [String]
  #   a string representation of the Loops version.
  STRING = "%d.%d.%d" % [MAJOR, MINOR, PATCH]

  # @return [String]
  #   a string representation of the Loops version.
  #
  def self.to_s
    STRING
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
loops-2.0.4 lib/loops/version.rb
loops-2.0.3 lib/loops/version.rb
qik-loops-2.1.4 lib/loops/version.rb
loops-2.0.2 lib/loops/version.rb
qik-loops-2.1.3 lib/loops/version.rb
qik-loops-2.1.0 lib/loops/version.rb
loops-2.0.1 lib/loops/version.rb
loops-2.0.0 lib/loops/version.rb