mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
fix push parser block passed to excon
excon was updated to allow for tracking progress, and though we are not using this feature we still need to acknowledge the change in the params that are passed back to blocks for requests. Closes #245 Closes #246
This commit is contained in:
parent
5b1ac21e30
commit
ab3e04b7ae
2 changed files with 4 additions and 4 deletions
|
@ -43,11 +43,11 @@ Gem::Specification.new do |s|
|
|||
## List your runtime dependencies here. Runtime dependencies are those
|
||||
## that are needed for an end user to actually USE your code.
|
||||
s.add_dependency('builder')
|
||||
s.add_dependency('excon', '>=0.5.7')
|
||||
s.add_dependency('formatador', '>=0.1.2')
|
||||
s.add_dependency('excon', '>=0.6.0')
|
||||
s.add_dependency('formatador', '>=0.1.3')
|
||||
s.add_dependency('json')
|
||||
s.add_dependency('mime-types')
|
||||
s.add_dependency('net-ssh', '>=2.0.23')
|
||||
s.add_dependency('net-ssh', '>=2.1.3')
|
||||
s.add_dependency('nokogiri', '>=1.4.4')
|
||||
s.add_dependency('ruby-hmac')
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ module Fog
|
|||
unless block_given?
|
||||
if (parser = params.delete(:parser))
|
||||
body = Nokogiri::XML::SAX::PushParser.new(parser)
|
||||
block = lambda { |chunk| body << chunk }
|
||||
block = lambda { |chunk, remaining, total| body << chunk }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue