Sha256: 4fee846812fa0316ee1ff1fd796d9dab76f89fea0335615f5147c2006e52578c

Contents?: true

Size: 605 Bytes

Versions: 1

Compression:

Stored size: 605 Bytes

Contents

# frozen_string_literal: true

module SmartMachine
  # Returns the version of the currently loaded SmartMachine as a <tt>Gem::Version</tt>.
  def self.gem_version
    Gem::Version.new VERSION::STRING
  end

  def self.version
    self.gem_version.to_s
  end

  def self.ruby_version
    RUBY_VERSION::STRING
  end

  module VERSION
    MAJOR = 1
    MINOR = 2
    TINY  = 0
    PRE   = "dev"

    STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
  end

  module RUBY_VERSION
    MAJOR = 2
    MINOR = 7
    TINY  = 7
    PRE   = nil

    STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smartmachine-1.2.0.dev lib/smart_machine/version.rb