Sha256: c3e42482ae1a085d0be028095189548ef10e1d7e97bbeb4f1989d410fd9fe121

Contents?: true

Size: 615 Bytes

Versions: 2

Compression:

Stored size: 615 Bytes

Contents

require 'rake'
require 'rake/clean'
require 'rspec/core/rake_task'

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

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

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

desc "Run the test suite"
RSpec::Core::RakeTask.new(:spec)

task :default => :spec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
attempt-0.6.3 Rakefile
attempt-0.6.2 Rakefile