Sha256: 4e1cdbef5e84ccdcbb2bd694551dece80017b3b5ca6701b1f8ac88d0ac30e490

Contents?: true

Size: 739 Bytes

Versions: 32

Compression:

Stored size: 739 Bytes

Contents

# frozen_string_literal: true

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

GEM_NAME = 'handlebarsjs'

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

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

require 'rake/extensiontask'

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

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

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

32 entries across 32 versions & 1 rubygems

Version Path
handlebarsjs-0.5.5 Rakefile
handlebarsjs-0.5.4 Rakefile
handlebarsjs-0.5.3 Rakefile
handlebarsjs-0.5.2 Rakefile
handlebarsjs-0.5.1 Rakefile
handlebarsjs-0.5.0 Rakefile
handlebarsjs-0.4.0 Rakefile
handlebarsjs-0.3.0 Rakefile
handlebarsjs-0.2.0 Rakefile
handlebarsjs-0.1.2 Rakefile
handlebarsjs-0.1.1 Rakefile
handlebarsjs-0.1.0 Rakefile