From c421ef11423742b62a22efa8d0df449cb7364491 Mon Sep 17 00:00:00 2001 From: bronzdoc Date: Sat, 22 Jun 2019 23:42:21 -0600 Subject: [PATCH] [rubygems/rubygems] Move gemcutter utilities code to Gem::Command https://github.com/rubygems/rubygems/commit/f296645033 --- lib/rubygems/command.rb | 4 ++++ lib/rubygems/gemcutter_utilities.rb | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/rubygems/command.rb b/lib/rubygems/command.rb index 4b32376954..347b36cae6 100644 --- a/lib/rubygems/command.rb +++ b/lib/rubygems/command.rb @@ -20,6 +20,10 @@ class Gem::Command include Gem::UserInteraction + OptionParser.accept Symbol do |value| + value.to_sym + end + ## # The name of the command. diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb index e68784bb67..21f83e72d1 100644 --- a/lib/rubygems/gemcutter_utilities.rb +++ b/lib/rubygems/gemcutter_utilities.rb @@ -9,11 +9,6 @@ module Gem::GemcutterUtilities include Gem::Text - # TODO: move to Gem::Command - OptionParser.accept Symbol do |value| - value.to_sym - end - attr_writer :host ##