From c24c4ffcd57daf36f9e04cb51ef279e069a19ae3 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Wed, 29 Apr 2009 19:23:08 -0700 Subject: [PATCH] Looks like we don't actually have Fixnum#odd?. --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index ae3ddf6e59..56d269450a 100644 --- a/Rakefile +++ b/Rakefile @@ -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}