mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
04a79e465a
commit
7d2d6d0a2f
1 changed files with 4 additions and 4 deletions
|
@ -291,7 +291,7 @@ class Gem::Package::TarWriter
|
|||
|
||||
def split_name(name) # :nodoc:
|
||||
if name.bytesize > 256
|
||||
raise Gem::Package::TooLongFileName.new("File \"#{name}\" has a too long path (should be 256 or less)")
|
||||
raise Gem::Package::TooLongFileName.new("File \"#{name}\" has a too long path (should be 256 or less)")
|
||||
end
|
||||
|
||||
if name.bytesize <= 100 then
|
||||
|
@ -311,11 +311,11 @@ class Gem::Package::TarWriter
|
|||
name = newname
|
||||
|
||||
if name.bytesize > 100
|
||||
raise Gem::Package::TooLongFileName.new("File \"#{prefix}/#{name}\" has a too long name (should be 100 or less)")
|
||||
raise Gem::Package::TooLongFileName.new("File \"#{prefix}/#{name}\" has a too long name (should be 100 or less)")
|
||||
end
|
||||
|
||||
|
||||
if prefix.bytesize > 155 then
|
||||
raise Gem::Package::TooLongFileName.new("File \"#{prefix}/#{name}\" has a too long base path (should be 155 or less)")
|
||||
raise Gem::Package::TooLongFileName.new("File \"#{prefix}/#{name}\" has a too long base path (should be 155 or less)")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue