Sha256: 2fc190439759301e9d5a9806d423c7a20ddb17a10f5b2975714667faad0bd5dc

Contents?: true

Size: 1.27 KB

Versions: 154

Compression:

Stored size: 1.27 KB

Contents

def dump_load_path
  puts $LOAD_PATH.join("\n")
  found = nil
  $LOAD_PATH.each do |path|
    if File.exists?(File.join(path,"rspec"))
      puts "Found rspec in #{path}"
      if File.exists?(File.join(path,"rspec","core"))
        puts "Found core"
        if File.exists?(File.join(path,"rspec","core","rake_task"))
          puts "Found rake_task"
          found = path
        else
          puts "!! no rake_task"
        end
      else
        puts "!!! no core"
      end
    end
  end
  if found.nil?
    puts "Didn't find rspec/core/rake_task anywhere"
  else
    puts "Found in #{path}"
  end
end
require 'bundler'
require 'rake/clean'

require 'rake/testtask'

require 'cucumber'
require 'cucumber/rake/task'
gem 'rdoc' # we need the installed RDoc gem, not the system one
require 'rdoc/task'

include Rake::DSL

Bundler::GemHelper.install_tasks


Rake::TestTask.new do |t|
  t.pattern = 'test/tc_*.rb'
end


CUKE_RESULTS = 'results.html'
CLEAN << CUKE_RESULTS
Cucumber::Rake::Task.new(:features) do |t|
  t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x"
  t.fork = false
end

Rake::RDocTask.new do |rd|
  
  rd.main = "README.rdoc"
  
  rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
end

task :default => [:test,:features]

Version data entries

154 entries across 154 versions & 28 rubygems

Version Path
clearsight-0.0.6 Rakefile
clearsight-0.0.5 Rakefile
clearsight-0.0.4 Rakefile
clearsight-0.0.2 Rakefile
stack-kicker-0.0.26 Rakefile
stack-kicker-0.0.25 Rakefile
stack-kicker-0.0.24 Rakefile
stack-kicker-0.0.23 Rakefile
karo-2.3.5 Rakefile
script-ci-lib-0.0.6 Rakefile
karo-2.3.4 Rakefile
karo-2.3.3 Rakefile
karo-2.3.2 Rakefile
karo-2.3.1 Rakefile
karo-2.3.0 Rakefile
karo-2.2.1 Rakefile
script-ci-lib-0.0.5 Rakefile
karo-2.2.0 Rakefile
karo-2.1.3 Rakefile
karo-2.1.2 Rakefile