Skip to content

Commit

Permalink
Fixed Ruby 2.7 warning for keyword arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
johnphamvan committed May 13, 2020
1 parent 32e48bd commit 6797865
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/kimurai/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ def request_to(handler, delay = nil, url:, data: {}, response_type: :html)
visited = delay ? browser.visit(url, delay: delay) : browser.visit(url)
return unless visited

public_send(handler, browser.current_response(response_type), { url: url, data: data })
options = { url: url, data: data }

public_send(handler, browser.current_response(response_type), **options)
end

def console(response = nil, url: nil, data: {})
Expand Down

0 comments on commit 6797865

Please sign in to comment.