Sha256: 8d928c912b1ecb1fd8cda05800b83ca167011f6a2697ffad9e7a97eb0431aeaa

Contents?: true

Size: 636 Bytes

Versions: 1

Compression:

Stored size: 636 Bytes

Contents

require 'rake'
require 'rake/clean'
require 'rake/testtask'

CLEAN.include('**/*.gem', '**/*.rbc', '**/*.lock')

namespace :gem do
  desc 'Build the attempt gem'
  task :create => [:clean] do
    require 'rubygems/package'
    spec = eval(IO.read('attempt.gemspec'))
    spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
    Gem::Package.build(spec, true)
  end

  desc "Install the attempt gem"
  task :install => [:create] do
    file = Dir["*.gem"].first
    sh "gem install -l #{file}"
  end
end

Rake::TestTask.new do |t|
  task :test => :clean
  t.warning = true
  t.verbose = true
end

task :default => :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
attempt-0.5.1 Rakefile