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

stdlib: Add types for Open3 #2014

Merged
merged 2 commits into from
Sep 30, 2024
Merged

stdlib: Add types for Open3 #2014

merged 2 commits into from
Sep 30, 2024

Conversation

euglena1215
Copy link
Contributor

@soutaro soutaro added this to the RBS 3.6 milestone Sep 18, 2024
Open3, :capture2e, 'echo "Foo"'
assert_send_type "(*::String, binmode: boolish) -> [ ::String, ::Process::Status ]",
Open3, :capture2e, 'echo "Foo"', binmode: true
assert_send_type "(*::String, stdin_data: ::String) -> [ ::String, ::Process::Status ]",
Copy link
Member

Choose a reason for hiding this comment

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

cat may be unavailable, on windows environments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have addressed the feedback and replaced the cat command with a ruby command in the test case to ensure compatibility across platforms, including Windows. This should make the example more portable. Please review the changes and let me know if further adjustments are needed.

@soutaro soutaro added this pull request to the merge queue Sep 30, 2024
Merged via the queue into ruby:master with commit 2bcbc59 Sep 30, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants