From a89665b7b1abb5bb6005fd638dc920848cc50f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 13 Jul 2020 12:01:07 +0200 Subject: Enforce no empty lines around class body in rubygems To normalize the code style with `bundler`. --- lib/rubygems/mock_gem_ui.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/rubygems/mock_gem_ui.rb') diff --git a/lib/rubygems/mock_gem_ui.rb b/lib/rubygems/mock_gem_ui.rb index 9ece75881c..ec244fb7c6 100644 --- a/lib/rubygems/mock_gem_ui.rb +++ b/lib/rubygems/mock_gem_ui.rb @@ -6,27 +6,22 @@ require 'rubygems/user_interaction' # retrieval during tests. class Gem::MockGemUi < Gem::StreamUI - ## # Raised when you haven't provided enough input to your MockGemUi class InputEOFError < RuntimeError - def initialize(question) super "Out of input for MockGemUi on #{question.inspect}" end - end class TermError < RuntimeError - attr_reader :exit_code def initialize(exit_code) super @exit_code = exit_code end - end class SystemExitException < RuntimeError; end @@ -87,5 +82,4 @@ class Gem::MockGemUi < Gem::StreamUI raise TermError, status if status != 0 raise SystemExitException end - end -- cgit v1.2.1