lib/maven/tools/gem_project.rb in maven-tools-0.32.1 vs lib/maven/tools/gem_project.rb in maven-tools-0.32.3

- old
+ new

@@ -81,12 +81,13 @@ end (spec.authors - done_authors).each do |author| self.developers.new(author, nil) end - # TODO work with collection of licenses - there can be more than one !!! - (spec.licenses + spec.files.select {|file| file.to_s =~ /license|gpl/i }).each do |license| + # flatten the array since copyright-header-1.0.3.gemspec has a double + # nested array + (spec.licenses + spec.files.select {|file| file.to_s =~ /license|gpl/i }).flatten.each do |license| # TODO make this better, i.e. detect the right license name from the file itself self.licenses.new(license) end config = {} @@ -540,6 +541,6 @@ proj.load(ARGV[0] || 'Gemfile') end proj.load(ARGV[1] || 'Mavenfile') proj.add_defaults puts proj.to_xml -end \ No newline at end of file +end