Skip to content
This repository
Newer
Older
100644 63 lines (50 sloc) 1.7 kb
be24e730 »
2009-06-29 Base GEM skeleton.
1 $:.unshift(File.dirname(__FILE__) + "/lib")
2
3 require 'rubygems'
4 require 'rake'
5 require 'echoe'
6 require 'whois'
7d615eca »
2009-12-01 Extended Rdoc with Hanna.
7 require 'rake/rdoctask'
8 require 'hanna/rdoctask'
be24e730 »
2009-06-29 Base GEM skeleton.
9
10 # Common package properties
11 PKG_NAME = ENV['PKG_NAME'] || Whois::GEM
12 PKG_VERSION = ENV['PKG_VERSION'] || Whois::VERSION
c98aec4e »
2009-08-09 Release Whois 0.5.0
13 RUBYFORGE_PROJECT = 'whois'
be24e730 »
2009-06-29 Base GEM skeleton.
14
15 if ENV['SNAPSHOT'].to_i == 1
16 PKG_VERSION << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
17 end
18
19
20 Echoe.new(PKG_NAME, PKG_VERSION) do |p|
21 p.author = "Simone Carletti"
22 p.email = "weppos@weppos.net"
578b5fc1 »
2009-09-28 No longer a simple client! :)
23 p.summary = "An intelligent pure Ruby WHOIS client and parser."
50efc7e1 »
2010-02-03 Updated project page
24 p.url = "http://www.ruby-whois.org"
be24e730 »
2009-06-29 Base GEM skeleton.
25 p.project = RUBYFORGE_PROJECT
c98aec4e »
2009-08-09 Release Whois 0.5.0
26 p.description = <<-EOD
578b5fc1 »
2009-09-28 No longer a simple client! :)
27 Whois is an intelligent WHOIS client and parser written in pure Ruby. \
50efc7e1 »
2010-02-03 Updated project page
28 It can query registry data for IPv4, IPv6 and top level domains, \
578b5fc1 »
2009-09-28 No longer a simple client! :)
29 parse and convert responses into easy-to-use Ruby objects.
c98aec4e »
2009-08-09 Release Whois 0.5.0
30 EOD
be24e730 »
2009-06-29 Base GEM skeleton.
31
32 p.need_zip = true
33
34 p.development_dependencies += ["rake ~>0.8",
7d615eca »
2009-12-01 Extended Rdoc with Hanna.
35 "hanna ~>0.1.12",
be24e730 »
2009-06-29 Base GEM skeleton.
36 "echoe ~>3.1",
37 "mocha ~>0.9"]
38
7d615eca »
2009-12-01 Extended Rdoc with Hanna.
39 p.rdoc_options = ["--inline-source", "-T", "hanna"]
c1247958 »
2009-08-09 rake coverage task crashes.
40 p.rcov_options = ["-Itest -x mocha,rcov,Rakefile"]
be24e730 »
2009-06-29 Base GEM skeleton.
41 end
42
43
54b1d165 »
2009-06-29 Added Rake :console task.
44 desc "Open an irb session preloaded with this library"
45 task :console do
46 sh "irb -rubygems -I lib -r whois.rb"
47 end
48
be24e730 »
2009-06-29 Base GEM skeleton.
49 begin
50 require 'code_statistics'
51 desc "Show library's code statistics"
52 task :stats do
53 CodeStatistics.new(["Whois", "lib"],
54 ["Tests", "test"]).to_s
55 end
56 rescue LoadError
57 puts "CodeStatistics (Rails) is not available"
58 end
afb4065b »
2009-07-01 Super simple and super buggy initial version. It works, but sometimes…
59
60 Dir["tasks/**/*.rake"].each do |file|
61 load(file)
62 end
Something went wrong with that request. Please try again.