lib/evil/client/formatter.rb in evil-client-3.0.4 vs lib/evil/client/formatter.rb in evil-client-3.1.0

- old
+ new

@@ -20,11 +20,11 @@ return to_json(source) if format == :json return to_yaml(source) if format == :yaml return to_form(source) if format == :form return to_text(source) if format == :text - to_multipart(source, opts) + to_multipart(source, **opts) end private def to_json(source) @@ -41,10 +41,10 @@ def to_form(source) Form.call source end - def to_multipart(source, opts) - Multipart.call [source], opts + def to_multipart(source, **opts) + Multipart.call [source], **opts end end end