Sha256: cc0ebb4f810a91b734c59e3d63150a9aaad15166149a2e4f5bdba928712dcf0f

Contents?: true

Size: 1.3 KB

Versions: 6

Compression:

Stored size: 1.3 KB

Contents

require "rake"
require "spec/rake/spectask"
require "spec/rake/verify_rcov"

task :default => :spec

Spec::Rake::SpecTask.new do |spec|
  spec.spec_files = FileList["spec/{savon}/**/*_spec.rb"]
  spec.spec_opts << "--color"
  spec.libs += ["lib", "spec"]
  spec.rcov = true
end

RCov::VerifyTask.new(:spec_verify => :spec) do |verify|
  verify.threshold = 100.0
  verify.index_html = "rcov/index.html"
end

desc "Run integration specs using WEBrick"
task :spec_integration do
  pid = fork { exec "ruby spec/integration/server.rb" }
  sleep 10 # wait until the server is actually ready
  begin
    task(:run_integration_spec).invoke
  ensure
    Process.kill "TERM", pid
    Process.wait pid
  end
end

desc "" # make this task invisible
Spec::Rake::SpecTask.new(:run_integration_spec) do |spec|
  spec.spec_files = FileList["spec/{integration}/**/*_spec.rb"]
  spec.spec_opts << "--color"
  spec.libs += ["lib", "spec"]
end

begin
  require "hanna/rdoctask"

  Rake::RDocTask.new do |rdoc|
    rdoc.title = "Savon - Heavy metal Ruby SOAP client library"
    rdoc.rdoc_dir = "doc"
    rdoc.rdoc_files.include("**/*.rdoc").include("lib/**/*.rb")
    rdoc.options << "--line-numbers"
    rdoc.options << "--webcvs=http://github.com/rubiii/savon/tree/master/"
  end
rescue LoadError
  puts "'gem install hanna' for documentation"
end

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
tictoc-savon-0.7.9 Rakefile
pyu-savon-0.7.9.3 Rakefile
hoopla-savon-0.7.9 Rakefile
savon-0.7.9 Rakefile
savon-0.7.8 Rakefile
savon-0.7.7 Rakefile