Sha256: c1c818f399dad0b61eb4b1e7675b59b26c474db2ee39892a03857917b83f5726
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 KB
Contents
$:.unshift(File.dirname(__FILE__) + "/lib") require 'whois' require 'rubygems' require 'rake' require 'echoe' require 'rake/rdoctask' require 'hanna/rdoctask' # Common package properties PKG_NAME = ENV['PKG_NAME'] || Whois::GEM PKG_VERSION = ENV['PKG_VERSION'] || Whois::VERSION RUBYFORGE_PROJECT = 'whois' if ENV['SNAPSHOT'].to_i == 1 PKG_VERSION << "." << Time.now.utc.strftime("%Y%m%d%H%M%S") end Echoe.new(PKG_NAME, PKG_VERSION) do |p| p.author = "Simone Carletti" p.email = "weppos@weppos.net" p.summary = "An intelligent pure Ruby WHOIS client and parser." p.url = "http://www.ruby-whois.org" p.project = RUBYFORGE_PROJECT p.description = <<-EOD Whois is an intelligent WHOIS client and parser written in pure Ruby. \ It can query registry data for IPv4, IPv6 and top level domains, \ parse and convert responses into easy-to-use Ruby objects. EOD p.need_zip = true p.development_dependencies += ["rake 0.8.7", "hanna 0.1.12", "echoe 4.1", "mocha 0.9.8"] p.rdoc_options = ["--inline-source", "-T", "hanna"] p.rcov_options = ["-Itest -x mocha,rcov,Rakefile"] end desc "Open an irb session preloaded with this library" task :console do sh "irb -rubygems -I lib -r whois.rb" end begin require 'code_statistics' desc "Show library's code statistics" task :stats do CodeStatistics.new(["Whois", "lib"], ["Tests", "test"]).to_s end rescue LoadError puts "CodeStatistics (Rails) is not available" end Dir["tasks/**/*.rake"].each do |file| load(file) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-1.0.0 | Rakefile |