Rakefile in jm81-whois-0.6.0 vs Rakefile in jm81-whois-0.7.0
- old
+ new
@@ -1,31 +1,11 @@
require 'rake'
require 'rake/testtask'
-require 'rake/rdoctask'
+require 'rdoc/task'
require 'rubygems'
require File.join(File.dirname(__FILE__), 'lib', 'whois', 'version')
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "jm81-whois"
- gem.version = Whois::VERSION.dup
- gem.summary = %Q{Ruby library for accessing Whois information}
- gem.description = <<EOF
-This library presents whois information for domains in a variety of TLD's
-through a standardized API.
-EOF
- gem.email = "jmorgan@morgancreative.net"
- gem.homepage = "http://github.com/jm81/whois"
- gem.authors = ["Jared Morgan"]
- # 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: sudo gem install jeweler"
-end
-
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the whois gem.'
Rake::TestTask.new(:test) do |t|
@@ -38,10 +18,10 @@
if File.exist?('VERSION')
version = File.read('VERSION')
else
version = ""
end
-
+
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Whois #{version}'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')