ruby-changes:2281
From: ko1@a...
Date: 25 Oct 2007 09:53:47 +0900
Subject: [ruby-changes:2281] akira - Ruby:r13772 (trunk): * lib/uri.rb, lib/uri/ldaps.rb: added LDAPS
akira 2007-10-25 09:53:34 +0900 (Thu, 25 Oct 2007) New Revision: 13772 Added files: trunk/lib/uri/ldaps.rb Modified files: trunk/ChangeLog trunk/lib/uri.rb Log: * lib/uri.rb, lib/uri/ldaps.rb: added LDAPS cheme. [ruby-dev:31896] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/uri.rb?r1=13772&r2=13771 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13772&r2=13771 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/uri/ldaps.rb?revision=13772&view=markup Index: ChangeLog =================================================================== --- ChangeLog (revision 13771) +++ ChangeLog (revision 13772) @@ -1,3 +1,8 @@ +Thu Oct 25 09:49:49 2007 akira yamada <akira@r...> + + * lib/uri.rb, lib/uri/ldaps.rb: added LDAPS + cheme. [ruby-dev:31896] + Wed Oct 25 06:23:14 2007 James Edward Gray II <jeg2@r...> * lib/xmlrpc/parser.rb (XMLRPC::Convert::dateTime): Fixing a bug that Index: lib/uri.rb =================================================================== --- lib/uri.rb (revision 13771) +++ lib/uri.rb (revision 13772) @@ -25,4 +25,5 @@ require 'uri/http' require 'uri/https' require 'uri/ldap' +require 'uri/ldaps' require 'uri/mailto' Index: lib/uri/ldaps.rb =================================================================== --- lib/uri/ldaps.rb (revision 0) +++ lib/uri/ldaps.rb (revision 13772) @@ -0,0 +1,12 @@ +require 'uri/ldap' + +module URI + + # The default port for LDAPS URIs is 636, and the scheme is 'ldaps:' rather + # than 'ldap:'. Other than that, LDAPS URIs are identical to LDAP URIs; + # see URI::LDAP. + class LDAPS < LDAP + DEFAULT_PORT = 636 + end + @@schemes['LDAPS'] = LDAPS +end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml