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