mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/{cgi-lib,getopts,importenv}.rb: check caller[0] because when
required by -r option it's nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d530436d0c
commit
b0c9219402
4 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Jun 25 18:54:54 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/{cgi-lib,getopts,importenv}.rb: check caller[0] because when
|
||||||
|
required by -r option it's nil.
|
||||||
|
|
||||||
Wed Jun 25 15:28:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Jun 25 15:28:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* array.c (rb_ary_fill): not depend on unspecified behavior at integer
|
* array.c (rb_ary_fill): not depend on unspecified behavior at integer
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: cgi-lib is deprecated after Ruby 1.8.1; use cgi instead"
|
warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')+':' if caller[0]} cgi-lib is deprecated after Ruby 1.8.1; use cgi instead"
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# rewritten by Akinori MUSHA <knu@ruby-lang.org>
|
# 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] and $VERBOSE
|
warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')+':' if caller[0]} getopts is deprecated after Ruby 1.8.1; use optparse instead" if caller[0] and $VERBOSE
|
||||||
|
|
||||||
$RCS_ID=%q$Header$
|
$RCS_ID=%q$Header$
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# $USER = "matz"
|
# $USER = "matz"
|
||||||
# p ENV["USER"]
|
# p ENV["USER"]
|
||||||
|
|
||||||
warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: importenv is deprecated after Ruby 1.8.1 (no replacement)"
|
warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')+':' if caller[0]} importenv is deprecated after Ruby 1.8.1 (no replacement)"
|
||||||
|
|
||||||
for k,v in ENV
|
for k,v in ENV
|
||||||
next unless /^[a-zA-Z][_a-zA-Z0-9]*/ =~ k
|
next unless /^[a-zA-Z][_a-zA-Z0-9]*/ =~ k
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue