Skip to content

Commit 30327c0

Browse files
committed
Convert version file to a standard format
1 parent 9b5c6de commit 30327c0

2 files changed

Lines changed: 2 additions & 17 deletions

File tree

lib/solidus_i18n/version.rb

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
# frozen_string_literal: true
22

33
module SolidusI18n
4-
module_function
5-
6-
# Returns the version of the currently loaded SolidusI18n as a
7-
# <tt>Gem::Version</tt>.
8-
def version
9-
Gem::Version.new VERSION::STRING
10-
end
11-
12-
module VERSION
13-
MAJOR = 2
14-
MINOR = 0
15-
TINY = 0
16-
PRE = nil
17-
18-
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
19-
end
4+
VERSION = '2.0.0'
205
end

solidus_i18n.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require 'solidus_i18n/version'
55

66
Gem::Specification.new do |s|
77
s.name = 'solidus_i18n'
8-
s.version = SolidusI18n.version
8+
s.version = SolidusI18n::VERSION
99
s.summary = 'Provides locale information for use in Solidus.'
1010
s.description = 'A collection of translations for Solidus.'
1111

0 commit comments

Comments
 (0)