Rakefile in http_configuration-1.0.0 vs Rakefile in http_configuration-1.0.1
- old
+ new
@@ -1,19 +1,17 @@
require 'rubygems'
require 'rake'
-require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
+require 'spec/rake/spectask'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test http_configuration.'
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.pattern = 'test/**/*_test.rb'
- t.verbose = true
+Spec::Rake::SpecTask.new(:test) do |t|
+ t.spec_files = 'spec/**/*_spec.rb'
end
desc 'Generate documentation for http_configuration.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
@@ -23,17 +21,17 @@
rdoc.rdoc_files.include('lib/**/*.rb')
end
spec = Gem::Specification.new do |s|
s.name = "http_configuration"
- s.version = "1.0.0"
+ s.version = "1.0.1"
s.author = "Brian Durand"
s.platform = Gem::Platform::RUBY
s.summary = "Provide configuration options for Net::HTTP"
s.files = FileList["lib/*", "init.rb", "MIT-LICENSE", 'Rakefile'].to_a
s.require_path = "lib"
s.autorequire = "init.rb"
- s.test_files = FileList["{test}/**/*_test.rb"].to_a
+ s.test_files = FileList["{spec}/**/*_spec.rb"].to_a
s.has_rdoc = true
s.extra_rdoc_files = ["README"]
end
Rake::GemPackageTask.new(spec) do |pkg|
\ No newline at end of file