public
Description: Ruby client for del.icio.us API.
Homepage: http://code.simonecarletti.com/www-delicious
Clone URL: git://github.com/weppos/www-delicious.git
weppos (author)
Mon Jun 29 06:31:27 -0700 2009
commit  bd21344d68d05fb893acdfbe5a97cd5965841617
tree    742188aa5a06ea6a1f0306ace31bccf6d070968f
parent  f0c8d41bda4e05832d64a5ba1771291ce0d0fe27
www-delicious / Rakefile
100644 58 lines (46 sloc) 1.704 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
require 'rubygems'
require 'rake'
 
gem 'echoe', '>= 3.1'
require 'echoe'
 
$:.unshift(File.dirname(__FILE__) + "/lib")
require 'www/delicious'
 
 
# Common package properties
PKG_NAME = ENV['PKG_NAME'] || WWW::Delicious::GEM
PKG_VERSION = ENV['PKG_VERSION'] || WWW::Delicious::VERSION
PKG_SUMMARY = "Ruby client for del.icio.us API."
PKG_FILES = FileList.new("{lib,test}/**/*.rb") do |files|
  files.include %w(README.rdoc CHANGELOG.rdoc LICENSE.rdoc)
  files.include %w(Rakefile setup.rb)
end
RUBYFORGE_PROJECT = 'www-delicious'
 
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 = PKG_SUMMARY
  p.description = <<-EOD
WWW::Delicious is a del.icio.us API client implemented in Ruby. \
It provides access to all available del.icio.us API queries \
and returns the original XML response as a friendly Ruby object.
EOD
  p.url = "http://code.simonecarletti.com/www-delicious"
  p.project = RUBYFORGE_PROJECT
 
  p.need_zip = true
  p.rcov_options = ["--main << README.rdoc -x Rakefile -x mocha -x rcov"]
  p.rdoc_pattern = /^(lib|CHANGELOG.rdoc|README.rdoc)/
 
  p.development_dependencies += ["rake >=0.8",
                                 "echoe >=3.1",
                                 "mocha >=0.9"]
end
 
 
begin
  require 'code_statistics'
  desc "Show library's code statistics"
  task :stats do
    CodeStatistics.new(["WWW::Delicious", "lib"],
                       ["Tests", "test"]).to_s
  end
rescue LoadError
  puts "CodeStatistics (Rails) is not available"
end