diff --git a/.gem-release.yml b/.gem-release.yml new file mode 100644 index 00000000..802b8312 --- /dev/null +++ b/.gem-release.yml @@ -0,0 +1,2 @@ +bump: + file: 'lib/spree_gateway/version.rb' \ No newline at end of file diff --git a/lib/spree_gateway/version.rb b/lib/spree_gateway/version.rb index 6109e013..f9f82143 100644 --- a/lib/spree_gateway/version.rb +++ b/lib/spree_gateway/version.rb @@ -1,5 +1,7 @@ module SpreeGateway - def self.version - '3.10.0' + VERSION = '3.10'.freeze + + def gem_version + Gem::Version.new(VERSION) end end diff --git a/spree_gateway.gemspec b/spree_gateway.gemspec index 4dcab1ae..c05732b0 100644 --- a/spree_gateway.gemspec +++ b/spree_gateway.gemspec @@ -7,7 +7,7 @@ require 'spree_gateway/version' Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.name = 'spree_gateway' - s.version = SpreeGateway.version + s.version = SpreeGateway::VERSION s.summary = 'Collection of Payment Gateways for Spree Commerce such as Stripe, Braintree, etc.' s.description = s.summary