diff options
author | svn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-07 00:53:20 +0000 |
---|---|---|
committer | svn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-07 00:53:20 +0000 |
commit | 7d2d6d0a2f600943ab484238b4722036151376a5 (patch) | |
tree | ba29bbcf354e3a01523b8eaa9fb8448f2853d506 /lib/rubygems | |
parent | 04a79e465aa8b703ebe0d0f344c7f0c27b04c029 (diff) | |
download | ruby-7d2d6d0a2f600943ab484238b4722036151376a5.tar.gz |
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/package/tar_writer.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rubygems/package/tar_writer.rb b/lib/rubygems/package/tar_writer.rb index 51a67ea51c..dfd635724b 100644 --- a/lib/rubygems/package/tar_writer.rb +++ b/lib/rubygems/package/tar_writer.rb @@ -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 |