lib/billomat/version.rb in billomat-0.4.1 vs lib/billomat/version.rb in billomat-1.0.0
- old
+ new
@@ -1,5 +1,23 @@
# frozen_string_literal: true
+# The gem version details.
module Billomat
- VERSION = '0.4.1'
+ # The version of the +billomat+ gem
+ VERSION = '1.0.0'
+
+ class << self
+ # Returns the version of gem as a string.
+ #
+ # @return [String] the gem version as string
+ def version
+ VERSION
+ end
+
+ # Returns the version of the gem as a +Gem::Version+.
+ #
+ # @return [Gem::Version] the gem version as object
+ def gem_version
+ Gem::Version.new VERSION
+ end
+ end
end