Sha256: 1ee74872e03965fe5ac260485ceba70f76a8ca2bb0862c30f3b7f0c7fdda34f8
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true require "bundler/gem_tasks" require "gemsmith/rake/build" require "gemsmith/rake/release" module Gemsmith module Rake # Provides Rake tasks for use in all gems built by this gem. class Tasks include ::Rake::DSL def self.setup new.install end def install build = Gemsmith::Rake::Build.new release = Gemsmith::Rake::Release.new ::Rake::Task[:build].enhance [:clean, :doc, :validate] ::Rake::Task[:release].enhance { ::Rake::Task[:clean].invoke } desc "Update README (table of contents)" task :doc do build.doc end desc "Clean gem artifacts" task :clean do 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: [:build, "release:guard_clean"] do release.publish ::Rake::Task["release:rubygem_push"].invoke end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-7.2.0 | lib/gemsmith/rake/tasks.rb |
gemsmith-7.1.0 | lib/gemsmith/rake/tasks.rb |
gemsmith-7.0.0 | lib/gemsmith/rake/tasks.rb |