summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--sample/biorhythm.rb2
-rw-r--r--sample/cal.rb2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index bb08d23d84..9a9641e0b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon May 5 22:57:07 2003 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * sample/cal.rb: use values_at instead of select.
+
+ * sample/biorhythm.rb: ditto.
+
Mon May 5 18:59:45 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* sample/test.rb: substitute 'select' with 'values_at'.
diff --git a/sample/biorhythm.rb b/sample/biorhythm.rb
index 74e615a289..c7e26c4fff 100644
--- a/sample/biorhythm.rb
+++ b/sample/biorhythm.rb
@@ -59,7 +59,7 @@ def getPosition(z)
end
def parsedate(s)
- ParseDate::parsedate(s).select(0, 1, 2)
+ ParseDate::parsedate(s).values_at(0, 1, 2)
end
def name_of_week(date)
diff --git a/sample/cal.rb b/sample/cal.rb
index 0b2d9216ac..e8452349dd 100644
--- a/sample/cal.rb
+++ b/sample/cal.rb
@@ -84,7 +84,7 @@ end
usage unless getopts('jmty', "c:#{$cc}")
-y, m = ARGV.select(1, 0).compact.collect{|x| x.to_i}
+y, m = ARGV.values_at(1, 0).compact.collect{|x| x.to_i}
$OPT_y ||= (y and not m)
to = Date.today