Sha256: e5a48bb3278c191d938f1024e727350accf4fdf042cf287c57a06364fe671df9

Contents?: true

Size: 710 Bytes

Versions: 2

Compression:

Stored size: 710 Bytes

Contents

require 'rubygems'
require 'rake'

lib_dir = File.expand_path('lib',File.dirname(__FILE__))
$LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)

require 'rubygems/tasks'
Gem::Tasks.new(
  :build => {:gem => true, :tar => true},
  :sign  => {:checksum => true, :pgp => true}
)

begin
  gem 'rspec', '~> 2.4'
  require 'rspec/core/rake_task'
  
  RSpec::Core::RakeTask.new
rescue LoadError
  task :spec do
    abort "Please run `gem install rspec` to install RSpec."
  end
end
task :test => :spec
task :default => :spec

begin
  gem 'yard', '~> 0.7'
  require 'yard'

  YARD::Rake::YardocTask.new  
rescue LoadError => e
  task :yard do
    abort 'Please run `gem install yard` to install YARD.'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubygems-tasks-0.1.0.pre2 Rakefile
rubygems-tasks-0.1.0.pre1 Rakefile