bioruby.gemspec.erb in bio-1.4.2 vs bioruby.gemspec.erb in bio-1.4.3

- old
+ new

@@ -49,11 +49,11 @@ <% ###### Below is executed in ERB environment ###### # Gets file list from the "git ls-files" command. files = (`git ls-files` rescue nil).to_s.split(/\r?\n/) files.delete_if { |x| x.empty? } # When git-ls-files isn't available, creates a list from current files. - if !($?.success?) or files.size <= 0 then + if !$? or !($?.success?) or files.size <= 0 then files = [ "README.rdoc", "README_DEV.rdoc", "ChangeLog", "KNOWN_ISSUES.rdoc", "Rakefile", "bioruby.gemspec.erb", "bioruby.gemspec", "setup.rb", @@ -83,21 +83,24 @@ rdoc_files = [ 'README.rdoc', 'README_DEV.rdoc', 'RELEASE_NOTES.rdoc', 'doc/Changes-1.3.rdoc', ] end - rdoc_files.push "ChangeLog" unless rdoc_files.include?("ChangeLog") + def rdoc_files.add_file(name) + self.push(name) unless self.include?(name) + end + rdoc_files.add_file "ChangeLog" + rdoc_files.add_file "LEGAL" rdoc_files.sort.collect { |x| x.dump }.join(",\n ") ###### Above is executed in ERB environment ###### %> ] s.rdoc_options << '--main' << 'README.rdoc' s.rdoc_options << '--title' << 'BioRuby API documentation' s.rdoc_options << '--exclude' << '\.yaml\z' s.rdoc_options << '--line-numbers' << '--inline-source' s.require_path = 'lib' - s.autorequire = 'bio' s.bindir = "bin" s.executables = [ <%= ###### Below is executed in ERB environment ###### # Files in bin/ directory are selected.