Sha256: 452f7c731e6fe987f9577d56fa782a0a82ec38ad0454f683eb5cbd5385272a36

Contents?: true

Size: 728 Bytes

Versions: 44

Compression:

Stored size: 728 Bytes

Contents

# frozen_string_literal: true

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

GEM_NAME = 'drawio_dsl'

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'drawio_dsl/version'

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

require 'rake/extensiontask'

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

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

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

44 entries across 44 versions & 1 rubygems

Version Path
drawio_dsl-0.12.4 Rakefile
drawio_dsl-0.12.3 Rakefile
drawio_dsl-0.12.2 Rakefile
drawio_dsl-0.12.1 Rakefile
drawio_dsl-0.12.0 Rakefile
drawio_dsl-0.11.8 Rakefile
drawio_dsl-0.11.7 Rakefile
drawio_dsl-0.11.6 Rakefile
drawio_dsl-0.11.5 Rakefile
drawio_dsl-0.11.4 Rakefile
drawio_dsl-0.11.3 Rakefile
drawio_dsl-0.11.2 Rakefile
drawio_dsl-0.11.1 Rakefile
drawio_dsl-0.11.0 Rakefile
drawio_dsl-0.10.1 Rakefile
drawio_dsl-0.10.0 Rakefile
drawio_dsl-0.9.0 Rakefile
drawio_dsl-0.8.11 Rakefile
drawio_dsl-0.8.10 Rakefile
drawio_dsl-0.8.9 Rakefile