public
Fork of unwire/handsoap
Description: Handsoap is a library for creating SOAP clients in Ruby
Homepage: http://github.com/unwire/handsoap
Clone URL: git://github.com/troelskn/handsoap.git
handsoap / Rakefile
100644 48 lines (42 sloc) 1.679 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- coding: utf-8 -*-
begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "handsoap"
    gemspec.summary = "Handsoap is a library for creating SOAP clients in Ruby"
    gemspec.email = "troelskn@gmail.com"
    gemspec.homepage = "http://github.com/troelskn/handsoap"
    gemspec.description = gemspec.summary
    gemspec.authors = ["Troels Knak-Nielsen"]
    gemspec.requirements << "You need to install either \"curb\" or \"httpclient\", using one of:\n gem install curb\n gem install httpclient"
    gemspec.requirements << "It is recommended that you install either \"nokogiri\" or \"libxml-ruby\""
    gemspec.files = FileList['lib/**/*.rb', 'generators/handsoap/templates', 'generators/**/*', '[A-Z]*.*'].to_a
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
 
desc "Generates API documentation"
task :rdoc do
  sh "rm -rf doc && rdoc lib"
end
 
require 'rake/testtask'
namespace :test do
  desc "Remove temporary files generated by test case"
  task :cleanup do
    puts "Clearing temporary files"
    sh "rm -rf tests/rails_root"
  end
  Rake::TestTask.new :test do |test|
    # Rake::Task['test:cleanup'].invoke
    test.test_files = FileList.new('tests/**/*_test.rb') do |list|
      list.exclude 'tests/benchmark_integration_test.rb'
      list.exclude 'tests/service_integration_test.rb'
      list.exclude 'tests/httpauth_integration_test.rb'
    end
    test.libs << 'tests'
    test.verbose = true
  end
end
 
desc "Run tests and clean up afterwards"
task :test => ["test:cleanup", "test:test", "test:cleanup"]
 
task :default => [:test]