forked from bblimke/webmock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
53 lines (45 loc) · 1.74 KB
/
Rakefile
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
49
50
51
52
53
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "webmock"
gem.summary = %Q{Library for stubbing HTTP requests in Ruby.}
gem.description = %Q{WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.}
gem.email = "[email protected]"
gem.homepage = "http://github.com/bblimke/webmock"
gem.authors = ["Bartosz Blimke"]
gem.add_dependency "addressable", ">= 2.2.2"
gem.add_dependency "crack", ">=0.1.7"
gem.add_development_dependency "rspec", ">= 2.0.0"
gem.add_development_dependency "httpclient", ">= 2.1.5.2"
gem.add_development_dependency "patron", ">= 0.4.9" unless RUBY_PLATFORM =~ /java/
gem.add_development_dependency "em-http-request", ">= 0.2.14" unless RUBY_PLATFORM =~ /java/
gem.add_development_dependency "curb", ">= 0.7.8" unless RUBY_PLATFORM =~ /java/
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
t.pattern = 'spec/**/*_spec.rb'
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.test_files = FileList["test/**/*.rb"].exclude("test/test_helper.rb")
test.verbose = false
test.warning = false
end
task :spec => :check_dependencies
task :test => :check_dependencies
task :default => [:spec, :test]
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "webmock #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/webmock/webmock.rb')
end