mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/resolv.rb (Resolv::DNS::Config.parse_resolv_conf):
parse options line for ndots option. (Resolv::Hosts#lazy_initialize): return self. (Resolv::DNS#lazy_initialize): ditto. (Resolv::DNS::Config#lazy_initialize): ditto. Suggested by Sam Roberts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ba492a05a5
commit
68f5e2361a
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,12 @@
|
|||
Fri Jan 28 17:16:55 2005 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* lib/resolv.rb (Resolv::DNS::Config.parse_resolv_conf):
|
||||
parse options line for ndots option.
|
||||
(Resolv::Hosts#lazy_initialize): return self.
|
||||
(Resolv::DNS#lazy_initialize): ditto.
|
||||
(Resolv::DNS::Config#lazy_initialize): ditto.
|
||||
Suggested by Sam Roberts.
|
||||
|
||||
Thu Jan 27 17:15:03 2005 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/tk/extconf.rb: support new tk scheme on bccwin32.
|
||||
|
|
|
@ -319,6 +319,7 @@ class Resolv
|
|||
@initialized = true
|
||||
end
|
||||
}
|
||||
self
|
||||
end
|
||||
|
||||
def getaddress(name)
|
||||
|
@ -397,6 +398,7 @@ class Resolv
|
|||
@initialized = true
|
||||
end
|
||||
}
|
||||
self
|
||||
end
|
||||
|
||||
def close
|
||||
|
@ -739,6 +741,13 @@ class Resolv
|
|||
when 'search'
|
||||
next if args.empty?
|
||||
search = args
|
||||
when 'options'
|
||||
args.each {|arg|
|
||||
case arg
|
||||
when /\Andots:(\d+)\z/
|
||||
ndots = $1.to_i
|
||||
end
|
||||
}
|
||||
end
|
||||
}
|
||||
}
|
||||
|
@ -814,6 +823,7 @@ class Resolv
|
|||
@initialized = true
|
||||
end
|
||||
}
|
||||
self
|
||||
end
|
||||
|
||||
def single?
|
||||
|
|
Loading…
Reference in a new issue