Sha256: d284768750f2d03494abbf3d38002989b69710a05f17817f4b9b4f25705aeffd

Contents?: true

Size: 1.35 KB

Versions: 63

Compression:

Stored size: 1.35 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'

begin
require 'rspec/core/rake_task'
rescue LoadError
dump_load_path
raise
end

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


RSpec::Core::RakeTask.new do |t|
  # Put spec opts in a file named .rspec in root
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 => [:spec,:features]

Version data entries

63 entries across 63 versions & 21 rubygems

Version Path
dollar_to_euro-0.1.1 Rakefile
dollar_to_euro-0.1.0 Rakefile
bubblefish-0.1.2 Rakefile
bubblefish-0.1.1 Rakefile
bubblefish-0.1.0 Rakefile
infra-ctrl-0.1.6 Rakefile
infra-ctrl-0.1.5 Rakefile
electric_eye-0.1.4 Rakefile
electric_eye-0.1.3 Rakefile
electric_eye-0.1.1 Rakefile
electric_eye-0.1.0 Rakefile
imuzer-0.0.4 Rakefile
imuzer-0.0.3 Rakefile
imuzer-0.0.2 Rakefile
imuzer-0.0.1 Rakefile
kmkr-0.0.2 Rakefile
kmkr-0.0.1 Rakefile
electric_eye-0.0.5 Rakefile
electric_eye-0.0.3 Rakefile
ry-0.0.1 Rakefile