-
-
Notifications
You must be signed in to change notification settings - Fork 621
Update Mac to draft 05 #509
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
Conversation
|
I see #196 inactive for a long time, so I remake. |
Pull Request Test Coverage Report for Build 1029
💛 - Coveralls |
Pull Request Test Coverage Report for Build 1015
💛 - Coveralls |
| # @option opts [FixNum, String] :algorithm (hmac-sha-256) the algorithm to use for the HMAC digest (one of 'hmac-sha-256', 'hmac-sha-1') | ||
| def initialize(client, token, secret, opts = {}) | ||
| @secret = secret | ||
| @seq_nr = SecureRandom.random_number(2 ** 64) |
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.
Sequence numbers fall in the range 0 through 2^64 - 1 and wrap to zero following the value 2^64 - 1.
As SecureRandom.random_number(n) generate number => 0 and < n, we needn'nt minus 1
|
@anvox This looks great! This appears to be a breaking change? Would you suggest a minor release, or a major release? How "breaking" is this change? |
01e8125 to
f1150fc
Compare
|
@pboling I think it should be a major change. By this change, we no longer support MAC token draft < 3. Clients must |
|
@anvox ok, this will be a new major release of 2.0.0, and the old major milestones will all get bumped up by +1.0.0 |
Remake #196 with a little change in detail.
See comments.
Implement #194