From c1ead61e75ec6cdf63276172370af3497bab5f71 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: http://svn.ruby-lang.org/repos/ruby/trunk@2467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sample/cal.rb | 8 ++++---- sample/goodfriday.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sample') diff --git a/sample/cal.rb b/sample/cal.rb index 4e0d416f0..92f43e2a7 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 diff --git a/sample/goodfriday.rb b/sample/goodfriday.rb index 1c48f55d9..07809cf12 100644 --- a/sample/goodfriday.rb +++ b/sample/goodfriday.rb @@ -3,7 +3,7 @@ # goodfriday.rb: Written by Tadayoshi Funaba 1998, 2000 # $Id: goodfriday.rb,v 1.1.1.1 2000-07-16 10:25:30+09 tadf Exp $ -require 'date2' +require 'date' def easter(y) g = (y % 19) + 1 -- cgit