lib/rubygems/gemcutter_utilities.rb in rubygems-update-2.7.8 vs lib/rubygems/gemcutter_utilities.rb in rubygems-update-2.7.9

- old
+ new

@@ -1,13 +1,16 @@ # frozen_string_literal: true require 'rubygems/remote_fetcher' +require 'rubygems/text' ## # Utility methods for using the RubyGems API. module Gem::GemcutterUtilities + include Gem::Text + # TODO: move to Gem::Command OptionParser.accept Symbol do |value| value.to_sym end @@ -143,16 +146,16 @@ case response when Net::HTTPSuccess then if block_given? then yield response else - say response.body + say clean_text(response.body) end else message = response.body message = "#{error_prefix}: #{message}" if error_prefix - say message + say clean_text(message) terminate_interaction 1 # TODO: question this end end def set_api_key host, key