diff options
Diffstat (limited to 'lib/rubygems/specification_policy.rb')
-rw-r--r-- | lib/rubygems/specification_policy.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/specification_policy.rb b/lib/rubygems/specification_policy.rb index a05edcd5c9..cb8457ed62 100644 --- a/lib/rubygems/specification_policy.rb +++ b/lib/rubygems/specification_policy.rb @@ -268,14 +268,14 @@ open-ended dependency on #{dep} is not recommended def validate_self_inclusion_in_files_list return unless files.include?(file_name) - + raise Gem::InvalidSpecificationException, "#{full_name} contains itself (#{file_name}), check your files list" end def validate_specification_version return if specification_version.is_a?(Integer) - + raise Gem::InvalidSpecificationException, 'specification_version must be an Integer (did you mean version?)' end |