0.upto(4), not 5)

This commit is contained in:
Javan Makhmali 2009-07-13 22:23:21 -04:00
parent e2c30ca299
commit 5ad11bd642
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ module Whenever
# #
def combine(entries) def combine(entries)
entries.map! { |entry| entry.split(/ +/,6 )} entries.map! { |entry| entry.split(/ +/,6 )}
0.upto(5) do |f| 0.upto(4) do |f|
(entries.length-1).downto(1) do |i| (entries.length-1).downto(1) do |i|
next if entries[i][f] == '*' next if entries[i][f] == '*'
comparison = entries[i][0...f] + entries[i][f+1..-1] comparison = entries[i][0...f] + entries[i][f+1..-1]

View File

@ -2,7 +2,7 @@ module Whenever
module VERSION #:nodoc: module VERSION #:nodoc:
MAJOR = 0 MAJOR = 0
MINOR = 3 MINOR = 3
TINY = 1 TINY = 2
STRING = [MAJOR, MINOR, TINY].join('.') STRING = [MAJOR, MINOR, TINY].join('.')
end end