tasks/gem/gem.rb in new-0.0.3 vs tasks/gem/gem.rb in new-0.0.4
- old
+ new
@@ -7,11 +7,11 @@
GLOB_ATTRIBUTES = [:files, :test_files, :extra_rdoc_files]
OPTIONS = {
gemspec: {
summary: "A short summary of this gem's description. Displayed in `gem list -d`",
- files: ['**/*']
+ files: ['**/*','**/.*']
}
}
def run
@gemspec = options[:gemspec]
@@ -42,9 +42,11 @@
next if @gemspec[file_attr].nil?
files = []
@gemspec[file_attr].each do |glob|
matching_files = FileList.new(glob).select{ |f| File.file? f }
+ matching_files.delete '.new'
+ matching_files.delete '.gemspec'
if matching_files.empty?
New.say "The pattern `#{glob}` in `tasks.gem.gemspec.#{file_attr}` did not match any files."
New.say 'Please check your configuration file.'
exit