From 30327c05e9da445a8dd069e72d282d1325ba04fa Mon Sep 17 00:00:00 2001 From: Alberto Vena Date: Tue, 20 Apr 2021 12:29:00 +0200 Subject: [PATCH] Convert version file to a standard format --- lib/solidus_i18n/version.rb | 17 +---------------- solidus_i18n.gemspec | 2 +- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/lib/solidus_i18n/version.rb b/lib/solidus_i18n/version.rb index 5c2c777c..07e7ee4d 100644 --- a/lib/solidus_i18n/version.rb +++ b/lib/solidus_i18n/version.rb @@ -1,20 +1,5 @@ # frozen_string_literal: true module SolidusI18n - module_function - - # Returns the version of the currently loaded SolidusI18n as a - # Gem::Version. - 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 diff --git a/solidus_i18n.gemspec b/solidus_i18n.gemspec index 59d6fcde..1a5a914e 100644 --- a/solidus_i18n.gemspec +++ b/solidus_i18n.gemspec @@ -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.'