ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:120409] [Ruby master Feature#20982] Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4
@ 2024-12-25 15:17 herwin (Herwin W) via ruby-core
  2025-02-14  1:49 ` [ruby-core:121002] [Ruby master Bug#20982] " k0kubun (Takashi Kokubun) via ruby-core
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: herwin (Herwin W) via ruby-core @ 2024-12-25 15:17 UTC (permalink / raw)
  To: ruby-core; +Cc: herwin (Herwin W)

Issue #20982 has been reported by herwin (Herwin W).

----------------------------------------
Feature #20982: Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4
https://bugs.ruby-lang.org/issues/20982

* Author: herwin (Herwin W)
* Status: Open
----------------------------------------
Ruby 3.4 changed the stringified output of Hash to add whitespace to the hashrockets
```
ruby -e 'p({"a"=>"b"})'
{"a" => "b"}
```

The output of `ENV.inspect` is very similar to `Hash#inspect`, but does not include the whitespace
```
ruby -e 'p ENV'
{"SHELL"=>"/bin/bash", [...] }
```
Adding the extra whitespace around the hashrockets would improve the readability, and make things more consistent.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:121002] [Ruby master Bug#20982] Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4
  2024-12-25 15:17 [ruby-core:120409] [Ruby master Feature#20982] Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4 herwin (Herwin W) via ruby-core
@ 2025-02-14  1:49 ` k0kubun (Takashi Kokubun) via ruby-core
  2025-02-14  5:44 ` [ruby-core:121038] " k0kubun (Takashi Kokubun) via ruby-core
  2025-02-14  5:44 ` [ruby-core:121039] " k0kubun (Takashi Kokubun) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: k0kubun (Takashi Kokubun) via ruby-core @ 2025-02-14  1:49 UTC (permalink / raw)
  To: ruby-core; +Cc: k0kubun (Takashi Kokubun)

Issue #20982 has been updated by k0kubun (Takashi Kokubun).


Cherry-picking commit:c6dbb10b7408cab17f170f0b23d1bbf0db03ad55 to ruby_3_4 caused a conflict. Could you file a PR that resolves it?

----------------------------------------
Bug #20982: Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4
https://bugs.ruby-lang.org/issues/20982#change-111910

* Author: herwin (Herwin W)
* Status: Closed
* Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED
----------------------------------------
Ruby 3.4 changed the stringified output of Hash to add whitespace to the hashrockets
```
ruby -e 'p({"a"=>"b"})'
{"a" => "b"}
```

The output of `ENV.inspect` is very similar to `Hash#inspect`, but does not include the whitespace
```
ruby -e 'p ENV'
{"SHELL"=>"/bin/bash", [...] }
```
Adding the extra whitespace around the hashrockets would improve the readability, and make things more consistent.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:121038] [Ruby master Bug#20982] Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4
  2024-12-25 15:17 [ruby-core:120409] [Ruby master Feature#20982] Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4 herwin (Herwin W) via ruby-core
  2025-02-14  1:49 ` [ruby-core:121002] [Ruby master Bug#20982] " k0kubun (Takashi Kokubun) via ruby-core
@ 2025-02-14  5:44 ` k0kubun (Takashi Kokubun) via ruby-core
  2025-02-14  5:44 ` [ruby-core:121039] " k0kubun (Takashi Kokubun) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: k0kubun (Takashi Kokubun) via ruby-core @ 2025-02-14  5:44 UTC (permalink / raw)
  To: ruby-core; +Cc: k0kubun (Takashi Kokubun)

Issue #20982 has been updated by k0kubun (Takashi Kokubun).

Backport changed from 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONE

ruby_3_4 commit:24f48c83e7e851a6ca712fc7b498634da9a24789.

----------------------------------------
Bug #20982: Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4
https://bugs.ruby-lang.org/issues/20982#change-111946

* Author: herwin (Herwin W)
* Status: Closed
* Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONE
----------------------------------------
Ruby 3.4 changed the stringified output of Hash to add whitespace to the hashrockets
```
ruby -e 'p({"a"=>"b"})'
{"a" => "b"}
```

The output of `ENV.inspect` is very similar to `Hash#inspect`, but does not include the whitespace
```
ruby -e 'p ENV'
{"SHELL"=>"/bin/bash", [...] }
```
Adding the extra whitespace around the hashrockets would improve the readability, and make things more consistent.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:121039] [Ruby master Bug#20982] Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4
  2024-12-25 15:17 [ruby-core:120409] [Ruby master Feature#20982] Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4 herwin (Herwin W) via ruby-core
  2025-02-14  1:49 ` [ruby-core:121002] [Ruby master Bug#20982] " k0kubun (Takashi Kokubun) via ruby-core
  2025-02-14  5:44 ` [ruby-core:121038] " k0kubun (Takashi Kokubun) via ruby-core
@ 2025-02-14  5:44 ` k0kubun (Takashi Kokubun) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: k0kubun (Takashi Kokubun) via ruby-core @ 2025-02-14  5:44 UTC (permalink / raw)
  To: ruby-core; +Cc: k0kubun (Takashi Kokubun)

Issue #20982 has been updated by k0kubun (Takashi Kokubun).


Thanks for the PR.

----------------------------------------
Bug #20982: Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4
https://bugs.ruby-lang.org/issues/20982#change-111947

* Author: herwin (Herwin W)
* Status: Closed
* Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONE
----------------------------------------
Ruby 3.4 changed the stringified output of Hash to add whitespace to the hashrockets
```
ruby -e 'p({"a"=>"b"})'
{"a" => "b"}
```

The output of `ENV.inspect` is very similar to `Hash#inspect`, but does not include the whitespace
```
ruby -e 'p ENV'
{"SHELL"=>"/bin/bash", [...] }
```
Adding the extra whitespace around the hashrockets would improve the readability, and make things more consistent.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-02-14  5:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-25 15:17 [ruby-core:120409] [Ruby master Feature#20982] Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4 herwin (Herwin W) via ruby-core
2025-02-14  1:49 ` [ruby-core:121002] [Ruby master Bug#20982] " k0kubun (Takashi Kokubun) via ruby-core
2025-02-14  5:44 ` [ruby-core:121038] " k0kubun (Takashi Kokubun) via ruby-core
2025-02-14  5:44 ` [ruby-core:121039] " k0kubun (Takashi Kokubun) via ruby-core

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).