-
Notifications
You must be signed in to change notification settings - Fork 376
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
Use correct arguments for custom algo example #617
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the test is with the parameters flipped. If you have interest and time it would be great to verify that it works as intended: https://github.com/jwt/ruby-jwt/blob/main/spec/integration/readme_examples_spec.rb#L461
Thanks @aedryan for noticing and even bigger thanks for taking a stab fixing it. As mentioned, I think the spec for the example in the readme would need the same treatment. |
CHANGELOG.md
Outdated
@@ -4,12 +4,9 @@ | |||
|
|||
[Full Changelog](https://github.com/jwt/ruby-jwt/compare/v2.9.0...main) | |||
|
|||
**Features:** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part should not be removed. Probably some merge issues when syncing with main...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changelog should only have additions in PRs. So would be great if you could bring back the red parts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well I think I borked it up real good trying to reset from main and re-add the new version, I'll try again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:) good luck
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to worry about version numbers or anything. Just adding your entry above the - Your contribution here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's good now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the - Your contribution here
was replaced. If you bring back that one we are good to go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added it back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was just about to merge but there are some conflicts vs what is on main currently.
There was this 2.9.1 release in between that bumped the version in the changelog, think your branch is still based on the previous revision of main
. If you would be so kind to do a rebase (and maybe also squashing the commits while at it)
Sorry for the back and forth and thank you for your patience.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I squashed and rebased, I think it looks good now.
I get several warnings and pending tests when I run |
I think it's fine, I think it's a bit tricky to get running with older versions of the openssl gem. The CI is green so tests are happy. |
0690e07
to
a3f2f36
Compare
Thank you @aedryan for your effort, and apologize for the confusing changelog activities. Some day we will automate it... |
Description
Documentation for
OpenSSL::HMAC
shows that the arguments aredigest, key, data
and the example haskey
anddata
mixed up.https://docs.ruby-lang.org/en/master/OpenSSL/HMAC.html
Checklist
Before the PR can be merged be sure the following are checked: