Skip to content

Commit

Permalink
Warn when no files are set
Browse files Browse the repository at this point in the history
While it's not impossible that somebody could want a gem with no files
in it, I feel like this is fair game for a warning.
  • Loading branch information
packrat386 committed Nov 7, 2016
1 parent e0e987e commit 4cdc4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/specification.rb
Expand Up @@ -2819,7 +2819,7 @@ def validate packaging = true

# Warnings

%w[author homepage summary].each do |attribute|
%w[author homepage summary files].each do |attribute|
value = self.send attribute
warning "no #{attribute} specified" if value.nil? or value.empty?
end
Expand Down

0 comments on commit 4cdc4da

Please sign in to comment.