Skip to content

Commit

Permalink
Looks like we don't actually have Fixnum#odd?.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Apr 30, 2009
1 parent 6df98cd commit c24c4ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rakefile
Expand Up @@ -88,7 +88,9 @@ task :release_edge do

# Get the current master branch version
version = File.read('VERSION').strip.split('.').map {|n| n.to_i}
raise "#{version.join('.')} is not a development version" unless version[1].odd? && version[2] == 0
unless version[1] % 2 == 1 && version[2] == 0
raise "#{version.join('.')} is not a development version"
end

# Bump the edge gem version
edge_version = File.read('EDGE_GEM_VERSION').strip.split('.').map {|n| n.to_i}
Expand Down

0 comments on commit c24c4ff

Please sign in to comment.