Sha256: 534dd6b0b660787e70e534b3d978d9f612107842c38e8988b689f225d4d14b9f

Contents?: true

Size: 787 Bytes

Versions: 34

Compression:

Stored size: 787 Bytes

Contents

# frozen_string_literal: true

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

GEM_NAME = 'rails_app_generator'

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

require 'pry'

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

require 'rake/extensiontask'

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

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

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

34 entries across 34 versions & 1 rubygems

Version Path
rails_app_generator-0.2.13 Rakefile
rails_app_generator-0.2.12 Rakefile
rails_app_generator-0.2.11 Rakefile
rails_app_generator-0.2.10 Rakefile
rails_app_generator-0.2.9 Rakefile
rails_app_generator-0.2.8 Rakefile
rails_app_generator-0.2.7 Rakefile
rails_app_generator-0.2.6 Rakefile
rails_app_generator-0.2.5 Rakefile
rails_app_generator-0.2.4 Rakefile
rails_app_generator-0.2.3 Rakefile
rails_app_generator-0.2.2 Rakefile
rails_app_generator-0.2.1 Rakefile
rails_app_generator-0.2.0 Rakefile
rails_app_generator-0.1.28 Rakefile
rails_app_generator-0.1.27 Rakefile
rails_app_generator-0.1.26 Rakefile
rails_app_generator-0.1.25 Rakefile
rails_app_generator-0.1.24 Rakefile
rails_app_generator-0.1.23 Rakefile