summaryrefslogtreecommitdiff
path: root/lib/rubygems/source.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/source.rb')
-rw-r--r--lib/rubygems/source.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/rubygems/source.rb b/lib/rubygems/source.rb
index d90e311b65..4e5545982d 100644
--- a/lib/rubygems/source.rb
+++ b/lib/rubygems/source.rb
@@ -213,14 +213,16 @@ class Gem::Source
end
def pretty_print(q) # :nodoc:
- q.group 2, "[Remote:", "]" do
- q.breakable
- q.text @uri.to_s
-
- if api = uri
+ q.object_group(self) do
+ q.group 2, "[Remote:", "]" do
q.breakable
- q.text "API URI: "
- q.text api.to_s
+ q.text @uri.to_s
+
+ if api = uri
+ q.breakable
+ q.text "API URI: "
+ q.text api.to_s
+ end
end
end
end