keyword_search 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module KeywordSearch
16
16
 
17
17
 
18
18
  # TODO: Add further character support; this is just for initial release
19
- letters = ('a'..'z').to_a
19
+ letters = ('a'..'z').to_a + ('A'..'Z').to_a
20
20
  numbers = ('0'..'9').to_a
21
21
  extras = %w|_ - ' / \ [ ] { } 1 @ # $ % ^ & * ( ) . , ? < > |
22
22
  printables = letters + numbers + extras
@@ -81,7 +81,7 @@ module KeywordSearch
81
81
  end
82
82
  for_characters %w<"> do
83
83
  create_token 's', accumulator
84
- clear_accumulator = ''
84
+ clear_accumulator
85
85
  advance
86
86
  switch_to :idle_state
87
87
  end
@@ -7,13 +7,13 @@ end
7
7
 
8
8
  module KeywordSearch
9
9
 
10
- VERSION = '1.1.0'
10
+ VERSION = '1.1.1'
11
11
 
12
12
  class << self
13
13
  def search(input_string, definition=nil, &block)
14
14
  @evaluator ||= Evaluator.new
15
15
  definition ||= Definition.new(&block)
16
- tokens = Tokenizer.tokenize(input_string.downcase)
16
+ tokens = Tokenizer.tokenize(input_string)
17
17
  parse_result = Parser.parse(tokens)
18
18
  unless parse_result.has_error?
19
19
  results = @evaluator.evaluate(parse_result.parse_tree)
metadata CHANGED
@@ -3,7 +3,7 @@ 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.1.0
6
+ version: 1.1.1
7
7
  date: 2007-03-21 00:00:00 -06:00
8
8
  summary: Generic support for extracting GMail-style search keywords/values from strings
9
9
  require_paths: