diff options
author | Durable Programming Team <[email protected]> | 2024-09-02 15:16:31 -0400 |
---|---|---|
committer | git <[email protected]> | 2024-09-03 17:40:12 +0000 |
commit | 675529b9c662c0e69a71de12d7a22c68016186f5 (patch) | |
tree | c44d28d0dfe98a37c19e5186925a8db78cd869cd /lib/rubygems/source/git.rb | |
parent | 767d0a171668fbfcc5bbd9c060bb59d192717ce3 (diff) |
[rubygems/rubygems] standardize pretty-print output for Gem::Source and subclasses
https://github.com/rubygems/rubygems/commit/6d5fbf82f1
Diffstat (limited to 'lib/rubygems/source/git.rb')
-rw-r--r-- | lib/rubygems/source/git.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/rubygems/source/git.rb b/lib/rubygems/source/git.rb index bda63c6844..34f6851bc4 100644 --- a/lib/rubygems/source/git.rb +++ b/lib/rubygems/source/git.rb @@ -157,12 +157,14 @@ class Gem::Source::Git < Gem::Source end def pretty_print(q) # :nodoc: - q.group 2, "[Git: ", "]" do - q.breakable - q.text @repository + q.object_group(self) do + q.group 2, "[Git: ", "]" do + q.breakable + q.text @repository - q.breakable - q.text @reference + q.breakable + q.text @reference + end end end |