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
Search Repo:
keyword_search / Rakefile
100644 20 lines (16 sloc) 0.573 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 'echoe'
 
Echoe.new 'keyword_search' do |p|
  p.version = '1.3.1'
  p.author = "Bruce Williams"
  p.email = 'bruce@codefluency.com'
  p.project = 'codefluency'
  p.summary = "Generic library to parse GMail-style search strings for keyword/value pairs; supports definition of valid keywords and handling of quoted values."
  p.url = "http://github.com/bruce/keyword_search"
  p.include_rakefile = true
end
 
rule '.rb' => '.rl' do |t|
  sh "ragel -R #{t.source} | rlgen-ruby -o #{t.name}"
end
 
task :ragel => 'lib/keyword_search.rb'