<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/uri/generic.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Merge URI-1.0.4</title>
<updated>2025-10-07T16:15:46+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-10-07T09:29:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=71462666e0f1ea720062e12f97b2ea89166038d1'/>
<id>71462666e0f1ea720062e12f97b2ea89166038d1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge uri-1.0.3</title>
<updated>2025-02-27T17:00:25+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-02-26T09:16:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5f2e0cb0c65e56b0f8008de74a563d9a084d30a2'/>
<id>5f2e0cb0c65e56b0f8008de74a563d9a084d30a2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/uri] Fix spelling of "cannot"</title>
<updated>2024-09-17T22:12:12+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2024-09-17T17:06:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=39679d7fabca7fe0918b538e746d5d4381862bce'/>
<id>39679d7fabca7fe0918b538e746d5d4381862bce</id>
<content type='text'>
https://github.com/ruby/uri/commit/77241d6508
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/uri/commit/77241d6508
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/uri] Use URI::RFC2396_PARSER explicitly in URI</title>
<updated>2024-08-08T02:09:27+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-08-08T02:06:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=68ebd56a76423c14883f8986fd6e64cf6da314d5'/>
<id>68ebd56a76423c14883f8986fd6e64cf6da314d5</id>
<content type='text'>
https://github.com/ruby/uri/commit/898b889811
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/uri/commit/898b889811
</pre>
</div>
</content>
</entry>
<entry>
<title>Use www.rfc-editor.org for RFC text.</title>
<updated>2024-03-28T02:44:45+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-03-28T00:45:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7630a89a4bf352e1310b5323e3e2ee976eecddca'/>
<id>7630a89a4bf352e1310b5323e3e2ee976eecddca</id>
<content type='text'>
We use the following site for that now:

* https://tools.ietf.org/ or http
* https://datatracker.ietf.org or http

Today, IETF said the official site of RFC is www.rfc-editor.org.

FYI: https://authors.ietf.org/en/references-in-rfcxml

I replaced them to www.rfc-editor.org.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We use the following site for that now:

* https://tools.ietf.org/ or http
* https://datatracker.ietf.org or http

Today, IETF said the official site of RFC is www.rfc-editor.org.

FYI: https://authors.ietf.org/en/references-in-rfcxml

I replaced them to www.rfc-editor.org.
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/uri] Removed commented-out code</title>
<updated>2024-01-22T00:19:51+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-01-19T11:09:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=94af1e5b811f13f9c1b9be6ab6a9eea192a713f8'/>
<id>94af1e5b811f13f9c1b9be6ab6a9eea192a713f8</id>
<content type='text'>
https://github.com/ruby/uri/commit/feb8e0dd73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/uri/commit/feb8e0dd73
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/uri] Make URI#to_s prepend relative path with / if there is a host or port</title>
<updated>2024-01-05T16:07:55+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2023-10-24T20:26:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=37657c79b66994147e41f31139ceb9c0c840868f'/>
<id>37657c79b66994147e41f31139ceb9c0c840868f</id>
<content type='text'>
Otherwise, the path could be considered part of the host or port.

This is better than modifying the path to make it absolute when
a host or port is set.  We could also raise for invalid paths
when a host or port is set using check_path, but that results
in weird errors, and won't catch issues (such as ftp allowing a
relative path).

Fixes [Bug #19916]

https://github.com/ruby/uri/commit/ac32aa005b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise, the path could be considered part of the host or port.

This is better than modifying the path to make it absolute when
a host or port is set.  We could also raise for invalid paths
when a host or port is set using check_path, but that results
in weird errors, and won't catch issues (such as ftp allowing a
relative path).

Fixes [Bug #19916]

https://github.com/ruby/uri/commit/ac32aa005b
</pre>
</div>
</content>
</entry>
<entry>
<title>add #to_str to URI::Generic</title>
<updated>2023-10-26T01:12:49+00:00</updated>
<author>
<name>Michael Chui</name>
<email>saraid@users.noreply.github.com</email>
</author>
<published>2018-10-18T22:42:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0164ce893f0a683a8555072ac594401a33990d40'/>
<id>0164ce893f0a683a8555072ac594401a33990d40</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/uri] Add URI::Generic#decoded_#{user,password}</title>
<updated>2022-05-12T05:54:37+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2021-03-04T22:05:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fbebfe1697938a684f460cd28af36cf1f056513c'/>
<id>fbebfe1697938a684f460cd28af36cf1f056513c</id>
<content type='text'>
URI::Generic#{user,password} return the encoded values, which are
not that useful if you want to do authentication with them.
Automatic decoding by default would break backwards compatibility.
Optional automatic decoding via a keyword to URI.parse would
require threading the option through at least 3 other methods, and
would make semantics confusing (user= takes encoded or unencoded
password?) or require more work.  Thus, adding this as a separate
method seemed the simplest approach.

Unfortunately, URI lacks a method for correct decoding.  Unlike in
www form components, + in earlier parts of the URI such as the
userinfo section is treated verbatim and not as an encoded space.
Add URI.#{en,de}code_uri_component methods, which are almost the
same as URI.#{en,de}code_www_form_component, but without the
special SP =&gt; + handling.

Implements [Feature #9045]

https://github.com/ruby/uri/commit/16cfc4e92f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
URI::Generic#{user,password} return the encoded values, which are
not that useful if you want to do authentication with them.
Automatic decoding by default would break backwards compatibility.
Optional automatic decoding via a keyword to URI.parse would
require threading the option through at least 3 other methods, and
would make semantics confusing (user= takes encoded or unencoded
password?) or require more work.  Thus, adding this as a separate
method seemed the simplest approach.

Unfortunately, URI lacks a method for correct decoding.  Unlike in
www form components, + in earlier parts of the URI such as the
userinfo section is treated verbatim and not as an encoded space.
Add URI.#{en,de}code_uri_component methods, which are almost the
same as URI.#{en,de}code_www_form_component, but without the
special SP =&gt; + handling.

Implements [Feature #9045]

https://github.com/ruby/uri/commit/16cfc4e92f
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/uri] Optimize URI#hostname and URI#hostname=</title>
<updated>2021-04-22T05:54:28+00:00</updated>
<author>
<name>Lukas Zapletal</name>
<email>lzap+git@redhat.com</email>
</author>
<published>2020-10-07T11:23:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c46a4b8c7f434110c30c9587e02387283076579f'/>
<id>c46a4b8c7f434110c30c9587e02387283076579f</id>
<content type='text'>
https://github.com/ruby/uri/commit/3b7ccfd835
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/uri/commit/3b7ccfd835
</pre>
</div>
</content>
</entry>
</feed>
