Sha256: 74aa4bf427f06ab97b0e71f0d4deea099e32dda03d93d02040573491d576ff9c

Contents?: true

Size: 784 Bytes

Versions: 23

Compression:

Stored size: 784 Bytes

Contents

# frozen_string_literal: true

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

GEM_NAME = 'ad_agent_architecture'

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'ad/agent_architecture/version'

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

require 'rake/extensiontask'

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

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

desc 'Publish the gem to RubyGems.org'
task :publish do
  version = Ad::AgentArchitecture::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

23 entries across 23 versions & 1 rubygems

Version Path
ad-agent_architecture-0.0.24 Rakefile
ad-agent_architecture-0.0.23 Rakefile
ad-agent_architecture-0.0.22 Rakefile
ad-agent_architecture-0.0.21 Rakefile
ad-agent_architecture-0.0.20 Rakefile
ad-agent_architecture-0.0.19 Rakefile
ad-agent_architecture-0.0.18 Rakefile
ad-agent_architecture-0.0.17 Rakefile
ad-agent_architecture-0.0.16 Rakefile
ad-agent_architecture-0.0.15 Rakefile
ad-agent_architecture-0.0.14 Rakefile
ad-agent_architecture-0.0.13 Rakefile
ad-agent_architecture-0.0.12 Rakefile
ad-agent_architecture-0.0.11 Rakefile
ad-agent_architecture-0.0.10 Rakefile
ad-agent_architecture-0.0.9 Rakefile
ad-agent_architecture-0.0.8 Rakefile
ad-agent_architecture-0.0.7 Rakefile
ad-agent_architecture-0.0.6 Rakefile
ad-agent_architecture-0.0.5 Rakefile