123456789_123456789_123456789_123456789_123456789_

Exception: Gem::Package::InvalidWindowsFileNameError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ::Gem::InstallError, ::Gem::Exception, RuntimeError
Instance Chain:
self, ::Gem::InstallError, ::Gem::Exception, RuntimeError
Inherits: Gem::InstallError
Defined in: lib/rubygems/package.rb

Overview

Raised when a filename contains characters that are invalid on Windows

Class Method Summary

Constructor Details

.new(filename, gem_name = nil) ⇒ InvalidWindowsFileNameError

[ GitHub ]

  
# File 'lib/rubygems/package.rb', line 96

def initialize(filename, gem_name = nil)
  message = "The gem contains a file '#{filename}' with characters in its name that are not allowed on Windows (e.g., colons)."
  message += " This is a problem with the '#{gem_name}' gem, not Rubygems." if gem_name
  message += " Please report this issue to the gem author."
  super message
end