* lib/webrick/httpservlet/cgihandler.rb (WEBrick::HTTPServlet::CGIHandler):
qualify the access for Config constant. [ruby-dev:28338] * lib/resolv.rb (Resolv::DNS::Resource::IN::A): qualify ClassValue. [ruby-dev:28338] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a6c936c15b
commit
f816b8b167
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
|||||||
|
Mon Feb 20 09:13:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/webrick/httpservlet/cgihandler.rb (WEBrick::HTTPServlet::CGIHandler):
|
||||||
|
qualify the access for Config constant. [ruby-dev:28338]
|
||||||
|
|
||||||
|
* lib/resolv.rb (Resolv::DNS::Resource::IN::A): qualify
|
||||||
|
ClassValue. [ruby-dev:28338]
|
||||||
|
|
||||||
|
Mon Feb 20 01:05:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/rational.rb (Integer::gcd): replaced by gcd4 in
|
||||||
|
[ruby-core:07390]. [ruby-core:07377]
|
||||||
|
|
||||||
Mon Feb 20 00:57:02 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
Mon Feb 20 00:57:02 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
* ext/openssl/ossl.h (OSSL_Debug): should not use __func__.
|
* ext/openssl/ossl.h (OSSL_Debug): should not use __func__.
|
||||||
|
@ -435,42 +435,16 @@ class Integer
|
|||||||
# The result is positive, no matter the sign of the arguments.
|
# The result is positive, no matter the sign of the arguments.
|
||||||
#
|
#
|
||||||
def gcd(n)
|
def gcd(n)
|
||||||
m = self.abs
|
min = self.abs
|
||||||
n = n.abs
|
max = other.abs
|
||||||
|
while min > 0
|
||||||
return n if m == 0
|
tmp = min
|
||||||
return m if n == 0
|
min = max % min
|
||||||
|
max = tmp
|
||||||
b = 0
|
|
||||||
while n[0] == 0 && m[0] == 0
|
|
||||||
b += 1; n >>= 1; m >>= 1
|
|
||||||
end
|
end
|
||||||
m >>= 1 while m[0] == 0
|
max
|
||||||
n >>= 1 while n[0] == 0
|
|
||||||
while m != n
|
|
||||||
m, n = n, m if n > m
|
|
||||||
m -= n; m >>= 1 while m[0] == 0
|
|
||||||
end
|
|
||||||
m << b
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def gcd2(int)
|
|
||||||
a = self.abs
|
|
||||||
b = int.abs
|
|
||||||
|
|
||||||
a, b = b, a if a < b
|
|
||||||
|
|
||||||
while b != 0
|
|
||||||
void, a = a.divmod(b)
|
|
||||||
a, b = b, a
|
|
||||||
end
|
|
||||||
return a
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
# Returns the <em>lowest common multiple</em> (LCM) of the two arguments
|
|
||||||
# (+self+ and +other+).
|
|
||||||
#
|
|
||||||
# Examples:
|
# Examples:
|
||||||
# 6.lcm 7 # -> 42
|
# 6.lcm 7 # -> 42
|
||||||
# 6.lcm 9 # -> 18
|
# 6.lcm 9 # -> 18
|
||||||
|
@ -1810,8 +1810,9 @@ class Resolv
|
|||||||
# IPv4 Address resource
|
# IPv4 Address resource
|
||||||
|
|
||||||
class A < Resource
|
class A < Resource
|
||||||
|
TypeValue = 1
|
||||||
ClassHash[[TypeValue = 1, ClassValue = ClassValue]] = self # :nodoc:
|
ClassValue = IN::ClassValue
|
||||||
|
ClassHash[[TypeValue, ClassValue]] = self # :nodoc:
|
||||||
|
|
||||||
##
|
##
|
||||||
# Creates a new A for +address+.
|
# Creates a new A for +address+.
|
||||||
@ -1838,8 +1839,9 @@ class Resolv
|
|||||||
# Well Known Service resource.
|
# Well Known Service resource.
|
||||||
|
|
||||||
class WKS < Resource
|
class WKS < Resource
|
||||||
|
TypeValue = 11
|
||||||
ClassHash[[TypeValue = 11, ClassValue = ClassValue]] = self # :nodoc:
|
ClassValue = IN::ClassValue
|
||||||
|
ClassHash[[TypeValue, ClassValue]] = self # :nodoc:
|
||||||
|
|
||||||
def initialize(address, protocol, bitmap)
|
def initialize(address, protocol, bitmap)
|
||||||
@address = IPv4.create(address)
|
@address = IPv4.create(address)
|
||||||
@ -1885,8 +1887,9 @@ class Resolv
|
|||||||
# An IPv6 address record.
|
# An IPv6 address record.
|
||||||
|
|
||||||
class AAAA < Resource
|
class AAAA < Resource
|
||||||
|
TypeValue = 28
|
||||||
ClassHash[[TypeValue = 28, ClassValue = ClassValue]] = self # :nodoc:
|
ClassValue = IN::ClassValue
|
||||||
|
ClassHash[[TypeValue, ClassValue]] = self # :nodoc:
|
||||||
|
|
||||||
##
|
##
|
||||||
# Creates a new AAAA for +address+.
|
# Creates a new AAAA for +address+.
|
||||||
@ -1916,8 +1919,9 @@ class Resolv
|
|||||||
# available at.
|
# available at.
|
||||||
|
|
||||||
class SRV < Resource
|
class SRV < Resource
|
||||||
|
TypeValue = 33
|
||||||
ClassHash[[TypeValue = 33, ClassValue = ClassValue]] = self # :nodoc:
|
ClassValue = IN::ClassValue
|
||||||
|
ClassHash[[TypeValue, ClassValue]] = self # :nodoc:
|
||||||
|
|
||||||
# Create a SRV resource record.
|
# Create a SRV resource record.
|
||||||
#
|
#
|
||||||
|
@ -20,7 +20,7 @@ module WEBrick
|
|||||||
Ruby = File::join(::Config::CONFIG['bindir'],
|
Ruby = File::join(::Config::CONFIG['bindir'],
|
||||||
::Config::CONFIG['ruby_install_name'])
|
::Config::CONFIG['ruby_install_name'])
|
||||||
Ruby << ::Config::CONFIG['EXEEXT']
|
Ruby << ::Config::CONFIG['EXEEXT']
|
||||||
CGIRunner = "\"#{Ruby}\" \"#{Config::LIBDIR}/httpservlet/cgi_runner.rb\""
|
CGIRunner = "\"#{Ruby}\" \"#{WEBrick::Config::LIBDIR}/httpservlet/cgi_runner.rb\""
|
||||||
|
|
||||||
def initialize(server, name)
|
def initialize(server, name)
|
||||||
super(server, name)
|
super(server, name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user