Skip to content

Commit

Permalink
Change version
Browse files Browse the repository at this point in the history
  • Loading branch information
VAILLANT Jeremy committed Sep 23, 2021
1 parent 564df94 commit 934e90c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/validates_timeliness/mongoid/info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module ValidatesTimeliness
module Mongoid
VERSION = '5.0.0'
VERSION = '5.0.1'

# Name to gem
GEM_NAME = 'validates_timeliness-mongoid'
Expand Down
8 changes: 5 additions & 3 deletions validates_timeliness-mongoid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'validates_timeliness/mongoid/info'

Gem::Specification.new do |spec|
spec.version = if ENV['GITHUB_REF'].eql?('refs/heads/develop')
"#{ValidatesTimeliness::Mongoid::VERSION}.pre.#{ENV['GITHUB_RUN_ID']}"
version = ValidatesTimeliness::Mongoid::VERSION
spec.version = if ENV.key?('GITHUB_RUN_ID') &&
!ENV['GITHUB_REF'].eql?('refs/heads/master')
"#{version}.pre.#{ENV['GITHUB_RUN_ID']}"
else
ValidatesTimeliness::Mongoid::VERSION
version
end

spec.name = ValidatesTimeliness::Mongoid::GEM_NAME
Expand Down

0 comments on commit 934e90c

Please sign in to comment.