Граф коммитов

36 Коммитов

Автор SHA1 Сообщение Дата
aamine 31f8181095 * lib/uri/common.rb (escape): regard second argument as a character set. [ruby-dev:27692]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-13 02:02:24 +00:00
ryan 51c919b387 Added .document file for lib/uri.
Added mathew's patches to test_ftp.rb
Fixed a minor typo in getoptlong.rb


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-07 16:07:43 +00:00
ryan 030e887fed Lovely RDOC patches from mathew (metaATpoboxDOTcom) on URI/* and getoptlong.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-08-24 05:08:00 +00:00
akira b1020bf03e * lib/uri/common.rb, lib/uri/generic.rb: fixed typo in documents and
replaced some existent domain name with "example.com".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-24 04:18:16 +00:00
akira 7e962a7379 fixed typo in the example of URI.extract.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-06-23 08:22:44 +00:00
akira c36a0f0ec0 * lib/uri/generic.rb (split_userinfo): should split ":pass" into ""
and "pass".  [ruby-dev:25667]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-23 06:08:29 +00:00
eban e174328097 * lib/uri/common.rb (PORT): typo fix. fiex: [ruby-core:04256]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-16 15:12:02 +00:00
akira 02771a7aed * lib/uri/ldap.rb: method hierarchical? should be in URI::LDAP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-17 13:14:35 +00:00
akira f461a6b8e5 * lib/uri/generic.rb (URI::Generic#merge_path):
"URI('http://www.example.com/foo/..') + './'" should return
  "URI('http://www.example.com/')".  [ruby-list:39838]
  "URI('http://www.example.com/') + './foo/bar/..'" should return
  "URI('http://www.example.com/foo/')".  [ruby-list:39844]

* test/uri/test_generic.rb (TestGeneric#test_merge): added tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-13 10:50:26 +00:00
akr b750470064 * lib/uri/common.rb (Kernel#URI): new global method for parsing URIs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-05 14:06:10 +00:00
akira f2b75020ba * lib/uri/generic.rb (URI::Generic::merge,
URI::Generic::route_from): accepts non-hierarchical URI.
  [ruby-dev:23631]

* test/uri/test_generic.rb (TestGeneric::test_route,
  TestGeneric::test_merge): added tests for above changes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-09 07:15:56 +00:00
gsinclair 42ad5216ec * lib/uri.rb: Documented (thanks Dmitry V. Sabanin).
* lib/uri/common.rb: Ditto.
 * lib/uri/ftp.rb: Ditto.
 * lib/uri/generic.rb: Ditto.
 * lib/uri/http.rb: Ditto.
 * lib/uri/https.rb: Ditto.
 * lib/uri/ldap.rb: Ditto.
 * lib/uri/mailto.rb: Ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-24 11:53:31 +00:00
akira 80a0920f5f * lib/uri/common.rb (URI::REGEXP::PATTERN::HOSTPORT): (?:#{PORT})
-> (?::#{PORT}).  [ruby-dev:23170]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-08 10:36:50 +00:00
akira 329b4782ff * lib/uri/mailto.rb (URI::MailTo::to_s): should include fragment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-22 04:06:09 +00:00
akira 4bb0fd231e * lib/uri/generic.rb (URI::Generic::check_userinfo,
URI::Generic::check_user, URI::Generic::check_password): tests
  conflicts/depends with other components closely.

* test/uri/test_generic.rb (TestGeneric::test_set_component):
  added tets.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-23 05:17:00 +00:00
akira 6bcf78e40d * lib/uri/generic.rb (URI::Generic::check_opaque): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 14:01:07 +00:00
akira 88695fc0ea * lib/uri/generic.rb (URI::Generic#route_from): accepts urls which
has no host-part.

* test/uri/test_generic.rb (TestGeneric::test_route): added a test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-22 11:49:20 +00:00
akira 8edab1a9b4 make case insensitive for host-part.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-09 11:07:36 +00:00
aamine 3356550581 * lib/uri/common.rb: new method URI.regexp. [ruby-dev:22121]
* test/uri/test_common.rb: add test for URI.regexp.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-08 04:03:11 +00:00
akira d6f70951db * lib/uri/ftp.rb, lib/uri/mailto.rb: renamed to #to_s from #to_str.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-04 03:49:01 +00:00
akr 0977fe1705 * instruby.rb, ext/extmk.rb, lib/benchmark.rb, lib/cgi.rb,
lib/debug.rb, lib/getoptlong.rb, lib/optparse.rb, lib/time.rb,
  lib/date/format.rb, lib/irb/ruby-lex.rb lib/uri/common.rb: revert
  escape for `-' in character class.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-29 06:39:50 +00:00
akr 9b3344c94d * lib/uri/common.rb: `[', `]', `-' in chracter
class in regexp to avoid warning.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-22 03:46:16 +00:00
akr cdfb48ea7d * lib/date/format.rb, lib/uri/common.rb: `[', `]', `-' in chracter
class in regexp to avoid warning.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-21 17:00:59 +00:00
akira bfa0275833 * 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
2003-02-14 05:32:48 +00:00
akira 77d007dc05 * removed URI::Generic#to_ary.
* URI::Generic included URI.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-16 00:52:32 +00:00
akira d1f015f92e fixed a bug of URI::extract. URI::extract should return ["mailto:xxx"] instead of ["mailtto:"] for "foo bar <mailto:xxx>".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-12 06:42:42 +00:00
akira 710e25422b URI::extract extracts only URIs of specified schemes when schemes are specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-11-19 07:45:10 +00:00
matz 54fdacb125 * class.c (rb_define_method): do not set NOEX_CFUNC if klass is
really a module, whose methods must be safe for reciever's type.

* eval.c (rb_eval): nosuper should not be inherited unless the
  overwritten method is an undef placeholder.

* parse.y (primary): allow 'when'-less case statement; persuaded
  by Sean Chittenden.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-11-07 19:18:16 +00:00
akira 76e8a9e828 should raise InvalidComponentError if MAILTO_REGEXP could not match with @opaque.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-20 10:54:19 +00:00
akira 05e476c941 updated uri.rb and uri/*.rb to uri-0.9.7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-04 06:26:45 +00:00
nobu 29cef5f795 use Object#class instead of deprecated Object#type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-02 16:45:35 +00:00
matz 4b9a7eac05 * io.c (appendline): forget to terminate with nul.
* eval.c (ruby_run): should set toplevel visibility again here.

* eval.c (rb_eval): should not rely on ruby_class == rb_cObject
  check.   Besides allow implicit publicity for attribute set
  methods.

* parse.y (primary): need not to check class_nest, just set
  whether method is an attrset or not.

* string.c (rb_str_each_line): p might be at the top of the
  string.

* class.c (rb_make_metaclass): class of metaclass should be
  metaclass of superclass, unless class itself is a metaclass;
  class of metaclass of metaclass should point back to self.
  eh, confusing, isn't it.

* class.c (rb_singleton_class): check if its class is singleton
  AND attached to self.

* eval.c (rb_eval): should define class/module under ruby_cbase.

* eval.c (rb_eval): should set class/module path based on
  ruby_cbase, not ruby_class.

* eval.c (module_setup): use ruby_cbase instead of ruby_class.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-09-25 07:03:05 +00:00
akira b8be8d535a merged differences between uri-0.9.6 and uri-0.9.7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-06-12 09:32:35 +00:00
akira 3916df613e * lib/uri/generic.rb: merge0 shuld return [oth, oth] if oth is absolute URI.
* lib/uri/generic.rb: registry part must not be allowed for any schemes for the Internet. (RFC2396, section 3.2.2 and 3.2.1.)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-26 02:36:05 +00:00
akira 91a3db0afc uri-0.9.5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-02-07 04:51:11 +00:00
akira 8a277783ab added uri library (uri-0.9.4)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-01-10 08:00:51 +00:00