Skip to content

Commit

Permalink
Convert version file to a standard format
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyadsl committed Apr 20, 2021
1 parent 9b5c6de commit 30327c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
17 changes: 1 addition & 16 deletions lib/solidus_i18n/version.rb
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
2 changes: 1 addition & 1 deletion solidus_i18n.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require 'solidus_i18n/version'

Gem::Specification.new do |s|
s.name = 'solidus_i18n'
s.version = SolidusI18n.version
s.version = SolidusI18n::VERSION
s.summary = 'Provides locale information for use in Solidus.'
s.description = 'A collection of translations for Solidus.'

Expand Down

0 comments on commit 30327c0

Please sign in to comment.