Skip to content
This repository has been archived by the owner on Dec 17, 2017. It is now read-only.

Commit

Permalink
Correct bump type logic
Browse files Browse the repository at this point in the history
  • Loading branch information
glasnt committed Aug 5, 2014
1 parent 87a930e commit 6295671
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions deploy
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,17 @@ end

def up_version x
m = case x
when /^maj?o?r?$/; [1,0,0]
when /^min?o?r?$/; [0,1,0]
when /^pa?t?c?h?$/; [0,0,1]
when /^maj?o?r?$/; [1,"0","0"]
when /^min?o?r?$/; [0, 1 ,"0"]
when /^pa?t?c?h?$/; [0, 0 , 1 ]
end
gvb = gvb_version
m.each_with_index{|g, i| gvb[i] += g }
m.each_with_index{|g, i|
if g == "0"
gvb[i] = 0
else
gvb[i] += g
end }
show_version gvb
end

Expand Down

0 comments on commit 6295671

Please sign in to comment.