Method: Jeweler::GemSpecHelper#normalize_files
- Defined in:
- lib/jeweler/gemspec_helper.rb
#normalize_files(array_attribute) ⇒ Object
55 56 57 58 59 60 61 62 63 |
# File 'lib/jeweler/gemspec_helper.rb', line 55 def normalize_files(array_attribute) array = @spec.send(array_attribute) # only keep files, no directories, and sort array = array.select do |path| File.file? File.join(@base_dir, path) end.sort @spec.send("#{array_attribute}=", array) end |