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

cmdsim.rb: fix ruby syntax #1884

Merged
merged 1 commit into from
Feb 6, 2023
Merged

cmdsim.rb: fix ruby syntax #1884

merged 1 commit into from
Feb 6, 2023

Conversation

scpeters
Copy link
Member

@scpeters scpeters commented Feb 6, 2023

🦟 Bug fix

Part of #1867.

Summary

This replaces the deprecated/removed File.exists? calls with File.exist? to fix the UNIT_gz_TEST on macOS (which uses a very new version of ruby). It also removes a rescue statement that was hiding useful error messages.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

This replaces File.exists? calls with File.exist? to
fix the UNIT_gz_TEST on macOS. It also removes a
rescue statement that was hiding useful error messages.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@scpeters scpeters merged commit 4380ab1 into gz-sim7 Feb 6, 2023
@scpeters scpeters deleted the scpeters/fix_ruby_macos branch February 6, 2023 23:53
scpeters added a commit that referenced this pull request Feb 6, 2023
This replaces File.exists? calls with File.exist? to
fix the UNIT_gz_TEST on macOS. It also removes a
rescue statement that was hiding useful error messages.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
scpeters added a commit that referenced this pull request Feb 11, 2023
This replaces File.exists? calls with File.exist? to
fix the UNIT_gz_TEST on macOS. It also removes a
rescue statement that was hiding useful error messages.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@azeey azeey mentioned this pull request Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants