mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/http.rb (to_ary): print more friendly warning message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a74dd747e3
commit
39a97bf003
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Nov 19 14:45:18 2003 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/http.rb (to_ary): print more friendly warning message.
|
||||
|
||||
Wed Nov 19 14:32:08 2003 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/fileutils.rb (fu_same?): add djgpp and wince.
|
||||
|
|
|
@ -1618,7 +1618,7 @@ module Net # :nodoc:
|
|||
# response, body = Net::HTTP.get(....)
|
||||
#
|
||||
def to_ary
|
||||
warn "net/http: warning: old style assignment found at #{caller(1)[0]}" if $VERBOSE
|
||||
warn "net/http.rb: warning: Net::HTTP v1.1 style assignment found at #{caller(1)[0]}; use `response = http.get(...)' instead." if $VERBOSE
|
||||
[self, body()]
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue