<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/open-uri/test_open-uri.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>[ruby/open-uri] Use omit instead of skip for test-unit</title>
<updated>2022-10-06T08:15:27+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2022-10-06T08:12:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7f80ec47c3e6a1ac4f8c3e626d51ef6598d65b1c'/>
<id>7f80ec47c3e6a1ac4f8c3e626d51ef6598d65b1c</id>
<content type='text'>
https://github.com/ruby/open-uri/commit/63f466d6ed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/open-uri/commit/63f466d6ed
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/open-uri] Run global constant count test only under Ruby 3.2</title>
<updated>2022-10-06T08:15:26+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2022-10-06T08:08:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cc5313ceab756887e5dcddcb3b293a842a01fbac'/>
<id>cc5313ceab756887e5dcddcb3b293a842a01fbac</id>
<content type='text'>
https://github.com/ruby/open-uri/commit/a8f1605ae9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/open-uri/commit/a8f1605ae9
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/open-uri] Avoid busting the global constant cache</title>
<updated>2022-10-06T07:55:44+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2022-02-18T08:45:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d15b38d944c27cb627741206d8adf285153a4df2'/>
<id>d15b38d944c27cb627741206d8adf285153a4df2</id>
<content type='text'>
`Object#extend(mod)` bump the global constant cache if the module
has constants of its own.

So by moving these constants outside of `Meta` we avoid bumping
the cache.

https://github.com/ruby/open-uri/commit/363c399bac
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`Object#extend(mod)` bump the global constant cache if the module
has constants of its own.

So by moving these constants outside of `Meta` we avoid bumping
the cache.

https://github.com/ruby/open-uri/commit/363c399bac
</pre>
</div>
</content>
</entry>
<entry>
<title>Guard for the ftp protocol feature of OpenURI</title>
<updated>2021-05-27T05:42:11+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2021-05-26T11:18:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=350bc29107e96871030ccffaf334c3e0a9d80f5f'/>
<id>350bc29107e96871030ccffaf334c3e0a9d80f5f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix some typos by spell checker</title>
<updated>2021-04-26T01:07:41+00:00</updated>
<author>
<name>Ryuta Kamizono</name>
<email>kamipo@gmail.com</email>
</author>
<published>2021-04-25T15:10:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=33f2ff3babb7054f3df1efa25c1285e09613d7b8'/>
<id>33f2ff3babb7054f3df1efa25c1285e09613d7b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove the deprecated override of Kernel#open in open-uri</title>
<updated>2020-08-16T14:41:40+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2020-07-30T19:48:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a73b5cc556bd131fe924ed6bb02b3c5bdf1593e8'/>
<id>a73b5cc556bd131fe924ed6bb02b3c5bdf1593e8</id>
<content type='text'>
This was deprecated in 2.7 to resolve [Misc #15893].
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was deprecated in 2.7 to resolve [Misc #15893].
</pre>
</div>
</content>
</entry>
<entry>
<title>The default charset of text/* media type is UTF-8.</title>
<updated>2019-07-15T00:36:52+00:00</updated>
<author>
<name>Tanaka Akira</name>
<email>akr@fsij.org</email>
</author>
<published>2019-07-15T00:36:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8f7884761e30c453287d73de6ea733d565635ebc'/>
<id>8f7884761e30c453287d73de6ea733d565635ebc</id>
<content type='text'>
Thanks for the patch  gareth (Gareth Adams).  [Bug #15933]

-------

Combines two small, but very related changes

1: Treat HTTPS the same as HTTP

Previously, OpenURI followed guidance in RFC2616/3.7.1:

&gt; When no explicit charset parameter is provided by the sender, media
&gt; subtypes of the "text" type are defined to have a default charset
&gt; value of "ISO-8859-1" when received via HTTP.

However this RFC was written before TLS was established and OpenURI was
never updated to treat HTTPS traffic the same way. So, HTTPS documents
received a different default to HTTP documents.

This commit removes the scheme check so that all text/* documents
processed by OpenURI are treated the same way.

In theory this processing gets applied to FTP URIs too, but there's no
mechanism in OpenURI for FTP documents to have Content-Type metadata
appended to them, so this ends up being a no-op.

2: Change default charset for text/* to UTF-8

Replaces the default ISO-8859-1 charset previously defined in RFC2616 (now
obsoleted) with a UTF-8 charset as defined in RFC6838.

Fixes: https://bugs.ruby-lang.org/issues/15933
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Thanks for the patch  gareth (Gareth Adams).  [Bug #15933]

-------

Combines two small, but very related changes

1: Treat HTTPS the same as HTTP

Previously, OpenURI followed guidance in RFC2616/3.7.1:

&gt; When no explicit charset parameter is provided by the sender, media
&gt; subtypes of the "text" type are defined to have a default charset
&gt; value of "ISO-8859-1" when received via HTTP.

However this RFC was written before TLS was established and OpenURI was
never updated to treat HTTPS traffic the same way. So, HTTPS documents
received a different default to HTTP documents.

This commit removes the scheme check so that all text/* documents
processed by OpenURI are treated the same way.

In theory this processing gets applied to FTP URIs too, but there's no
mechanism in OpenURI for FTP documents to have Content-Type metadata
appended to them, so this ends up being a no-op.

2: Change default charset for text/* to UTF-8

Replaces the default ISO-8859-1 charset previously defined in RFC2616 (now
obsoleted) with a UTF-8 charset as defined in RFC6838.

Fixes: https://bugs.ruby-lang.org/issues/15933
</pre>
</div>
</content>
</entry>
<entry>
<title>Warn open-uri's "open" method at Kernel.</title>
<updated>2019-07-14T08:18:17+00:00</updated>
<author>
<name>Tanaka Akira</name>
<email>akr@fsij.org</email>
</author>
<published>2019-07-14T08:18:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=05aac90a1bcfeb180f5e78ea8b00a4d1b04d5eed'/>
<id>05aac90a1bcfeb180f5e78ea8b00a4d1b04d5eed</id>
<content type='text'>
Use URI.open instead.

Thanks for the patch by jeremyevans0 (Jeremy Evans) [Misc #15893].
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use URI.open instead.

Thanks for the patch by jeremyevans0 (Jeremy Evans) [Misc #15893].
</pre>
</div>
</content>
</entry>
<entry>
<title>open-uri defines URI.open defined as an alias.</title>
<updated>2017-12-21T14:15:04+00:00</updated>
<author>
<name>akr</name>
<email>akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2017-12-21T14:15:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bf287424fd00c0304c836525bb52d89fc1f4a84a'/>
<id>bf287424fd00c0304c836525bb52d89fc1f4a84a</id>
<content type='text'>
open-uri's Kernel.open will be deprecated in future.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
open-uri's Kernel.open will be deprecated in future.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/open-uri.rb: accept :encoding option as well as encoding in mode string.</title>
<updated>2017-10-21T06:22:53+00:00</updated>
<author>
<name>akr</name>
<email>akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2017-10-21T06:22:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a2831955b26a07241c8c45ab2affdbafd4a36db2'/>
<id>a2831955b26a07241c8c45ab2affdbafd4a36db2</id>
<content type='text'>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
</feed>
