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

Version Path
k_doc-0.0.38 Rakefile
k_doc-0.0.37 Rakefile
k_doc-0.0.36 Rakefile
k_doc-0.0.35 Rakefile
k_doc-0.0.32 Rakefile
k_doc-0.0.28 Rakefile
k_doc-0.0.27 Rakefile
k_doc-0.0.26 Rakefile
k_doc-0.0.25 Rakefile
k_doc-0.0.24 Rakefile
k_doc-0.0.23 Rakefile
k_doc-0.0.22 Rakefile
k_doc-0.0.21 Rakefile
k_doc-0.0.18 Rakefile
k_doc-0.0.17 Rakefile
k_doc-0.0.16 Rakefile
k_doc-0.0.15 Rakefile
k_doc-0.0.13 Rakefile
k_doc-0.0.12 Rakefile
k_doc-0.0.11 Rakefile