diff options
author | David RodrÃguez <[email protected]> | 2020-07-13 12:01:07 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-07-31 21:07:19 +0900 |
commit | a89665b7b1abb5bb6005fd638dc920848cc50f72 (patch) | |
tree | f6c84f1bfb1148d203cd63c72c458de3a8f5e961 /lib/rubygems/user_interaction.rb | |
parent | a6bfc951aa9c48e2a4608a9ae84e2e3b4fd9b390 (diff) |
Enforce no empty lines around class body in rubygems
To normalize the code style with `bundler`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3379
Diffstat (limited to 'lib/rubygems/user_interaction.rb')
-rw-r--r-- | lib/rubygems/user_interaction.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/rubygems/user_interaction.rb b/lib/rubygems/user_interaction.rb index 616659ea9e..a5ebaf61e4 100644 --- a/lib/rubygems/user_interaction.rb +++ b/lib/rubygems/user_interaction.rb @@ -173,7 +173,6 @@ end # Gem::StreamUI implements a simple stream based user interface. class Gem::StreamUI - extend Gem::Deprecate ## @@ -388,7 +387,6 @@ class Gem::StreamUI # An absolutely silent progress reporter. class SilentProgressReporter - ## # The count of items is never updated for the silent progress reporter. @@ -413,14 +411,12 @@ class Gem::StreamUI def done end - end ## # A basic dotted progress reporter. class SimpleProgressReporter - include Gem::DefaultUserInteraction ## @@ -458,14 +454,12 @@ class Gem::StreamUI def done @out.puts "\n#{@terminal_message}" end - end ## # A progress reporter that prints out messages about the current progress. class VerboseProgressReporter - include Gem::DefaultUserInteraction ## @@ -502,7 +496,6 @@ class Gem::StreamUI def done @out.puts @terminal_message end - end ## @@ -520,7 +513,6 @@ class Gem::StreamUI # An absolutely silent download reporter. class SilentDownloadReporter - ## # The silent download reporter ignores all arguments @@ -546,14 +538,12 @@ class Gem::StreamUI def done end - end ## # A progress reporter that behaves nicely with threaded downloading. class ThreadedDownloadReporter - MUTEX = Mutex.new ## @@ -602,9 +592,7 @@ class Gem::StreamUI @out.puts message end end - end - end ## @@ -612,7 +600,6 @@ end # STDOUT, and STDERR. class Gem::ConsoleUI < Gem::StreamUI - ## # The Console UI has no arguments as it defaults to reading input from # stdin, output to stdout and warnings or errors to stderr. @@ -620,14 +607,12 @@ class Gem::ConsoleUI < Gem::StreamUI def initialize super STDIN, STDOUT, STDERR, true end - end ## # SilentUI is a UI choice that is absolutely silent. class Gem::SilentUI < Gem::StreamUI - ## # The SilentUI has no arguments as it does not use any stream. @@ -653,5 +638,4 @@ class Gem::SilentUI < Gem::StreamUI def progress_reporter(*args) # :nodoc: SilentProgressReporter.new(@outs, *args) end - end |