package_gem.rake 918 B

123456789101112131415161718192021222324252627282930313233343536
  1. # -*- coding: utf-8 -*-
  2. # -*- frozen_string_literal: true -*-
  3. require_relative "./prep_release"
  4. desc "Release built gem on Rubygems"
  5. task :release => [:tag] do
  6. PrepRelease.publish_gem
  7. end
  8. desc "Tag release commit"
  9. task :tag => [:commit_checksum] do
  10. checksum_dir = File.expand_path "../../../checksum", __FILE__
  11. PrepRelease.tag_release_commit archive: checksum_dir
  12. end
  13. desc "Commit latest packed gem checksum"
  14. task :commit_checksum => [:checksum] do
  15. checksum_dir = File.expand_path "../../../checksum", __FILE__
  16. PrepRelease.commit_checksum archive: checksum_dir
  17. end
  18. desc "Create checksum file for latest packed gem"
  19. task :checksum => [:pack] do
  20. checksum_dir = File.expand_path "../../../checksum", __FILE__
  21. gem = Dir["lorca-*.gem"].first
  22. PrepRelease.checksum gem, archive: checksum_dir
  23. puts "Checksum created successfully"
  24. end
  25. desc "Pack gem"
  26. task :pack => [:test] do
  27. PrepRelease.package
  28. end