Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 58 lines (44 sloc) 1.434 kb
28f1ad7 @rinzi first commit
rinzi authored
1 $:.unshift(File.dirname(__FILE__) + "/lib")
2
3 require 'rubygems'
4 require 'rake'
5 require 'echoe'
6 require 'robotstxt'
7
8
9 # Common package properties
10 PKG_NAME = 'robotstxt'
11 PKG_VERSION = Robotstxt::VERSION
12 RUBYFORGE_PROJECT = 'robotstxt'
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 Rinzivillo"
21 p.email = "srinzivillo@gmail.com"
22 p.summary = "Robotstxt is an Ruby robots.txt file parser"
23 p.url = "http://www.simonerinzivillo.it"
24 p.project = RUBYFORGE_PROJECT
25 p.description = <<-EOD
26 Robotstxt Parser allows you to the check the accessibility of URLs and get other data. \
27 Full support for the robots.txt RFC, wildcards and Sitemap: rules.
28 EOD
29
30 p.need_zip = true
31
32 p.development_dependencies += ["rake ~>0.8",
33 "echoe ~>3.1"]
34
35 p.rcov_options = ["-Itest -x mocha,rcov,Rakefile"]
36 end
37
38
39 desc "Open an irb session preloaded with this library"
40 task :console do
41 sh "irb -rubygems -I lib -r robotstxt.rb"
42 end
43
44 begin
45 require 'code_statistics'
46 desc "Show library's code statistics"
47 task :stats do
48 CodeStatistics.new(["Robotstxt", "lib"],
49 ["Tests", "test"]).to_s
50 end
51 rescue LoadError
52 puts "CodeStatistics (Rails) is not available"
53 end
54
55 Dir["tasks/**/*.rake"].each do |file|
56 load(file)
57 end
Something went wrong with that request. Please try again.