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

Rename object_id to message_id #352

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Rename object_id to message_id #352

wants to merge 1 commit into from

Conversation

fmang
Copy link

@fmang fmang commented Jan 9, 2025

Ruby 3.4 prints the following message when redefining object_id:

warning: redefining 'object_id' may cause serious problems

According to fragment.rb, winrm’s object_id is the ID of the message, so let’s rename it to message_id.

message_id was not used before, and no calls to object_id referred to Ruby’s, so I’ve naively replaced all occurrences of object_id by message_id.

I do not have a Windows machine to test, but this change should be safe unless external calling code use these methods.

Ruby 3.4 prints the following message when redefining object_id:

```
warning: redefining 'object_id' may cause serious problems
```

According to fragment.rb, winrm’s object_id is the ID of the message, so
let’s rename it to message_id.

message_id was not used before, and no calls to object_id referred to
Ruby’s, so I’ve naively replaced all occurrences of object_id by
message_id.
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.

1 participant