Permalink
Browse files

Add support for rubygems-test.

  • Loading branch information...
1 parent 009e79d commit 5f264179a2335e59c1dd094e92370f7079ed764b @weppos committed Feb 13, 2011
Showing with 13 additions and 8 deletions.
  1. 0 .gemtest
  2. +4 −2 CHANGELOG.rdoc
  3. +6 −3 Rakefile
  4. +3 −3 whois.gemspec
View
No changes.
View
@@ -40,6 +40,9 @@
* NEW: whois.ripn.net now supports #registry and #admin_contact (#72).
+* NEW: Added support for $ gem test and Gem Testers
+ See http://www.engineyard.com/blog/2011/introducing-gem-testers/
+
* CHANGED: Renamed whois.centralnic.net to whois.centralnic.com (#28).
* CHANGED: Switched from RDoc to YARDoc (#3).
@@ -52,8 +55,7 @@
* CHANGED: Renamed Whois::Server::Adapters::Base#append_to_buffer to buffer_append.
-* CHANGED: Whois::Answer::Parser::Base#throttle? returns false to differentiate
- the abstract method from a real implementation (that returns true/false).
+* CHANGED: Whois::Answer::Parser::Base#throttle? returns false to differentiate the abstract method from a real implementation (that returns true/false).
* CHANGED: Removed &block from method definition to avoid creating block objects when yield is used (#66)
View
@@ -18,7 +18,8 @@ end
# Run test by default.
-task :default => [:rspec, :test]
+task :default => :test
+task :test => [:rspec, :testunit]
# This builds the actual gem. For details of what all these options
# mean, and other ones you can add, check the documentation here:
@@ -46,7 +47,9 @@ spec = Gem::Specification.new do |s|
s.extra_rdoc_files = Dir.glob("*.rdoc")
s.rdoc_options = %w( --main README.rdoc )
- s.files = Dir.glob("*.{rdoc,gemspec}") + Dir.glob("{bin,lib}/**/*") + %w( LICENSE )
+ s.files = %w( Rakefile LICENSE .gemtest .rspec .yardopts ) +
+ Dir.glob("*.{rdoc,gemspec}") +
+ Dir.glob("{bin,lib,test,spec}/**/*")
s.executables = ["ruby-whois"]
s.require_paths = ["lib"]
@@ -79,7 +82,7 @@ end
RSpec::Core::RakeTask.new(:rspec)
# Run all the tests in the /test folder
-Rake::TestTask.new do |t|
+Rake::TestTask.new(:testunit) do |t|
t.libs << "test"
t.test_files = FileList["test/**/*_test.rb"]
t.verbose = true
View

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 5f26417

Please sign in to comment.