1
0
mirror of https://github.com/meineerde/rackstash.git synced 2026-01-02 20:29:38 +00:00
rackstash/lib/rackstash/version.rb
Holger Just 8777596de4 Bump version to 0.2.0-dev
Since this is a complete rewrite of the original rackstash gem which got
up to v0.1, we start directly on 0.2 with our development and will
eventually release it as v0.2.
2017-01-16 00:28:06 +01:00

40 lines
1.2 KiB
Ruby

# Copyright 2017 Holger Just
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE.txt file for details.
module Rackstash
# Version information about Rackstash.
module Version
# MAJOR version. It is incremented after incompatible API changes
MAJOR = 0
# MINOR version. It is incremented after adding functionality in a
# backwards-compatible manner
MINOR = 2
# PATCH version. It is incremented when making backwards-compatible
# bug-fixes.
PATCH = 0
# PRERELEASE suffix. Set to a alphanumeric string on any pre-release
# versions like beta or RC releases.
PRERELEASE = 'dev'.freeze
# A standard string representation of the version parts
STRING = [MAJOR, MINOR, PATCH, PRERELEASE].compact.join('.').freeze
# @return [Gem::Version] the version of the currently loaded Rackstash as
# a `Gem::Version`
def self.gem_version
Gem::Version.new to_s
end
# @return [String] the Rackstash version as a semver-compliant string
def self.to_s
STRING
end
end
# The Rackstash version as a semver-compliant string
# @see Version::STRING
VERSION = Version::STRING
end