keyword_search 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.txt +2 -2
- data/Rakefile +1 -1
- data/lib/keyword_search.rb +1 -1
- metadata +2 -2
data/README.txt
CHANGED
@@ -23,8 +23,7 @@ Development Roadmap:
|
|
23
23
|
|
24
24
|
== SYNOPSIS:
|
25
25
|
|
26
|
-
Here's an example of usage from Rails
|
27
|
-
* Note that the library is generic, and could presumably be used for any Ruby project.
|
26
|
+
Here's an example of usage from Rails (though the library is generic, and could presumably be used for any Ruby project)
|
28
27
|
|
29
28
|
# Some variables to build up
|
30
29
|
clauses = []
|
@@ -32,6 +31,7 @@ Here's an example of usage from Rails.
|
|
32
31
|
|
33
32
|
# Search a string, defining the supported keywords and building up
|
34
33
|
# the variables in the associated closures
|
34
|
+
|
35
35
|
KeywordSearch.search('account has:attachment since:2006-12-03') do |with|
|
36
36
|
|
37
37
|
with.default_keyword :title
|
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ require 'hoe'
|
|
5
5
|
require './lib/keyword_search.rb'
|
6
6
|
|
7
7
|
Hoe.new('keyword_search', KeywordSearch::VERSION) do |p|
|
8
|
-
p.rubyforge_name = '
|
8
|
+
p.rubyforge_name = 'codefluency'
|
9
9
|
p.summary = 'Generic support for extracting GMail-style search keywords/values from strings'
|
10
10
|
p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
|
11
11
|
p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
|
data/lib/keyword_search.rb
CHANGED
metadata
CHANGED
@@ -3,14 +3,14 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: keyword_search
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
6
|
+
version: 1.0.1
|
7
7
|
date: 2007-01-08 00:00:00 -07:00
|
8
8
|
summary: Generic support for extracting GMail-style search keywords/values from strings
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: bruce@codefluency.com
|
12
12
|
homepage: " http://codefluency.rubyforge.org/keyword_search"
|
13
|
-
rubyforge_project:
|
13
|
+
rubyforge_project: codefluency
|
14
14
|
description: "== FEATURES/PROBLEMS: The library features a very simple, easy-to-use API. * Define handlers for supported keywords with blocks * Define the default keyword (values not part of a keyword/value pair) Various notes: * Quoted values are supported. * Input is automatically downcased (both keywords and values should be assumed to be in lowercase) Development Roadmap: 1.1:: Expand supported character set for keywords and values (currently supports a-z) 2.0:: Add negation and grouping (will break API backwards compatibility) == SYNOPSIS:"
|
15
15
|
autorequire:
|
16
16
|
default_executable:
|