From dc9cd6a8c22ad04baa7498fd0cbc5d519ed73be0 Mon Sep 17 00:00:00 2001 From: tadf Date: Sat, 18 May 2002 12:41:51 +0000 Subject: updated to the new version (based on date2 3.2.1). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/cal.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sample/cal.rb') diff --git a/sample/cal.rb b/sample/cal.rb index 4e0d416f06..92f43e2a72 100644 --- a/sample/cal.rb +++ b/sample/cal.rb @@ -1,9 +1,9 @@ #! /usr/bin/env ruby -# cal.rb: Written by Tadayoshi Funaba 1998-2000 -# $Id: cal.rb,v 1.11 2000-07-16 10:28:50+09 tadf Exp $ +# cal.rb: Written by Tadayoshi Funaba 1998-2002 +# $Id: cal.rb,v 2.3 2002-05-14 07:43:39+09 tadf Exp $ -require 'date2' +require 'date' require 'getopts' $tab = @@ -84,7 +84,7 @@ end usage unless getopts('jmty', "c:#{$cc}") -y, m = ARGV.indexes(1, 0).compact.collect{|x| x.to_i} +y, m = ARGV.select(1, 0).compact.collect{|x| x.to_i} $OPT_y ||= (y and not m) to = Date.today -- cgit v1.2.3