From deeaf3553668bb334f4ec11083be47f3013028ea Mon Sep 17 00:00:00 2001 From: Damian Legawiec Date: Tue, 30 Apr 2024 12:17:14 +0200 Subject: [PATCH] add gem-release --- .gem-release.yml | 2 ++ lib/spree_gateway/version.rb | 6 ++++-- spree_gateway.gemspec | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .gem-release.yml 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