diff options
Diffstat (limited to 'lib/rubygems/validator.rb')
-rw-r--r-- | lib/rubygems/validator.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/rubygems/validator.rb b/lib/rubygems/validator.rb index e5183d401f..1436a93ae6 100644 --- a/lib/rubygems/validator.rb +++ b/lib/rubygems/validator.rb @@ -14,7 +14,7 @@ class Gem::Validator include Gem::UserInteraction - def initialize + def initialize # :nodoc: require 'find' end @@ -57,8 +57,11 @@ class Gem::Validator public + ## + # Describes a problem with a file in a gem. + ErrorData = Struct.new :path, :problem do - def <=> other + def <=> other # :nodoc: return nil unless self.class === other [path, problem] <=> [other.path, other.problem] |