mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
merge revision(s) 39725: [Backport #8054]
* lib/resolv-replace.rb (TCPSocket#initialize): resolve the 3rd argument only if non-nil value is given. [ruby-dev:47150] [ruby-trunk - Bug #8054] reported and analyzed by mrkn. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d393aa0893
commit
d825fc8de6
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Thu Apr 4 02:27:12 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* lib/resolv-replace.rb (TCPSocket#initialize): resolve the 3rd
|
||||||
|
argument only if non-nil value is given.
|
||||||
|
[ruby-dev:47150] [ruby-trunk - Bug #8054] reported and analyzed by
|
||||||
|
mrkn.
|
||||||
|
|
||||||
Thu Apr 4 02:24:59 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
Thu Apr 4 02:24:59 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* Merge Onigmo d4bad41e16e3eccd97ccce6f1f96712e557c4518.
|
* Merge Onigmo d4bad41e16e3eccd97ccce6f1f96712e557c4518.
|
||||||
|
|
|
@ -19,7 +19,7 @@ class TCPSocket < IPSocket
|
||||||
alias original_resolv_initialize initialize
|
alias original_resolv_initialize initialize
|
||||||
# :startdoc:
|
# :startdoc:
|
||||||
def initialize(host, serv, *rest)
|
def initialize(host, serv, *rest)
|
||||||
rest[0] = IPSocket.getaddress(rest[0]) unless rest.empty?
|
rest[0] = IPSocket.getaddress(rest[0]) if rest[0]
|
||||||
original_resolv_initialize(IPSocket.getaddress(host), serv, *rest)
|
original_resolv_initialize(IPSocket.getaddress(host), serv, *rest)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#define RUBY_VERSION "2.0.0"
|
#define RUBY_VERSION "2.0.0"
|
||||||
#define RUBY_RELEASE_DATE "2013-04-04"
|
#define RUBY_RELEASE_DATE "2013-04-04"
|
||||||
#define RUBY_PATCHLEVEL 104
|
#define RUBY_PATCHLEVEL 105
|
||||||
|
|
||||||
#define RUBY_RELEASE_YEAR 2013
|
#define RUBY_RELEASE_YEAR 2013
|
||||||
#define RUBY_RELEASE_MONTH 4
|
#define RUBY_RELEASE_MONTH 4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue