lib/gemsmith/rake/tasks.rb in gemsmith-5.6.0 vs lib/gemsmith/rake/tasks.rb in gemsmith-6.0.0

- old
+ new

@@ -14,26 +14,28 @@ def install build = Gemsmith::Rake::Build.new release = Gemsmith::Rake::Release.new - ::Rake::Task[:build].enhance [:clean, "readme:toc"] + ::Rake::Task[:build].enhance [:clean, :doc, :validate] ::Rake::Task[:release].enhance { ::Rake::Task[:clean].invoke } - namespace :readme do - desc "Update README Table of Contents." - task :toc do - build.table_of_contents - end + desc "Update README (table of contents)" + task :doc do + build.doc end - desc "Clean gem artifacts." + desc "Clean gem artifacts" task :clean do - build.clean! + build.clean end + task :validate do + build.validate + end + desc "Build, tag #{release.version_label} (signed), and push #{release.gem_file_name} to RubyGems" - task publish: [:clean, :build, "release:guard_clean"] do + task publish: [:build, "release:guard_clean"] do release.publish ::Rake::Task["release:rubygem_push"].invoke end end end