新井です。

以下の警告が 1.8.1 から出なくなってます。


p({1=>'a', 2=>'b', 3=>'c'}.select(1,2,3))
# => -:1: warning: Hash#select(key..) is deprecated; use Hash#values_at
     ruby 1.8.0 (2003-08-04) [i586-linux]
     ["a", "b", "c"]
# => ruby 1.8.1 (2003-11-01) [i586-linux]
     ["a", "b", "c"]

p "foo" =~ "foo"
# => -:1: warning: string =~ string will be obsolete; use explicit regexp
     ruby 1.8.0 (2003-08-04) [i586-linux]
     0
# => ruby 1.8.1 (2003-11-01) [i586-linux]
     0

$_ = "foo"
p ~"foo"
# => -:2: warning: ~string will be obsolete; use explicit regexp
     ruby 1.8.0 (2003-08-04) [i586-linux]
     0
# => ruby 1.8.1 (2003-11-01) [i586-linux]
     0

--
新井康司 (Koji Arai)