summaryrefslogtreecommitdiffstats
path: root/lib/uri/common.rb
Commit message (Collapse)AuthorAgeFilesLines
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-061-27/+27
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (URI::Parser#escape): escaped string is asciinobu2009-03-021-2/+2
| | | | | | | | | | only. * lib/uri/common.rb (URI::Parser#unescape): converts bytewise. [ruby-dev:38005], [ruby-dev:38110] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (unescape): skip '%' to make String#hex workmame2008-09-181-1/+1
| | | | | | | correctly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (URI::Parser): new class.akira2008-09-101-207/+323
| | | | | | | | | | * lib/uri/mailto.rb, lib/uri/generic.rb: follow the above change. * test/uri/test_parser.rb: added tests for URI::Parser. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/lib/json/pure/generator.rb,naruse2008-02-121-1/+2
| | | | | | | | | | | | | | | ext/json/lib/json/pure/parser.rb, ext/openssl/lib/openssl/x509.rb, ext/win32ole/sample/olegen.rb, lib/date/format.rb, lib/irb/context.rb, lib/irb/workspace.rb, lib/net/http.rb, lib/net/imap.rb, lib/rdoc/generator.rb, lib/rdoc/markup/to_html.rb, lib/rdoc/markup/to_latex.rb, lib/rdoc/parsers/parse_c.rb, lib/rdoc/ri/formatter.rb, lib/rexml/parsers/baseparser.rb, lib/rexml/quickpath.rb, lib/rexml/text.rb, lib/rss/parser.rb, lib/uri/common.rb, lib/uri/generic.rb, lib/webrick/httpresponse.rb, lib/webrick/httpservlet/filehandler.rb, lib/yaml/baseemitter.rb, lib/yaml/encoding.rb: performance tuning arround String#gsub. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix Regexp warnings in lib/uri. Patch #16524 by Kornelius Kalnbach.drbrain2007-12-241-18/+17
| | | | | | | [ruby-core:14302] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (URI::REGEXP::PATTERN): typo in REG_NAMEmatz2007-12-101-1/+1
| | | | | | | regular expression. a patch from Ueda Satoshi <s-ueda AT livedoor.jp>. [ruby-dev:32514] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (escape): regard second argument as a character set. ↵aamine2005-11-131-1/+5
| | | | | | [ruby-dev:27692] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb, lib/uri/generic.rb: fixed typo in documents andakira2005-06-241-8/+8
| | | | | | | replaced some existent domain name with "example.com". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed typo in the example of URI.extract.akira2005-06-231-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (PORT): typo fix. fiex: [ruby-core:04256]eban2005-01-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/ldap.rb: method hierarchical? should be in URI::LDAP.akira2004-07-171-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (Kernel#URI): new global method for parsing URIs.akr2004-07-051-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri.rb: Documented (thanks Dmitry V. Sabanin).gsinclair2004-03-241-126/+281
| | | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@6015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (URI::REGEXP::PATTERN::HOSTPORT): (?:#{PORT})akira2004-03-081-1/+1
| | | | | | | -> (?::#{PORT}). [ruby-dev:23170] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb: new method URI.regexp. [ruby-dev:22121]aamine2003-12-081-17/+35
| | | | | | | * test/uri/test_common.rb: add test for URI.regexp. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb, ext/extmk.rb, lib/benchmark.rb, lib/cgi.rb,akr2003-03-291-4/+4
| | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@3634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb: `[', `]', `-' in chracterakr2003-03-221-1/+1
| | | | | | | class in regexp to avoid warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date/format.rb, lib/uri/common.rb: `[', `]', `-' in chracterakr2003-03-211-3/+3
| | | | | | | class in regexp to avoid warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed a bug of URI::extract. URI::extract should return ["mailto:xxx"] ↵akira2002-12-121-9/+9
| | | | | | instead of ["mailtto:"] for "foo bar <mailto:xxx>". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* URI::extract extracts only URIs of specified schemes when schemes are specified.akira2002-11-191-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* updated uri.rb and uri/*.rb to uri-0.9.7akira2002-10-041-26/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merged differences between uri-0.9.6 and uri-0.9.7akira2002-06-121-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* uri-0.9.5akira2002-02-071-0/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added uri library (uri-0.9.4)akira2002-01-101-0/+419
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e