Sha256: 5cc73e344d57a20f795fed4fd0e9320dc244aa13320f44951901c16fa1c31906
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
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-6.2.0 | lib/gemsmith/rake/tasks.rb |
gemsmith-6.1.0 | lib/gemsmith/rake/tasks.rb |
gemsmith-6.0.0 | lib/gemsmith/rake/tasks.rb |