<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/uri/common.rb, branch v3_2_11</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-0.12.3</title>
<updated>2024-08-27T10:12:13+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-08-27T05:25:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c96ba1fec4b4b80b60a08514bd9030258ba7f628'/>
<id>c96ba1fec4b4b80b60a08514bd9030258ba7f628</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] Improve URI.register_scheme tests and automatically upcase the given scheme</title>
<updated>2022-05-12T09:19:17+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2021-07-28T10:00:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=40ca208a6db8d3a53cc016caab2aa8301bafdac2'/>
<id>40ca208a6db8d3a53cc016caab2aa8301bafdac2</id>
<content type='text'>
* Also add docs and mention current limitations.
* For reference, https://stackoverflow.com/a/3641782/388803 mentions the
  valid characters in schemes.

https://github.com/ruby/uri/commit/4346daac75
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Also add docs and mention current limitations.
* For reference, https://stackoverflow.com/a/3641782/388803 mentions the
  valid characters in schemes.

https://github.com/ruby/uri/commit/4346daac75
</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] Include RFC2396_REGEXP module directly</title>
<updated>2022-04-22T03:00:14+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2022-04-14T18:02:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=eab354e17b4bc21d0142564ce71ebadf4ad8486a'/>
<id>eab354e17b4bc21d0142564ce71ebadf4ad8486a</id>
<content type='text'>
REGEXP is defined as RFC2396_REGEXP in lib/uri/common.rb. If we include
REGEXP then a broken URL is generated in rdoc for URI and URI::MailTo.

https://github.com/ruby/uri/commit/ed6ded9c80
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
REGEXP is defined as RFC2396_REGEXP in lib/uri/common.rb. If we include
REGEXP then a broken URL is generated in rdoc for URI and URI::MailTo.

https://github.com/ruby/uri/commit/ed6ded9c80
</pre>
</div>
</content>
</entry>
<entry>
<title>Update to latest uri</title>
<updated>2021-07-28T10:26:31+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2021-07-28T10:26:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=59a65f2d2402e0d34d9232236f152d62e74f9483'/>
<id>59a65f2d2402e0d34d9232236f152d62e74f9483</id>
<content type='text'>
* https://github.com/ruby/uri/commit/bc47bf71df2b2e9cea09d0b2684ceac7355e42a0
* To include the fix from https://github.com/ruby/uri/pull/27
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* https://github.com/ruby/uri/commit/bc47bf71df2b2e9cea09d0b2684ceac7355e42a0
* To include the fix from https://github.com/ruby/uri/pull/27
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix test failure for parallel testing</title>
<updated>2021-07-27T08:34:13+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2021-07-27T08:34:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6656309fe22b799016f3bc20a5f466da543a44c0'/>
<id>6656309fe22b799016f3bc20a5f466da543a44c0</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 proper Ractor support to URI</title>
<updated>2021-07-27T07:54:27+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2021-06-25T11:38:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1cf111774f03c6d1ddba735cb8cc79483f16f699'/>
<id>1cf111774f03c6d1ddba735cb8cc79483f16f699</id>
<content type='text'>
* Using a module to map scheme name to scheme class, which also works with Ractor.
* No constant redefinition, no ObjectSpace, still fast lookup for initial schemes.

https://github.com/ruby/uri/commit/883567fd81
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Using a module to map scheme name to scheme class, which also works with Ractor.
* No constant redefinition, no ObjectSpace, still fast lookup for initial schemes.

https://github.com/ruby/uri/commit/883567fd81
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/uri] Revert "Fix to support Ruby 3.0 Ractor"</title>
<updated>2021-07-27T07:54:26+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2021-06-25T11:24:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=090d799c2496f4c0e1f25c9970f4015fc693ff0e'/>
<id>090d799c2496f4c0e1f25c9970f4015fc693ff0e</id>
<content type='text'>
* This reverts commit 1faa4fdc161d7aeebdb5de0c407b923beaecf898.
* It has too many problems, see https://github.com/ruby/uri/pull/22 for discussion.

https://github.com/ruby/uri/commit/b959da2dc9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* This reverts commit 1faa4fdc161d7aeebdb5de0c407b923beaecf898.
* It has too many problems, see https://github.com/ruby/uri/pull/22 for discussion.

https://github.com/ruby/uri/commit/b959da2dc9
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/uri] Fix to support Ruby 3.0 Ractor</title>
<updated>2021-07-27T07:54:26+00:00</updated>
<author>
<name>kvokka</name>
<email>kvokka@yahoo.com</email>
</author>
<published>2021-05-29T10:29:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a288c21a5d46418e75c0f03eb12ff0782e51568d'/>
<id>a288c21a5d46418e75c0f03eb12ff0782e51568d</id>
<content type='text'>
https://github.com/ruby/uri/commit/1faa4fdc16
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/uri/commit/1faa4fdc16
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/uri] Use Regexp#match? to avoid extra allocations</title>
<updated>2021-04-22T05:55:44+00:00</updated>
<author>
<name>Steven Harman</name>
<email>steven@harmanly.com</email>
</author>
<published>2020-08-18T17:49:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bbee6968f82137645f2029379906f5b5d3911ead'/>
<id>bbee6968f82137645f2029379906f5b5d3911ead</id>
<content type='text'>
`#=~` builds `MatchData`, requiring extra allocations as compared to
`#match?`, which returns a boolean w/o having to build the `MatchData`.

https://github.com/ruby/uri/commit/158f58a9cc
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`#=~` builds `MatchData`, requiring extra allocations as compared to
`#match?`, which returns a boolean w/o having to build the `MatchData`.

https://github.com/ruby/uri/commit/158f58a9cc
</pre>
</div>
</content>
</entry>
</feed>
