Sha256: 8286436ad479c6fae1b78e89d9188cc17af8c367b132bb17ef441c9338786523

Contents?: true

Size: 751 Bytes

Versions: 10

Compression:

Stored size: 751 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_manager'

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'k_manager/version'

Dir.glob('tasks/*.rake').each { |r| import r }

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

require 'rake/extensiontask'

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

Rake::ExtensionTask.new('k_manager') do |ext|
  ext.lib_dir = 'lib/k_manager'
end

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

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

task default: %i[clobber compile spec]

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
k_manager-0.0.37 Rakefile
k_manager-0.0.36 Rakefile
k_manager-0.0.35 Rakefile
k_manager-0.0.33 Rakefile
k_manager-0.0.32 Rakefile
k_manager-0.0.30 Rakefile
k_manager-0.0.28 Rakefile
k_manager-0.0.24 Rakefile
k_manager-0.0.23 Rakefile
k_manager-0.0.22 Rakefile