sinatra_resource 0.4.3 → 0.4.4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.4.4
@@ -309,13 +309,6 @@ module SinatraResource
309
309
  end
310
310
 
311
311
  protected
312
-
313
- PATTERNS = [
314
- [ %r{^<=(.*)} , '$lte' ],
315
- [ %r{^<(.*)} , '$lt' ],
316
- [ %r{^>=(.*)} , '$gte' ],
317
- [ %r{^>(.*)} , '$gt' ]
318
- ]
319
312
 
320
313
  QS_FILTER = QueryStringFilter.new
321
314
 
@@ -333,7 +326,7 @@ module SinatraResource
333
326
  if search_string && filter_string
334
327
  error 400, convert(body_for(:invalid_params, [FILTER_KEY]))
335
328
  elsif search_string
336
- { :_keywords => search_string }
329
+ { :_keywords => search_string.downcase }
337
330
  elsif filter_string
338
331
  unsafe = QS_FILTER.parse(filter_string)
339
332
  sanitize(unsafe, model)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sinatra_resource}
8
- s.version = "0.4.3"
8
+ s.version = "0.4.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David James"]
12
- s.date = %q{2009-11-30}
12
+ s.date = %q{2009-12-02}
13
13
  s.description = %q{A DSL for creating RESTful actions with Sinatra and MongoMapper. It embraces the Resource Oriented Architecture as explained by Leonard Richardson and Sam Ruby.}
14
14
  s.email = %q{djames@sunlightfoundation.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David James
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-30 00:00:00 -05:00
12
+ date: 2009-12-02 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency