From: gamelinks007@gmail.com
To: ruby-dev@ruby-lang.org
Subject: [ruby-dev:50946] [Ruby master Feature#17121] Remove ENV#index
Date: Thu, 13 Aug 2020 09:52:16 +0000 (UTC) [thread overview]
Message-ID: <redmine.issue-17121.20200813095216.35524@ruby-lang.org> (raw)
In-Reply-To: <redmine.issue-17121.20200813095216.35524@ruby-lang.org>
Issue #17121 has been reported by S_H_ (Shun Hiraoka).
----------------------------------------
Feature #17121: Remove ENV#index
https://bugs.ruby-lang.org/issues/17121
* 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
```
--
https://bugs.ruby-lang.org/
next parent reply other threads:[~2020-08-13 9:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-13 9:52 gamelinks007 [this message]
2020-08-13 9:58 ` [ruby-dev:50947] " gamelinks007
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.issue-17121.20200813095216.35524@ruby-lang.org \
--to=gamelinks007@gmail.com \
--cc=ruby-dev@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).