mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/uri/generic.rb, lib/uri/ldap.rb, lib/uri/mailto.ldap: all foo=()
returns arguments passed by caller. * lib/uri/generic.rb (Generic#to_str, Generic#to_s): removed to_str. Suggested by Tanaka Akira <akr@m17n.org> at [ruby-dev:19475]. * lib/uri/generic.rb (Generic#==): should not generate an URI object from argument. Suggested by Tanaka Akira <akr@m17n.org> at [ruby-dev:19475]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
246800d42b
commit
bfa0275833
6 changed files with 33 additions and 10 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
||||||
|
Fri Feb 14 14:25:24 2003 akira yamada <akira@arika.org>
|
||||||
|
|
||||||
|
* lib/uri/generic.rb, lib/uri/ldap.rb, lib/uri/mailto.ldap: all foo=()
|
||||||
|
returns arguments passed by caller.
|
||||||
|
|
||||||
|
* lib/uri/generic.rb (Generic#to_str, Generic#to_s): removed to_str.
|
||||||
|
Suggested by Tanaka Akira <akr@m17n.org> at [ruby-dev:19475].
|
||||||
|
|
||||||
|
* lib/uri/generic.rb (Generic#==): should not generate an URI object
|
||||||
|
from argument. Suggested by Tanaka Akira <akr@m17n.org> at
|
||||||
|
[ruby-dev:19475].
|
||||||
|
|
||||||
Thu Feb 13 11:54:50 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
Thu Feb 13 11:54:50 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
* ruby.c (ruby_init_loadpath): ensures buffer terminated
|
* ruby.c (ruby_init_loadpath): ensures buffer terminated
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
=end
|
=end
|
||||||
|
|
||||||
module URI
|
module URI
|
||||||
VERSION_CODE = '000909'.freeze
|
VERSION_CODE = '000910'.freeze
|
||||||
VERSION = VERSION_CODE.scan(/../).collect{|n| n.to_i}.join('.').freeze
|
VERSION = VERSION_CODE.scan(/../).collect{|n| n.to_i}.join('.').freeze
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -116,6 +116,7 @@ module URI
|
||||||
def typecode=(typecode)
|
def typecode=(typecode)
|
||||||
check_typecode(typecode)
|
check_typecode(typecode)
|
||||||
set_typecode(typecode)
|
set_typecode(typecode)
|
||||||
|
typecode
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
|
@ -243,6 +243,7 @@ Object
|
||||||
def scheme=(v)
|
def scheme=(v)
|
||||||
check_scheme(v)
|
check_scheme(v)
|
||||||
set_scheme(v)
|
set_scheme(v)
|
||||||
|
v
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -315,16 +316,19 @@ Object
|
||||||
end
|
end
|
||||||
check_userinfo(*userinfo)
|
check_userinfo(*userinfo)
|
||||||
set_userinfo(*userinfo)
|
set_userinfo(*userinfo)
|
||||||
|
userinfo
|
||||||
end
|
end
|
||||||
|
|
||||||
def user=(user)
|
def user=(user)
|
||||||
check_user(user)
|
check_user(user)
|
||||||
set_user(user)
|
set_user(user)
|
||||||
|
user
|
||||||
end
|
end
|
||||||
|
|
||||||
def password=(password)
|
def password=(password)
|
||||||
check_password(password)
|
check_password(password)
|
||||||
set_password(password)
|
set_password(password)
|
||||||
|
password
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_userinfo(user, password = nil)
|
def set_userinfo(user, password = nil)
|
||||||
|
@ -420,6 +424,7 @@ Object
|
||||||
def host=(v)
|
def host=(v)
|
||||||
check_host(v)
|
check_host(v)
|
||||||
set_host(v)
|
set_host(v)
|
||||||
|
v
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -463,6 +468,7 @@ Object
|
||||||
def port=(v)
|
def port=(v)
|
||||||
check_port(v)
|
check_port(v)
|
||||||
set_port(v)
|
set_port(v)
|
||||||
|
port
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -502,6 +508,7 @@ Object
|
||||||
def registry=(v)
|
def registry=(v)
|
||||||
check_registry(v)
|
check_registry(v)
|
||||||
set_registry(v)
|
set_registry(v)
|
||||||
|
v
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -548,6 +555,7 @@ Object
|
||||||
def path=(v)
|
def path=(v)
|
||||||
check_path(v)
|
check_path(v)
|
||||||
set_path(v)
|
set_path(v)
|
||||||
|
v
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -589,6 +597,7 @@ Object
|
||||||
def query=(v)
|
def query=(v)
|
||||||
check_query(v)
|
check_query(v)
|
||||||
set_query(v)
|
set_query(v)
|
||||||
|
v
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -628,6 +637,7 @@ Object
|
||||||
def opaque=(v)
|
def opaque=(v)
|
||||||
check_opaque(v)
|
check_opaque(v)
|
||||||
set_opaque(v)
|
set_opaque(v)
|
||||||
|
v
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -661,6 +671,7 @@ Object
|
||||||
def fragment=(v)
|
def fragment=(v)
|
||||||
check_fragment(v)
|
check_fragment(v)
|
||||||
set_fragment(v)
|
set_fragment(v)
|
||||||
|
v
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -1030,7 +1041,7 @@ Object
|
||||||
end
|
end
|
||||||
private :path_query
|
private :path_query
|
||||||
|
|
||||||
def to_str
|
def to_s
|
||||||
str = ''
|
str = ''
|
||||||
if @scheme
|
if @scheme
|
||||||
str << @scheme
|
str << @scheme
|
||||||
|
@ -1071,20 +1082,12 @@ Object
|
||||||
str
|
str
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
|
||||||
to_str
|
|
||||||
end
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
--- URI::Generic#==(oth)
|
--- URI::Generic#==(oth)
|
||||||
|
|
||||||
=end
|
=end
|
||||||
def ==(oth)
|
def ==(oth)
|
||||||
if oth.kind_of?(String)
|
|
||||||
oth = URI.parse(oth)
|
|
||||||
end
|
|
||||||
|
|
||||||
if self.class == oth.class
|
if self.class == oth.class
|
||||||
self.normalize.component_ary == oth.normalize.component_ary
|
self.normalize.component_ary == oth.normalize.component_ary
|
||||||
else
|
else
|
||||||
|
|
|
@ -140,6 +140,7 @@ URI::LDAP is copyrighted free software by Takaaki Tateishi and akira yamada.
|
||||||
|
|
||||||
def dn=(val)
|
def dn=(val)
|
||||||
set_dn(val)
|
set_dn(val)
|
||||||
|
val
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -163,6 +164,7 @@ URI::LDAP is copyrighted free software by Takaaki Tateishi and akira yamada.
|
||||||
|
|
||||||
def attributes=(val)
|
def attributes=(val)
|
||||||
set_attributes(val)
|
set_attributes(val)
|
||||||
|
val
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -186,6 +188,7 @@ URI::LDAP is copyrighted free software by Takaaki Tateishi and akira yamada.
|
||||||
|
|
||||||
def scope=(val)
|
def scope=(val)
|
||||||
set_scope(val)
|
set_scope(val)
|
||||||
|
val
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -209,6 +212,7 @@ URI::LDAP is copyrighted free software by Takaaki Tateishi and akira yamada.
|
||||||
|
|
||||||
def filter=(val)
|
def filter=(val)
|
||||||
set_filter(val)
|
set_filter(val)
|
||||||
|
val
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -232,6 +236,7 @@ URI::LDAP is copyrighted free software by Takaaki Tateishi and akira yamada.
|
||||||
|
|
||||||
def extensions=(val)
|
def extensions=(val)
|
||||||
set_extensions(val)
|
set_extensions(val)
|
||||||
|
val
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -172,6 +172,7 @@ module URI
|
||||||
def to=(v)
|
def to=(v)
|
||||||
check_to(v)
|
check_to(v)
|
||||||
set_to(v)
|
set_to(v)
|
||||||
|
v
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -213,6 +214,7 @@ module URI
|
||||||
def headers=(v)
|
def headers=(v)
|
||||||
check_headers(v)
|
check_headers(v)
|
||||||
set_headers(v)
|
set_headers(v)
|
||||||
|
v
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_str
|
def to_str
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue