Skip to content

Commit

Permalink
Merge pull request appoxy#92 from marios/master
Browse files Browse the repository at this point in the history
Fix compatibility issue with ruby 1.8.6 (Hash[] doesn't work for 2d arrays)
  • Loading branch information
treeder committed Jun 10, 2011
2 parents 83976e2 + 8dec639 commit b26053f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/s3/s3_interface.rb
Expand Up @@ -334,7 +334,7 @@ def list_bucket(bucket, options={}, headers={})
# ]
# }
def incrementally_list_bucket(bucket, options={}, headers={}, &block)
internal_options = Hash[ options.map {|k,v| [k.to_sym, v] } ]
internal_options = (options.map {|k,v| [k.to_sym, v] }).inject({}) {|h, ar| h[ar[0]] = ar[1]; h}
begin
internal_bucket = bucket.dup
unless internal_options.nil? || internal_options.empty?
Expand Down

0 comments on commit b26053f

Please sign in to comment.