Rakefile in ruby-graphviz-1.2.4 vs Rakefile in ruby-graphviz-1.2.5

- old
+ new

@@ -3,45 +3,25 @@ require 'rubygems' require 'rake/clean' require 'bundler' require 'rubygems/package_task' -require 'rdoc/task' require 'rake/testtask' require 'fileutils' require 'open-uri' +require 'yard' include FileUtils CLEAN.include ['**/.*.sw?', '*.gem', '.config', 'test/test.log'] -RDOC_OPTS = ['--quiet', '--title', "Ruby/GraphViz, the Documentation", - "--opname", "index.html", - "--line-numbers", - "--main", "README.rdoc"] desc "Packages up Ruby/GraphViz." task :default => [:test, :package] task :package => [:clean] -task :doc => :rdoc +task :doc => :yard -RDoc::Task.new do |rdoc| - rdoc.rdoc_dir = 'doc/rdoc' - rdoc.options += RDOC_OPTS - rdoc.main = "README.rdoc" - rdoc.title = "Ruby/GraphViz, the Documentation" - rdoc.rdoc_files.add ['README.rdoc', 'CHANGELOG.rdoc', 'AUTHORS.rdoc', 'COPYING.rdoc', - 'lib/graphviz.rb', - 'lib/graphviz/node.rb', - 'lib/graphviz/edge.rb', - 'lib/graphviz/constants.rb', - 'lib/graphviz/xml.rb', - 'lib/graphviz/graphml.rb', - 'lib/graphviz/family_tree.rb', - 'lib/graphviz/family_tree/couple.rb', - 'lib/graphviz/family_tree/generation.rb', - 'lib/graphviz/family_tree/person.rb', - 'lib/graphviz/family_tree/sibling.rb'] +YARD::Rake::YardocTask.new do |t| end Rake::TestTask.new(:test) do |t| t.libs << 'lib' << 'test' t.verbose = true @@ -65,7 +45,26 @@ else puts "Can't generate man pages with JRuby" end end +namespace :changelog do + desc "Update CHANGELOG" + task :update do + require "github_changelog_generator" + GitHubChangelogGenerator::ChangelogGenerator.new.run + end +end + Bundler::GemHelper.install_tasks +namespace :contributors do + desc "Install all-contributors-cli" + task :install do + sh "npm install --save-dev all-contributors-cli" + end + + desc "Run" + task :run do + sh "npx all-contributors" + end +end