Sha256: 45e71dfcaa5c53e0bf5a7f97fdae90e14c9c14517386548d533bc0db75cfd1f2

Contents?: true

Size: 750 Bytes

Versions: 10

Compression:

Stored size: 750 Bytes

Contents

# frozen_string_literal: true

# source: https://stephenagrice.medium.com/making-a-command-line-ruby-gem-write-build-and-push-aec24c6c49eb

GEM_NAME = 'klue_langcraft'

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'klue/langcraft/version'

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

require 'rake/extensiontask'

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

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

desc 'Publish the gem to RubyGems.org'
task :publish do
  version = Klue::Langcraft::VERSION
  system 'gem build'
  system "gem push #{GEM_NAME}-#{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
klue-langcraft-0.4.0 Rakefile
klue-langcraft-0.3.0 Rakefile
klue-langcraft-0.2.0 Rakefile
klue-langcraft-0.1.1 Rakefile
klue-langcraft-0.1.0 Rakefile
klue-langcraft-0.0.7 Rakefile
klue-langcraft-0.0.6 Rakefile
klue-langcraft-0.0.5 Rakefile
klue-langcraft-0.0.4 Rakefile
klue-langcraft-0.0.3 Rakefile