Repository navigation
fix: audit findings (2026-11-12, round 6) - #37
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes from the sixth audit (Medium).
ApiResponseErroron all 52 client methods (4xx bodies were already redacted).ApiResponseError#initializenow redacts its message, so every raise inherits it; the three JSON-parse raises (client and Warmup) usecause: nil, since the parser's error quotes the body. A sweep over all 52 client and 26 Warmup methods with 7 key-echoing bodies failed 76 of 79 examples before.add_sending_accountsent the wrong fields. It dropped the documentedcompany_website,company_description,example_email,weekdays_onlyandtimezoneand sent undocumentedindustry,websiteanddaily_limit(since v3.0.0). It now sends the documented set, matching Python and the API docs. The oldwebsitekey is sent ascompany_website;industry,daily_limitand other unknown keys are still dropped, now with a warning that lists the documented fields.weekdays_onlyis a strict boolean,timezonemust be a String, andtimezone_offsetaccepts fractional hours.spec/strict_booleans_spec.rbfinds every boolean parameter (signatures plus the**optionslist, checked against the source) and asserts"false"/"junk"are rejected.Specs 700 → 804; RuboCop clean; also run on Ruby 3.4 with the gem build/load step.