8000 s/File.exists?/File.exist?/ by deivid-rodriguez · Pull Request #557 · jruby/warbler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

s/File.exists?/File.exist?/ #557

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

Merged
merged 1 commit into from
May 17, 2025
Merged

Conversation

deivid-rodriguez
Copy link
Contributor
@deivid-rodriguez deivid-rodriguez commented May 16, 2025

We have a smoke test in Bundler to check that changes in Bundler or RubyGems don't break basic warbler functionality.

When trying to upgrade our tests to use JRuby 10, I had to introduce these changes to warbler to keep our tests passing.

Fixes #541.

deivid-rodriguez added a commit to rubygems/rubygems that referenced this pull request May 16, 2025
Necessary changes to get tests passing are:

* Rewrite one "out of memory" error spec to not define a subclass inside
  a RSpec context block. Due to some [JRuby issue], that's failing in
  JRuby 10, so I rewrote the test so that the Bundler process really
  goes OOM and that class definition is not necessary.
* JRuby 10, even if Ruby 3.4-compatible, has not yet adapted backtraces
  to include receivers, so our tests need an special case for JRuby when
  detecting a test method call inside backtraces.
* Warbler test is upgraded to use JRuby 10. Getting it to pass needs [a
  PR] to warbler, so our test is temporarily pointing to that PR.

[JRuby issue]: jruby/jruby#8838
[a PR]: jruby/warbler#557
deivid-rodriguez added a commit to rubygems/rubygems that referenced this pull request May 16, 2025
Necessary changes to get tests passing are:

* Rewrite one "out of memory" error spec to not define a subclass inside
  a RSpec context block. Due to some [JRuby issue], that's failing in
  JRuby 10, so I rewrote the test so that the Bundler process really
  goes OOM and that class definition is not necessary.
* JRuby 10, even if Ruby 3.4-compatible, has not yet adapted backtraces
  to include receivers, so our tests need an special case for JRuby when
  detecting a test method call inside backtraces.
* Warbler test is upgraded to use JRuby 10. Getting it to pass needs [a
  PR] to warbler, so our test is temporarily pointing to that PR.

[JRuby issue]: jruby/jruby#8838
[a PR]: jruby/warbler#557
Copy link
Member
@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Thanks!

@olleolleolle olleolleolle merged commit 68d1ce3 into jruby:master May 17, 2025
24 of 66 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request May 19, 2025
Necessary changes to get tests passing are:

* Rewrite one "out of memory" error spec to not define a subclass inside
  a RSpec context block. Due to some [JRuby issue], that's failing in
  JRuby 10, so I rewrote the test so that the Bundler process really
  goes OOM and that class definition is not necessary.
* JRuby 10, even if Ruby 3.4-compatible, has not yet adapted backtraces
  to include receivers, so our tests need an special case for JRuby when
  detecting a test method call inside backtraces.
* Warbler test is upgraded to use JRuby 10. Getting it to pass needs [a
  PR] to warbler, so our test is temporarily pointing to that PR.

[JRuby issue]: jruby/jruby#8838
[a PR]: jruby/warbler#557

rubygems/rubygems@edec85d4c3
@deivid-rodriguez deivid-rodriguez deleted the file-exist branch May 19, 2025 15:44
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.

NoMethodError: undefined method `exists?' for File:Class
2 participants
0