niky81-s3rbackup 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/s3dbsync.rb +5 -1
  2. metadata +2 -2
data/lib/s3dbsync.rb CHANGED
@@ -152,6 +152,10 @@ class S3SyncDb
152
152
  when /.*<.*/
153
153
  #opzione
154
154
  words_search << word
155
+ when /.*starts-with.*/
156
+ words_search << word
157
+ when /.*union.*/
158
+ words_search << "] #{word} ["
155
159
  else
156
160
  if word == "datetime"
157
161
  date = 2
@@ -178,7 +182,7 @@ class S3SyncDb
178
182
  else
179
183
  search = "[#{words_search.join(" ")}]"
180
184
  end
181
- #p search
185
+ p search
182
186
  results = []
183
187
  @sdb.query(cmd_opt[:inside] ? @config['files_db'] : @domain_db, search) do |result|
184
188
  result[:items].each do |item|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: niky81-s3rbackup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicola Sacchi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-27 00:00:00 -07:00
12
+ date: 2008-09-28 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency