Sha256: adae971f6996ab4e3a3069559cef1952be5a2d0c02e7fcd5ec3216c0a237af98
Contents?: true
Size: 683 Bytes
Versions: 27
Compression:
Stored size: 683 Bytes
Contents
# frozen_string_literal: true # source: https://stephenagrice.medium.com/making-a-command-line-ruby-gem-write-build-and-push-aec24c6c49eb GEM_NAME = 'k_doc' require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'k_doc/version' RSpec::Core::RakeTask.new(:spec) require 'rake/extensiontask' desc 'Compile all the extensions' task build: :compile Rake::ExtensionTask.new('k_doc') do |ext| ext.lib_dir = 'lib/k_doc' end desc 'Publish the gem to RubyGems.org' task :publish do system 'gem build' system "gem push #{GEM_NAME}-#{KDoc::VERSION}.gem" end desc 'Remove old *.gem files' task :clean do system 'rm *.gem' end task default: %i[clobber compile spec]
Version data entries
27 entries across 27 versions & 1 rubygems