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

Update FileTest's definitions #1500

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

sampersand
Copy link
Contributor

@sampersand sampersand commented Sep 5, 2023

This updates the signatures for FileTest, and updates the unit tests accordingly.

The current signatures are actually pretty accurate, they are just missing the implicit conversions.

More concretely the following changes were made to FileTest's signatures:

  • blockdev?, chardev?, directory?, exist?, file?, grpowned?, owned?, pipe?, setgid?, setuid?, size?, size?, socket?, sticky?, world_readable?, world_writable?, and zero?: Converted from (String | IO) -> ... to (path | io) -> ....
  • empty?: Changed to be an alias of zero?.
  • executable?, executable_real?, readable?, readable_real?, symlink?, writable?, and writable_real?: Converted from (String) -> ... to (path) -> ....
  • identical?: Changed from (String | IO, String | IO) -> ... to (path | io, path | io) -> ....

@sampersand sampersand changed the title swesterman/23 09 04/update filetest Update FileTest's definitions Sep 5, 2023
@sampersand sampersand force-pushed the swesterman/23-09-04/update-filetest branch 2 times, most recently from edf7262 to 0ce2fb2 Compare September 6, 2023 06:19
@sampersand sampersand marked this pull request as ready for review September 6, 2023 06:20
@sampersand sampersand force-pushed the swesterman/23-09-04/update-filetest branch from 0ce2fb2 to 741b1a1 Compare September 6, 2023 06:38
Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

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

Thanks! 🎉

@soutaro soutaro added this pull request to the merge queue Sep 15, 2023
Merged via the queue into ruby:master with commit 4d72397 Sep 15, 2023
@soutaro soutaro added this to the RBS 3.3 milestone Oct 31, 2023
@soutaro soutaro added the Released PRs already included in the released version label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Released PRs already included in the released version
Development

Successfully merging this pull request may close these issues.

2 participants