From: gamelinks007@... Date: 2020-08-13T09:58:21+00:00 Subject: [ruby-dev:50947] [Ruby master Feature#17121] Remove ENV#index Issue #17121 has been updated by S_H_ (Shun Hiraoka). Sorry, `ENV#index` is will be remove this pull request(https://github.com/ruby/ruby/pull/3412) ---------------------------------------- Feature #17121: Remove ENV#index https://bugs.ruby-lang.org/issues/17121#change-87050 * Author: S_H_ (Shun Hiraoka) * Status: Open * Priority: Normal ---------------------------------------- `ENV#index` is deprecated since `ruby-1.9.0-0`. So, remove it. ```bash 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 -- https://bugs.ruby-lang.org/