Sha256: 4614811f4c247eeeafad6a3cb267a1593022ccd081de0131b1c946ab2c76daa7

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

# -*- encoding: utf-8 -*-

module WatchTower
  MAJOR = 0
  MINOR = 0
  TINY = 1
  PRE = "beta1"

  def self.version
    # Init the version
    version = [MAJOR, MINOR, TINY]
    # Add the pre if available
    version << PRE unless PRE.nil? || PRE !~ /\S/
    # Return the version joined by a dot
    version.join('.')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watch_tower-0.0.1.beta1 lib/watch_tower/version.rb