Sha256: a54d026c416e2815a26801abd7f7cd7d3bab422e440640140d33196b5e8d9b35

Contents?: true

Size: 738 Bytes

Versions: 1

Compression:

Stored size: 738 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'
require 'bundler'

gemspec = eval(File.read(Dir['*.gemspec'].first))
gemfile = [gemspec.name, gemspec.version].join('-') + '.gem'

desc 'Validate gemspec'
task :gemspec do
  gemspec.validate
end

desc 'Run minitest'
task :test do
  Rake::TestTask.new do |t|
    t.libs << 'spec'
    t.test_files = FileList['spec/**/*_spec.rb']
    t.warning = true
    t.verbose = true
  end
end

desc 'Build gem'
task :build

desc 'Install gem'
task install: :build do
  system "sudo -E sh -c 'umask 022; gem install gems/#{gemfile}'"
end

desc 'Remove gems'
task :clean do
  FileUtils.rm_rf 'pkg'
end

desc 'Push to rubygems'
task :push do
  system "gem push pkg/#{gemfile}"
end

task default: :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asetus-0.4.0 Rakefile