Commit Graph

18 Commits

Author SHA1 Message Date
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