* [ruby-dev:50946] [Ruby master Feature#17121] Remove ENV#index
@ 2020-08-13 9:52 gamelinks007
2020-08-13 9:58 ` [ruby-dev:50947] " gamelinks007
0 siblings, 1 reply; 2+ messages in thread
From: gamelinks007 @ 2020-08-13 9:52 UTC (permalink / raw)
To: ruby-dev
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ruby-dev:50947] [Ruby master Feature#17121] Remove ENV#index
2020-08-13 9:52 [ruby-dev:50946] [Ruby master Feature#17121] Remove ENV#index gamelinks007
@ 2020-08-13 9:58 ` gamelinks007
0 siblings, 0 replies; 2+ messages in thread
From: gamelinks007 @ 2020-08-13 9:58 UTC (permalink / raw)
To: ruby-dev
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-13 9:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13 9:52 [ruby-dev:50946] [Ruby master Feature#17121] Remove ENV#index gamelinks007
2020-08-13 9:58 ` [ruby-dev:50947] " gamelinks007
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).