Sha256: 1c7cfb0454375d7af05fd5258d651bc77554c0916f95f5ce8f2fa0d90a42b1d8
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 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 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 Rake::RDocTask.new do |rd| rd.main = "README.rdoc" rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*") end task :default => [:spec]
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
lumione-0.1.0 | Rakefile |
slack_mb_roamer-0.1.2 | Rakefile |
slack_mb_roamer-0.1.1 | Rakefile |
slack_mb_roamer-0.1.0 | Rakefile |