Project

General

Profile

Actions

Misc #15893

closed

open-uri: URI.open status

Added by zverok (Victor Shepelev) almost 5 years ago. Updated about 4 years ago.

Status:
Closed
[ruby-core:92922]

Description

On the one hand, Ruby 2.5's NEWS stated:

URI.open method defined as an alias to open-uri's Kernel.open. open-uri's Kernel.open will be deprecated in future.

I believe there were good reasons for that decision.

On the other hand,

  • no movements in this direction were done since 2.5
  • URI.open is excluded from open-uri's docs, and the main library's documentation doesn't mention this option as preferred or even existing.

I'd like to know what the real status of this library and its migration to (safer) URI.open?
Should a patch be provided to change the library's docs accordingly?
Maybe even change the code (still leaving Kernel.open option, but just as an alias, moving the implementation away from that method)?


Files

deprecate-open-uri-kernel-open.patch (21.3 KB) deprecate-open-uri-kernel-open.patch jeremyevans0 (Jeremy Evans), 06/02/2019 03:46 AM

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #19630: [RFC] Deprecate `Kernel#open("|command-here")` due to frequent security issuesClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0