[前][次][番号順一覧][スレッド一覧]

ruby-changes:64127

From: Junichi <ko1@a...>
Date: Sun, 13 Dec 2020 18:18:34 +0900 (JST)
Subject: [ruby-changes:64127] a3adb10aac (master): Add NEWS about open-uri and Kernel#open

https://git.ruby-lang.org/ruby.git/commit/?id=a3adb10aac

From a3adb10aacb48efe0ecb059f012969dc08145360 Mon Sep 17 00:00:00 2001
From: Junichi Ito <jit@s...>
Date: Sun, 13 Dec 2020 17:15:34 +0900
Subject: Add NEWS about open-uri and Kernel#open

There might be a lot of codes using redefined Kernel#open via open-uri, so it's worth mentioning that.

diff --git a/NEWS.md b/NEWS.md
index 3cd98b2..42a7f8b 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -426,6 +426,9 @@ Excluding feature bug fixes. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L426
 
 * Integer#zero? overrides Numeric#zero? for optimization.  [[Misc #16961]]
 
+* Requiring 'open-uri' no longer redefines `Kernel#open`. 
+  Call `URI.open` directly or `use URI#open` instead. [[Misc #15893]]
+
 ## Stdlib compatibility issues
 
 * Default gems
@@ -640,6 +643,7 @@ end https://github.com/ruby/ruby/blob/trunk/NEWS.md#L643
 [Feature #16815]: https://bugs.ruby-lang.org/issues/16815
 [Feature #16828]: https://bugs.ruby-lang.org/issues/16828
 [Misc #16961]:    https://bugs.ruby-lang.org/issues/16961
+[Misc #15893]:    https://bugs.ruby-lang.org/issues/15893
 [Feature #17055]: https://bugs.ruby-lang.org/issues/17055
 [Feature #17104]: https://bugs.ruby-lang.org/issues/17104
 [Feature #17122]: https://bugs.ruby-lang.org/issues/17122
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]