Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 55 lines (45 sloc) 1.608 kb
bb63e1f Imported project to github
Bartosz Blimke authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "webmock"
8 gem.summary = %Q{Library for stubbing HTTP requests in Ruby.}
9 gem.description = %Q{WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.}
10 gem.email = "bartosz.blimke@gmail.com"
11 gem.homepage = "http://github.com/bblimke/webmock"
12 gem.authors = ["Bartosz Blimke"]
13 gem.add_development_dependency "rspec", ">= 1.2.9"
14 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15 end
16 Jeweler::GemcutterTasks.new
17 rescue LoadError
18 puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
19 end
20
21 require 'spec/rake/spectask'
22 Spec::Rake::SpecTask.new(:spec) do |spec|
23 spec.libs << 'lib' << 'spec'
24 spec.spec_files = FileList['spec/**/*_spec.rb'].exclude("spec/vendor")
25 end
26
27 Spec::Rake::SpecTask.new(:rcov) do |spec|
28 spec.libs << 'lib' << 'spec'
29 spec.pattern = 'spec/**/*_spec.rb'
30 spec.rcov = true
31 end
32
33 require 'rake/testtask'
34 Rake::TestTask.new(:test) do |test|
35 test.test_files = FileList["test/**/*.rb"].exclude("test/test_helper.rb")
36 test.verbose = false
37 test.warning = true
38 end
39
40 task :spec => :check_dependencies
41
42 task :test => :check_dependencies
43
44 task :default => [:spec, :test]
45
46 require 'rake/rdoctask'
47 Rake::RDocTask.new do |rdoc|
48 version = File.exist?('VERSION') ? File.read('VERSION') : ""
49
50 rdoc.rdoc_dir = 'rdoc'
51 rdoc.title = "webmock #{version}"
52 rdoc.rdoc_files.include('README*')
53 rdoc.rdoc_files.include('lib/webmock/webmock.rb')
54 end
Something went wrong with that request. Please try again.