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

Fix fel-remotefunc-compiler execution on newer Ruby versions #212

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

iscle
Copy link
Contributor

@iscle iscle commented Oct 12, 2024

It was using a deprecated (now deleted) function to check file existence.

File.exists got removed from Ruby, File.exist should be used instead.
Copy link
Member

@paulkocialkowski paulkocialkowski left a comment

Choose a reason for hiding this comment

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

Does the new call also work with older Ruby versions? If not it would be good to be able to support both cases.

@iscle
Copy link
Contributor Author

iscle commented Oct 12, 2024

Does the new call also work with older Ruby versions?

Yes! The "exist" method has always existed in Ruby, so there shouldn't be any issues :)

Here's the link to the documentation of the oldest available Ruby version, with the method already present: https://ruby-doc.org/core-1.8.6/File.html#method-c-exist-3F

@apritzel
Copy link
Contributor

Yes, can confirm that it works here, and .exist is there from very early on, apparently. .exists on the other hand was already marked obsolete in that 20 year old v1.8 documentation.

@apritzel apritzel merged commit 29d48c3 into linux-sunxi:master Oct 13, 2024
1 check passed
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.

3 participants