mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Manually merged from https://github.com/rubygems/rubygems/pull/2636
Enable Style/EmptyLinesAroundClassBody rubocop cop.
This commit is contained in:
parent
f56fc720ee
commit
31a6eaabc1
274 changed files with 672 additions and 0 deletions
|
@ -47,11 +47,13 @@ require 'rubygems/user_interaction'
|
|||
require 'zlib'
|
||||
|
||||
class Gem::Package
|
||||
|
||||
include Gem::UserInteraction
|
||||
|
||||
class Error < Gem::Exception; end
|
||||
|
||||
class FormatError < Error
|
||||
|
||||
attr_reader :path
|
||||
|
||||
def initialize(message, source = nil)
|
||||
|
@ -63,13 +65,16 @@ class Gem::Package
|
|||
|
||||
super message
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
class PathError < Error
|
||||
|
||||
def initialize(destination, destination_dir)
|
||||
super "installing into parent path %s of %s is not allowed" %
|
||||
[destination, destination_dir]
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
class NonSeekableIO < Error; end
|
||||
|
@ -706,6 +711,7 @@ EOM
|
|||
rescue Zlib::GzipFile::Error => e
|
||||
raise Gem::Package::FormatError.new(e.message, entry.full_name)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
require 'rubygems/package/digest_io'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue