Project

General

Profile

Bug #1790

[patch] fix error message in Addrinfo#family_addrinfo

Added by no6v (Nobuhiro IMAI) about 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-07-19 trunk 24201) [i686-linux]
Backport:
[ruby-dev:38828]

Description

=begin
PDF を見つつ眺めていたら見つけたのでパッチです。

Index: ext/socket/lib/socket.rb
===================================================================
--- ext/socket/lib/socket.rb (revision 24202)
+++ ext/socket/lib/socket.rb (working copy)
@@ -15,7 +15,7 @@ class Addrinfo
if args.empty?
raise ArgumentError, "no address specified"
elsif Addrinfo === args.first

  • raise ArgumentError, "too man argument" if args.length != 1
  • raise ArgumentError, "too many arguments" if args.length != 1 elsif self.ip? raise ArgumentError, "IP address needs host and port but #{args.length} arguments given" if args.length != 2 host, port = args =end

History

#1

Updated by akr (Akira Tanaka) about 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r24207.
=end

Also available in: Atom PDF