Sha256: eca863a3876dad2db0fa54a4c2662e047dd94a07cdd0663bf1d0f1c7ad05d46b

Contents?: true

Size: 725 Bytes

Versions: 2

Compression:

Stored size: 725 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_ext-github'

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'k_ext/github/version'

RSpec::Core::RakeTask.new(:spec)

require 'rake/extensiontask'

desc 'Compile all the extensions'
task build: :compile

# Rake::ExtensionTask.new('k_ext_github') do |ext|
#   ext.lib_dir = 'lib/k_ext/github'
# end

desc 'Publish the gem to RubyGems.org'
task :publish do
  system 'gem build'
  system "gem push #{GEM_NAME}-#{KExt::Github::VERSION}.gem"
end

desc 'Remove old *.gem files'
task :clean do
  system 'rm *.gem'
end

task default: %i[clobber compile spec]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
k_ext-github-0.0.4 Rakefile
k_ext-github-0.0.3 Rakefile