-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert version file to a standard format
- Loading branch information
Showing
2 changed files
with
2 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module SolidusI18n | ||
module_function | ||
|
||
# Returns the version of the currently loaded SolidusI18n as a | ||
# <tt>Gem::Version</tt>. | ||
def version | ||
Gem::Version.new VERSION::STRING | ||
end | ||
|
||
module VERSION | ||
MAJOR = 2 | ||
MINOR = 0 | ||
TINY = 0 | ||
PRE = nil | ||
|
||
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.') | ||
end | ||
VERSION = '2.0.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters