mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_str_cmp_m): should not return false but nil.
fixed: [ruby-dev:25811] * lib/cgi-lib.rb: add deprecation warning. [ruby-dev:25499] getopts.rb, parsearg.rb, importenv.rb as well. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1c536c2a98
commit
cde930a4a4
8 changed files with 22 additions and 4 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,8 @@
|
|||
Mon Mar 7 09:18:42 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_cmp_m): should not return false but nil.
|
||||
fixed: [ruby-dev:25811]
|
||||
|
||||
Mon Mar 7 01:22:14 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/tkutil.c: remove the some codes which depend on the
|
||||
|
@ -47,6 +52,11 @@ Fri Mar 4 19:39:28 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|||
|
||||
* ext/strscan/strscan.c: moved misplaced rdoc.
|
||||
|
||||
Fri Mar 4 15:58:12 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/cgi-lib.rb: add deprecation warning. [ruby-dev:25499]
|
||||
getopts.rb, parsearg.rb, importenv.rb as well.
|
||||
|
||||
Fri Mar 4 11:17:06 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tcltklib/tcltklib.c (ip_rbUpdateCommand): get rid of
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: cgi-lib is deprecated after Ruby 1.8.1; use cgi instead"
|
||||
|
||||
=begin
|
||||
|
||||
= simple CGI support library
|
||||
|
|
|
@ -155,8 +155,8 @@ class CGI
|
|||
#
|
||||
class Session
|
||||
|
||||
#:nodoc:
|
||||
class NoSession < RuntimeError; end
|
||||
class NoSession < RuntimeError #:nodoc:
|
||||
end
|
||||
|
||||
# The id of this session.
|
||||
attr_reader :session_id, :new_session
|
||||
|
|
|
@ -1258,7 +1258,7 @@ class DateTime < Date
|
|||
new_with_hash(elem, sg)
|
||||
end
|
||||
|
||||
class << self; undef_method :today end
|
||||
class << self; undef_method :today end rescue nil
|
||||
|
||||
# Create a new DateTime object representing the current time.
|
||||
#
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
# rewritten by Akinori MUSHA <knu@ruby-lang.org>
|
||||
#
|
||||
|
||||
warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: getopts is deprecated after Ruby 1.8.1; use optparse instead" if caller[0]
|
||||
|
||||
$RCS_ID=%q$Header$
|
||||
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
# $USER = "matz"
|
||||
# p ENV["USER"]
|
||||
|
||||
warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: importenv is deprecated after Ruby 1.8.1 (no replacement)"
|
||||
|
||||
for k,v in ENV
|
||||
next unless /^[a-zA-Z][_a-zA-Z0-9]*/ =~ k
|
||||
eval <<EOS
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
#
|
||||
#
|
||||
|
||||
warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: parsearg is deprecated after Ruby 1.8.1; use optparse instead"
|
||||
|
||||
$RCS_ID=%q$Header$
|
||||
|
||||
require "getopts"
|
||||
|
|
2
string.c
2
string.c
|
@ -1003,7 +1003,7 @@ rb_str_cmp_m(str1, str2)
|
|||
|
||||
if (TYPE(str2) != T_STRING) {
|
||||
if (!rb_respond_to(str2, rb_intern("to_str"))) {
|
||||
return Qfalse;
|
||||
return Qnil;
|
||||
}
|
||||
else if (!rb_respond_to(str2, rb_intern("<=>"))) {
|
||||
return Qnil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue