public
Description: URITemplate is a parser for URI Templates as defined in the URI Template specification (http://bitworking.org/projects/URI-Templates).
Homepage: http://uri-templates.rubyforge.org/
Clone URL: git://github.com/juretta/uri-templates.git
Stefan Saasen (author)
Thu Mar 13 21:13:21 -0700 2008
commit  ae3954a99ce892a2a83367f43aefdb936b2ad078
tree    4453fc7571f0e84b4779111081010ebb54b5e03c
parent  b32c5a44a3ad97119660aeeff00b64944bf5d885
uri-templates / Rakefile
100644 34 lines (27 sloc) 0.931 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
# -*- ruby -*-
 
require 'rubygems'
require 'hoe'
require './lib/uri_template/version.rb'
 
Hoe.new('uri_templates', UriTemplate::VERSION) do |p|
  p.rubyforge_name = 'uri_templates'
  p.author = 'Stefan Saasen'
  p.email = 's@juretta.com'
  # p.summary = 'FIX'
  # p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
  # p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
end
 
desc "Create the UriTemplate parser from the Treetop grammar"
task :generate_parser do
  sh 'tt grammar/uri_template.treetop -o lib/uri_template/grammar.rb'
end
 
desc 'Measures test coverage'
task :coverage do
  rm_f "coverage"
  rm_f "coverage.data"
  rcov = "rcov --aggregate coverage.data --text-summary -o coverage -Ilib"
  system("#{rcov} test/test_*.rb")
  system("open coverage/index.html") if PLATFORM['darwin']
  rm_f "coverage"
end
 
 
# vim: syntax=Ruby