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