Sha256: 4e130dca991b960d4584bb061a4ef90b1e7277254d726e51a2c88daeac3da0ce
Contents?: true
Size: 750 Bytes
Versions: 27
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 = 'appydave_tools' require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'appydave-tools/version' RSpec::Core::RakeTask.new(:spec) require 'rake/extensiontask' desc 'Compile all the extensions' task build: :compile Rake::ExtensionTask.new('appydave-tools') do |ext| ext.lib_dir = 'lib/appydave-tools' end desc 'Publish the gem to RubyGems.org' task :publish do version = Appydave::Tools::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
27 entries across 27 versions & 1 rubygems