alexvollmer / clip

Yet another ruby command-line parser

This URL has Read+Write access

clip / Rakefile
100644 50 lines (41 sloc) 1.08 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
#!/usr/bin/env ruby
 
require 'rubygems'
require 'hoe'
require './lib/clip.rb'
 
Hoe.spec('clip') do |p|
  p.version = Clip::VERSION
  p.name = 'clip'
  p.developer('Alex Vollmer', 'alex.vollmer@gmail.com')
  p.description = p.paragraphs_of('README.txt', 5..5).join("\n\n")
  p.summary = 'Command-line parsing made short and sweet'
  p.url = 'http://clip.rubyforge.org'
  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
  p.remote_rdoc_dir = ''
end
 
require "spec/rake/spectask"
Spec::Rake::SpecTask.new do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
end
 
HERE = "web"
THERE = "avollmer@clip.rubyforge.org:/var/www/gforge-projects/clip"
 
desc "Sync web files here"
task :sync_here do
  puts %x(rsync \
--verbose \
--recursive \
#{THERE}/ #{HERE})
end
 
desc "Sync web files there"
task :sync_there do
  puts %x(rsync \
--verbose \
--recursive \
--delete \
#{HERE}/ #{THERE}})
end
 
desc "Code statistics"
task :stats do
  require 'code_statistics'
  CodeStatistics.new(['lib'], ['spec']).to_s
end
 
task :default => :spec