Skip to content

Commit

Permalink
- Fix version related error
Browse files Browse the repository at this point in the history
  • Loading branch information
banjoko01 committed Jun 6, 2024
1 parent 9ae0039 commit 98daab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
1 change: 1 addition & 0 deletions ZUORA_VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.2-sage
15 changes: 1 addition & 14 deletions zuora.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,7 @@

lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

unless ENV['CI_BRANCH'].nil?
puts "CI Branch - #{ENV['CI_BRANCH']}"
version = ENV['CI_BRANCH']
end

if /^v/.match?(version.downcase)
version = version.dup
version.slice!(0)
elsif /^build/.match?(version.downcase)
version = "0.0.0.#{ENV['CI_BRANCH']}"
else
version = '0.0.0'
end
version = File.read(File.expand_path('ZUORA_VERSION', __dir__)).strip

Gem::Specification.new do |s|
s.name = 'zuora'
Expand Down

0 comments on commit 98daab9

Please sign in to comment.