Sha256: d2782b09e9b0ab8e5036ee4ebd946017f564db35df1b51196e23ded1d9f04a7f

Contents?: true

Size: 1.46 KB

Versions: 4

Compression:

Stored size: 1.46 KB

Contents

require "rake"
require 'rake/contrib/rubyforgepublisher'
require 'rake/clean'
require 'rake/testtask'
require 'rake/rdoctask'

desc "Runs the Rspec suite"
task(:default) do
  run_suite
end

desc "Runs the Rspec suite"
task(:spec) do
  run_suite
end

def run_suite
  dir = File.dirname(__FILE__)
  system("ruby #{dir}/spec/spec_suite.rb") || raise("Spec Suite failed")
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name = "rr"
    s.summary = "RR (Double Ruby) is a double framework that features a rich " <<
                "selection of double techniques and a terse syntax. " <<
                "http://xunitpatterns.com/Test%20Double.html"
    s.email = "brian@pivotallabs.com"
    s.homepage = "http://pivotallabs.com"
    s.description = "RR (Double Ruby) is a double framework that features a rich " <<
                    "selection of double techniques and a terse syntax. " <<
                    "http://xunitpatterns.com/Test%20Double.html"
    s.authors = ["Brian Takita"]
    s.files = FileList[
      '[A-Z]*',
      '*.rb',
      'lib/**/*.rb',
      'spec/**/*.rb'
    ].to_a
    s.test_files = Dir.glob('spec/*_spec.rb')
    s.has_rdoc = true
    s.extra_rdoc_files = [ "README.rdoc", "CHANGES" ]
    s.rdoc_options = ["--main", "README.rdoc", "--inline-source", "--line-numbers"]
    s.rubyforge_project = "pivotalrb"
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rr-0.10.0 Rakefile
rr-0.9.0 Rakefile
rr-0.8.0 Rakefile
rr-0.8.1 Rakefile