Rakefile in rack-reverse-proxy-0.1.0 vs Rakefile in rack-reverse-proxy-0.2.0
- old
+ new
@@ -8,41 +8,35 @@
gem.summary = %Q{A Simple Reverse Proxy for Rack}
gem.description = %Q{A Rack based reverse proxy for basic needs. Useful for testing or in cases where webserver configuration is unavailable.}
gem.email = "jaswope@gmail.com"
gem.homepage = "http://github.com/jaswope/rack-reverse-proxy"
gem.authors = ["Jon Swope"]
- gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
+ gem.add_development_dependency "rspec", ">= 0"
+ gem.add_development_dependency "rack-test", ">= 0"
+ gem.add_development_dependency "webmock", ">= 0"
gem.add_dependency "rack", ">= 1.0.0"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
-require 'rake/testtask'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
+require 'spec/rake/spectask'
+Spec::Rake::SpecTask.new(:spec) do |spec|
+ spec.libs << 'lib' << 'spec'
+ spec.spec_files = FileList['spec/**/*_spec.rb']
end
-begin
- require 'rcov/rcovtask'
- Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
- end
-rescue LoadError
- task :rcov do
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
- end
+Spec::Rake::SpecTask.new(:rcov) do |spec|
+ spec.libs << 'lib' << 'spec'
+ spec.pattern = 'spec/**/*_spec.rb'
+ spec.rcov = true
end
-task :test => :check_dependencies
+task :spec => :check_dependencies
-task :default => :test
+task :default => :spec
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""