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