Sha256: 9c1c270388041470a820598841bdaed8e1f206d43caf128bad03387e8f0c8a06
Contents?: true
Size: 750 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
klue-langcraft-0.0.2 | Rakefile |