-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add matrix as a dependency for Ruby 3.1 compatibility #2468
Conversation
It was recently removed from the default gems: - https://bugs.ruby-lang.org/issues/17873 - ruby/ruby#4530
Pull Request Test Coverage Report for Build 7830
💛 - Coveralls |
…ruby-head build They were recently removed from Ruby's default gems. Ref: https://bugs.ruby-lang.org/issues/17873 Ref: mikel/mail#1439 Ref: teamcapybara/capybara#2468
Actually this cause double loading warnings for ruby 3.0 and older. I'm not too sure yet how best to fix this. |
I haven’t looked in detail yet, but I can’t think of anywhere that Capybara uses matrix itself. That would imply it’s actually a requirement of a dependency and should be fixed there rather than in Capybara |
Right here:
|
That being said I don't see it used, it was introduced in b0e3b93 but I see no reference to the |
Ah, yes -- we use Vector which is provided by the matrix library |
If this is causing double loading warnings on released versions of Ruby then I'm not going to merge it in to fix a dev version of Ruby. For now you'll just need to specify the dependency in your own gemfile |
In the end it doesn't, the problem is only with specific gems that bundler use like I got this issue with the
Yeah it's already worked around on our side, but I'm running ruby-head CI specifically to catch this kind of things early so that upgrading to Ruby 3.1 will as smooth as possible in January. So IMHO if this is included early it's better. |
Heroku supports [Ruby 3.1.1][0] but CircleCI only supports [up to version 3.1.0][1]. [0]: https://devcenter.heroku.com/articles/ruby-support#ruby-versions [1]: https://circleci.com/developer/images/image/cimg/ruby Update gems: * Rails >7.1 due to rails/rails#43998 * Capybara >=3.36.0 because the `matrix` gem is no longer built in to Ruby: teamcapybara/capybara#2468 * Timecop >= 0.9.4 for 3.1 support ("<internal:timev>:310:in `initialize': no implicit conversion of Hash into Integer (TypeError)")
* matrix: teamcapybara/capybara#2468 * `nokogiri 🤷 but there's no version constraint anyways * `net-*`: mikel/mail#1472 It's been quite a while so these seem safe to drop
* matrix: teamcapybara/capybara#2468 * `nokogiri 🤷 but there's no version constraint anyways * `net-*`: mikel/mail#1472 It's been quite a while so these seem safe to drop
* Remove some explicit dependencies from the gemfile * matrix: teamcapybara/capybara#2468 * `nokogiri 🤷 but there's no version constraint anyways * `net-*`: mikel/mail#1472 It's been quite a while so these seem safe to drop * Run different rails versions tests in parallel Ditch appraisals while we're at it
It was recently removed from the default gems: