public
Description: Generic support for extracting GMail-style search keywords/values from strings
Homepage: http://codefluency.rubyforge.org/keyword_search
Clone URL: git://github.com/bruce/keyword_search.git
wbruce (author)
Tue Oct 09 01:10:05 -0700 2007
commit  a33479b476dc1cf96a75e80dd7c0d77bce9763ee
tree    44254d1504740248694757a57295034d72fb0769
parent  f0cad1153e1f62e7b031b34140f1249fd2e8a55d
keyword_search / Rakefile
100644 20 lines (16 sloc) 0.616 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- ruby -*-
 
require 'rubygems'
require 'hoe'
 
Hoe.new('keyword_search', '1.3.1') do |p|
  p.rubyforge_name = 'codefluency'
  p.summary = 'Generic support for extracting GMail-style search keywords/values from strings'
  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.author = 'Bruce Williams'
  p.email = 'bruce@codefluency.com'
  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
end
 
rule '.rb' => '.rl' do |t|
  sh "ragel -R #{t.source} | rlgen-ruby -o #{t.name}"
end
 
task :ragel => 'lib/keyword_search.rb'