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

Version Path
appydave-tools-0.13.0 Rakefile
appydave-tools-0.12.0 Rakefile
appydave-tools-0.11.11 Rakefile
appydave-tools-0.11.10 Rakefile
appydave-tools-0.11.9 Rakefile
appydave-tools-0.11.8 Rakefile
appydave-tools-0.11.7 Rakefile
appydave-tools-0.11.6 Rakefile
appydave-tools-0.11.5 Rakefile
appydave-tools-0.11.4 Rakefile
appydave-tools-0.11.3 Rakefile
appydave-tools-0.11.2 Rakefile
appydave-tools-0.11.1 Rakefile
appydave-tools-0.11.0 Rakefile
appydave-tools-0.10.4 Rakefile
appydave-tools-0.10.3 Rakefile
appydave-tools-0.10.2 Rakefile
appydave-tools-0.10.1 Rakefile
appydave-tools-0.10.0 Rakefile
appydave-tools-0.9.5 Rakefile