Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selenium log suppression: forward both positional and keyword args #2667

Merged

Conversation

kyrofa
Copy link
Contributor

@kyrofa kyrofa commented May 8, 2023

Ruby 3 separated positional and keyword arguments, which changes the way we need to forward them. Just using * isn't enough, as exposed by #2666. We either need to use ... or handle both positional and keyword. We opt for the latter approach here since it's compatible with the most Ruby versions.

Ruby 3 separated positional and keyword arguments, which changes the way
we need to forward them. Just using `*` isn't enough. We either need to
use `...` or handle both positional and keyword. Use the latter approach
here since it's compatible with the most Ruby versions.

Fix teamcapybara#2666

Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
@@ -3,7 +3,7 @@
module Capybara
module Selenium
module DeprecationSuppressor
def initialize(*, **)
def initialize(...)
Copy link
Contributor Author

@kyrofa kyrofa May 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was about to point out that this is incompatible with Ruby 2.5, but then I took a closer look at the gemspec and saw the required_ruby_version 😛 . I'm sorry, I should have done it this way from the beginning. Thanks for covering for me.

waiting-for-dev pushed a commit to waiting-for-dev/capybara that referenced this pull request May 12, 2023
…eamcapybara#2667)

* selenium log suppression: forward all parameters passed

(cherry-picked from 43e32a8)
twalpole pushed a commit that referenced this pull request May 12, 2023
…2667)

* selenium log suppression: forward all parameters passed
tvdeyen added a commit to tvdeyen/alchemy_cms that referenced this pull request May 18, 2023
waiting-for-dev added a commit to nebulab/solidus that referenced this pull request May 22, 2023
This reverts commit f468994.

After the release of capybara 3.39.1 with a fix for the issue for the
newest selenium-webdriver release, there's no longer the need to lock
the later.

See:

- teamcapybara/capybara#2667
- teamcapybara/capybara#2666
- SeleniumHQ/selenium#12005
waiting-for-dev added a commit to nebulab/solidus that referenced this pull request May 22, 2023
This reverts commit 9224baf.

After the release of capybara 3.39.1 with a fix for the issue for the
newest selenium-webdriver release, there's no longer the need to lock
the later.

See:

- teamcapybara/capybara#2667
- teamcapybara/capybara#2666
- SeleniumHQ/selenium#12005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants