Project

General

Profile

Actions

Feature #17121

open

Remove ENV#index

Added by S_H_ (Shun Hiraoka) over 3 years ago. Updated over 3 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-dev:50946]

Description

ENV#index is deprecated since ruby-1.9.0-0.

So, remove it.

root@8785b339158a:/all-ruby#  env ALL_RUBY_SINCE=ruby-1.8 ./all-ruby -e 'ENV.index("RUBY")'
ruby-1.8.0
...
ruby-1.8.7-p374
ruby-1.9.0-0          -e:1: warning: ENV.index is deprecated; use ENV.key
...
ruby-2.7.0-rc1        -e:1: warning: ENV.index is deprecated; use ENV.key
ruby-2.7.0-rc2        -e:1: warning: ENV.index is deprecated; use ENV.key instead
...
ruby-2.7.1            -e:1: warning: ENV.index is deprecated; use ENV.key instead

pull request:
https://github.com/ruby/ruby/pull/3415

Actions #1

Updated by S_H_ (Shun Hiraoka) over 3 years ago

  • Description updated (diff)

Updated by S_H_ (Shun Hiraoka) over 3 years ago

Sorry, ENV#index is will be remove this pull request(https://github.com/ruby/ruby/pull/3412)

Actions

Also available in: Atom PDF

Like0
Like0Like0