appoxy-aws 1.11.28 → 1.11.29

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 (2) hide show
  1. data/lib/sdb/active_sdb.rb +14 -26
  2. metadata +2 -2
@@ -258,19 +258,19 @@ module RightAws
258
258
  # See select(), original find with QUERY syntax is deprecated so now find and select are synonyms.
259
259
  #
260
260
  def find(*args)
261
- select(*args)
262
-
263
- =begin
264
-
265
- options = args.last.is_a?(Hash) ? args.pop : {}
266
- case args.first
267
- when :all then find_every options
268
- when :first then find_initial options
269
- else find_from_ids args, options
270
- end
271
-
272
- =end
273
-
261
+ options = args.last.is_a?(Hash) ? args.pop : {}
262
+ # puts 'first=' + args.first.to_s
263
+ case args.first
264
+ when :all then
265
+ sql_select(options)
266
+ when :first then
267
+ sql_select(options.merge(:limit => 1)).first
268
+ when :count then
269
+ res = sql_select(options.merge(:count => true))
270
+ res
271
+ else
272
+ select_from_ids args, options
273
+ end
274
274
  end
275
275
 
276
276
  # Perform a SQL-like select request.
@@ -323,19 +323,7 @@ module RightAws
323
323
  # see http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/index.html?UsingSelect.html
324
324
  #
325
325
  def select(*args)
326
- options = args.last.is_a?(Hash) ? args.pop : {}
327
- # puts 'first=' + args.first.to_s
328
- case args.first
329
- when :all then
330
- sql_select(options)
331
- when :first then
332
- sql_select(options.merge(:limit => 1)).first
333
- when :count then
334
- res = sql_select(options.merge(:count => true))
335
- res
336
- else
337
- select_from_ids args, options
338
- end
326
+ find(*args)
339
327
  end
340
328
 
341
329
  def generate_id # :nodoc:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appoxy-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.28
4
+ version: 1.11.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-07-31 00:00:00 -07:00
13
+ date: 2009-08-01 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies: []
16
16