drbrain
ee13ed7e84
* lib/uri/common.rb: Fix documentation of URI::Parser.new. Patch by
...
Steve Klabnik. [Ruby 1.9 - Bug #5177 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-12 18:41:57 +00:00
naruse
93177c1e5c
Fix r32622.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-22 21:16:50 +00:00
naruse
b5f91deee0
* lib/uri/generic.rb (WFKV_): unroll the loop of regexp.
...
* lib/uri/generic.rb (URI.decode_www_form_component): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-22 12:29:13 +00:00
marcandre
c2dfaa7d40
* lib/uri/common.rb (module): Remove optional parser argument to Kernel#URI
...
[ruby-core:38061]
* lib/uri/generic.rb (module): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-15 21:28:10 +00:00
naruse
a83f125c31
* lib/net/http.rb (URI::HTTP#request_uri): return nil when the uri
...
is path-rootless form. Bug #4759
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-03 00:32:25 +00:00
nobu
d371e3583e
* lib: revert r31635-r31638 and untabify with expand(1).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-19 00:07:25 +00:00
drbrain
7bbf2f3085
* lib: Convert tabs to spaces for ruby files per
...
http://redmine.ruby-lang.org/projects/ruby/wiki/DeveloperHowto#coding-style
Patch by Steve Klabnik [Ruby 1.9 - Bug #4730 ]
Patch by Jason Dew [Ruby 1.9 - Feature #4718 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-18 21:19:18 +00:00
nobu
3a47cf3395
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15 11:55:52 +00:00
drbrain
10219ff621
* lib/uri.rb: Add toplevel documentation. Patch by Vincent Batts.
...
[Ruby 1.9 - Bug #4690 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-13 20:03:21 +00:00
nagachika
58355ea52a
* lib/logger.rb: format comments to keep 80 columns in a line.
...
* lib/uri/common.rb: ditto.
* lib/uri/ftp.rb: ditto.
* lib/uri/ldap.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-13 12:54:57 +00:00
drbrain
e2b3183fc2
* re.c (Init_Regexp): Document option constants. Patch by Vincent
...
Batts. [Ruby 1.9 - Bug #4677 ]
* lib/uri/common.rb (module URI): Documentation for URI. Patch by
Vincent Batts. [Ruby 1.9- Bug #4677 ]
* lib/uri/ftp.rb (module URI): ditto
* lib/uri/generic.rb (module URI): ditto
* lib/uri/http.rb (module URI): ditto
* lib/uri/https.rb (module URI): ditto
* lib/uri/ldap.rb (module URI): ditto
* lib/uri/ldaps.rb (module URI): ditto
* lib/uri/mailto.rb (module URI): ditto
* process.c (Init_process): Document Process constants. Patch by
Vincent Batts. [Ruby 1.9- Bug #4677 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-12 20:39:11 +00:00
drbrain
83d7aca7f6
* Various .document files: Update .document files to match files which
...
have documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-11 22:31:17 +00:00
knu
835693dac5
* lib/uri/generic.rb (#route_from_path): Fix a bug where
...
URI('http://h/b/ ').route_to('http://h/b ') wrongly returned './'
(should be '../b'). [Bug #4476 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-15 06:13:08 +00:00
naruse
8553b70a39
* lib/uri/common.rb: avoid race condition. fixes #4572
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-12 10:20:50 +00:00
naruse
68b18291ac
* lib/uri/common.rb (URI::Parser#initialize_pattern):
...
refix for restrict the pattern.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 01:41:10 +00:00
naruse
2a35a782ab
* lib/uri/common.rb (URI::Parser#initialize_pattern):
...
workaround fix pattern of hostname for RFC 3986. [ruby-dev:42672]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 00:19:28 +00:00
naruse
e41ed50bf0
* lib/uri/common.rb (URI.encode_www_form):
...
split key-value when the value is Array like object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-02 04:33:56 +00:00
drbrain
ff3e943d1f
Improve documentation for URI::Common#encode_www_form, OpenSSL::SSL::SSLContext#ssl_version=.
...
Add documentation for OpenSSL::SSL::SSLContext#ciphers
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-29 20:23:59 +00:00
nobu
839ee60687
* lib/uri/common.rb (URI::WFKV_): get rid of backtrack explosion
...
by nested repeat operators. [ruby-core:33464]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-29 13:55:27 +00:00
akr
5fd45a4b79
* lib/uri/generic.rb (URI::Generic#hostname): new method.
...
(URI::Generic#hostname=): ditto.
* lib/open-uri.rb: use URI#hostname
* lib/net/http.rb: ditto.
[ruby-core:32056]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-06 03:30:49 +00:00
naruse
c4087bcb12
* lib/uri/common.rb (URI.encode_www_form): change treatment of
...
undefined value in given array as latest internet draft for
application/www-form-urlencoded.
http://tools.ietf.org/html/draft-hoehrmann-urlencoded-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-30 00:48:01 +00:00
naruse
d339fed3ad
Add document about URI.join. [ruby-core:32462]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-23 12:22:43 +00:00
marcandre
5647b2cd88
* lib/uri/common.rb: Have URI#route_to, URI#route_from accept
...
string-like arguments [ruby-core:30961]
* lib/uri/generic.rb: ditto for URI.join, URI#merge
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 04:38:40 +00:00
marcandre
770af8649a
* lib/uri/common.rb: Have URI() and URI.join accept URI objects in addition
...
to strings. [ruby-core:30960]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-21 03:32:41 +00:00
marcandre
3b0e399c03
* lib/uri/mailto.rb: clean up regexp [ruby-core:29894]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-11 04:49:56 +00:00
mame
8588e7631e
* lib/uri/ftp.rb (URI::FTP#set_path): added to correct handling of
...
special case where path of ftp is relative. This converts relative
path to absolute one, because external representation of ftp path is
relative and internal representation is absolute. [ruby-core:24077]
* lib/uri/ftp.rb (URI::FTP#initialize): converts absolute to relative.
* lib/uri/generic.rb (URI::Generic#check_path): allow relative path
when scheme is ftp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-15 13:41:19 +00:00
naruse
9e30f60dbf
* lib/uri/common.rb (decode_www_form_component): validate.
...
[ruby-dev:40938]
* lib/uri/common.rb (decode_www_form): allow empty string.
* lib/uri/common.rb: fix nodoc for constant. [ruby-dev:40949]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-10 22:05:02 +00:00
naruse
8a3c3b9c95
* lib/uri/common.rb (decode_www_form): don't ignore leading '?'.
...
[ruby-dev:40938]
* lib/uri/common.rb (decode_www_form): check whether argument is
valid application/x-www-form-urlencoded data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 11:58:20 +00:00
naruse
e9cfe47700
Add description about de facto FTP URI spec.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-09 08:15:33 +00:00
naruse
83c2f60b88
* lib/uri/common.rb (URI.encode_www_form_component):
...
convert strings of HTML5 ASCII incompatible encoding
to UTF-8.
* lib/uri/common.rb (URI.encode_www_form_component):
"\x83\x41" of Shift_JIS should be encoded as "%83A".
This follows real implementations.
* lib/uri/common.rb (URI.decode_www_form_component):
use given encoding for force_encoding. [ruby-dev:40721]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 12:36:14 +00:00
naruse
f626a17d8c
* lib/uri/common.rb (URI#{en,de}code_www_form_component):
...
renamed from URI#{en,de}code_www_component. [ruby-dev:40672]
* lib/uri/common.rb (URI#encode_www_form_component): %-encoded
element should have always two hex.
* lib/uri/common.rb (URI#encode_www_form_component):
better treatment for ASCII incompatible encodings and
encodings whose lead byte may use 7bit.
* lib/uri/common.rb (URI#decode_www_form_component): add %20.
* lib/uri/common.rb (URI#decode_www_form_component): add
result's encoding as 2nd argument.
* lib/uri/common.rb (URI#decode_www_form): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 15:35:38 +00:00
naruse
7588f09a87
* lib/uri/common.rb (URI.encode_www_component):
...
call str.to_s at first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-15 00:42:25 +00:00
naruse
8212cdf176
* lib/uri/common.rb (URI.encode_www_form): new method to
...
generate URL-encoded form data. [ruby-dev:39246]
* lib/uri/common.rb (URI.encode_www_component,
URI.decode_www_component): new method for encode/decode
a name/value of HTML form.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-12 09:00:48 +00:00
naruse
7aab2aad6e
* lib/uri/common.rb (initialize_regexp): allow leading
...
and trailing white space, and forbid extra characters
on another lines. [ruby-core:26223]
RFC 3986 Appendix C. Delimiting a URI in Context
draft-duerst-iri-bis-07 7.2. Web Address processing
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-01 16:00:46 +00:00
naruse
17ff65205c
* lib/uri/generic.rb (URI#normalize!): normalize case of
...
scheme. [ruby-core:27309]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-01 16:00:37 +00:00
marcandre
dbb14e218a
* lib/uri/generic.rb (eql?): Check the class of the compared object.
...
Based on a patch by Peter McLain [ruby-core:27019]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-24 07:33:24 +00:00
naruse
238b979f17
* lib/uri/common.rb (URI.escape): obsoleted.
...
* lib/uri/common.rb (URI,unescape): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-06 18:24:53 +00:00
akr
0fd221bd78
* lib/uri: don't set @parser if it is DEFAULT_PARSER for marshaling
...
URI objects between Ruby 1.8 and Ruby 1.9.
[ruby-dev:38377]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-27 17:48:54 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
nobu
3f0060c042
* lib/uri/common.rb (URI::Parser#escape): escaped string is ascii
...
only.
* lib/uri/common.rb (URI::Parser#unescape): converts bytewise.
[ruby-dev:38005], [ruby-dev:38110]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 10:43:04 +00:00
matz
8bc28d82b4
* lib/uri/generic.rb (URI::Generic#check_path): REL_PATH should a
...
symbol. [ruby-core:19805]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-11 17:39:52 +00:00
drbrain
563b654437
Fix ruby -w warnings for mismatched indentation discovered by rdoc
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 18:16:08 +00:00
mame
4046a1cb92
* lib/uri/common.rb (unescape): skip '%' to make String#hex work
...
correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-18 11:05:09 +00:00
akira
3da03397ce
* lib/uri/common.rb (URI::Parser): new class.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@19282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-10 09:34:49 +00:00
naruse
a8739621cf
* lib/uri/generic.rb: revert r15442. 2nd argument of String#sub parse
...
escapes. [ruby-dev:33726]
* bootstraptest/test_method.rb enc/depend instruby.rb lib/mkmf.rb
mkconfig.rb: revert r15443. ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-13 07:26:52 +00:00
naruse
40d8d38909
* ext/json/lib/json/pure/generator.rb,
...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@15442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-12 06:18:06 +00:00
nobu
8e7dd55a6e
* lib/uri/generic.rb (URI::Generic::inspect): use Kernel#to_s instead
...
object_id with printf. [ruby-dev:33347]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-24 10:36:24 +00:00
drbrain
a350a39c97
Fix Regexp warnings in lib/uri. Patch #16524 by Kornelius Kalnbach.
...
[ruby-core:14302]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 01:51:49 +00:00
matz
9ab6f563a2
* lib/uri/common.rb (URI::REGEXP::PATTERN): typo in REG_NAME
...
regular expression. a patch from Ueda Satoshi
<s-ueda AT livedoor.jp>. [ruby-dev:32514]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-10 09:31:28 +00:00
akira
1c662c2b63
* lib/uri.rb, lib/uri/ldaps.rb: added LDAPS
...
cheme. [ruby-dev:31896]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 00:53:34 +00:00
nobu
12b1e59f2e
* generic.rb (URI::Generic::merge_path): behave as RFC 3986.
...
[ruby-talk:252052]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-01 03:40:08 +00:00
knu
ea51ff20ac
* lib/uri/generic.rb (URI::Generic::userinfo): Considering how
...
`scheme://user:@...', `scheme://:password@...' and
`scheme://:@...' are parsed, an empty user name or password
should be allowed and represented as it is.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-15 07:43:37 +00:00
matz
bcbdd1f660
* lib/uri/generic.rb (URI::Generic::userinfo): should support
...
empty password. [ruby-core:10290]
* lib/uri/generic.rb (URI::Generic::set_password): password can be
cleared by nil. [ruby-core:10290]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-13 18:21:06 +00:00
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