jgm-cloudlib 0.2 → 0.2.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.
Files changed (3) hide show
  1. data/cloudlib.gemspec +1 -1
  2. data/lib/cloudlib.rb +1 -1
  3. metadata +1 -1
data/cloudlib.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cloudlib"
3
- s.version = "0.2"
3
+ s.version = "0.2.1"
4
4
  s.date = "2008-12-26"
5
5
  s.summary = "Tools for maintaining a library of books and articles in Amazon S3 and SimpleDB"
6
6
  s.email = "jgm@berkeley.edu"
data/lib/cloudlib.rb CHANGED
@@ -142,7 +142,7 @@ class Entry
142
142
  # The form ti='word1 word2' may also be used; entries will only match
143
143
  # if their titles contain both word1 and word2.
144
144
  def self.query(query_string, numitems=10, token=nil)
145
- query_parts = query_string.downcase.scan(/((ti(?:title)|au(?:thor?s)|jo(?:urnal)|bo(?:ooktitle)|pu(?:blisher)|ad(?:ddress)|ed(?:itor?s)|ye(?:ar))[^<=>]*([<=>])('[^']*'|"[^"]*"|\S*)|\S+)\s*/)
145
+ query_parts = query_string.downcase.scan(/((ti(?:tle)?|au(?:thors?)?|jo(?:urnal)?|bo(?:ooktitle)?|pu(?:blisher)?|ad(?:ddress)?|ed(?:itors?)?|ye(?:ar)?)[^<=>]*([<=>])('[^']*'|"[^"]*"|\S*)|\S+)\s*/)
146
146
  query = query_parts.reject {|part| part[0] == '*'}.map do |part|
147
147
  whole, key, comparison, val = part
148
148
  if val then val = val.gsub(/^['"](.*)['"]$/, "\\1") end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jgm-cloudlib
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.2"
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John MacFarlane