google-apis-core: ClientSecrets#to_json raises NameError
Nobody has claimed this yet.
Assessment
This issue has not been assessed yet.
Description
Google::APIClient::ClientSecrets#to_json calls Json.dump, but no Json constant exists, so the documented serialization method raises NameError.
Minimal reproduction on google-apis-core 1.2.5/current:
require "google/api_client/client_secrets"
Google::APIClient::ClientSecrets.new("installed" => {"client_id" => "id"}).to_json
# NameError: uninitialized constant Google::APIClient::ClientSecrets::Json
A focused correction uses JSON.generate(to_hash, *args), which also preserves the JSON.generate(secrets) callback signature. The candidate passes the focused model, 88 targeted examples, and the cumulative 509-example core suite on Ruby 4.0.6.
I found no open issue/PR overlap. I have a minimal patch ready and can submit it after maintainer acceptance per CONTRIBUTING. The source audit and candidate preparation used AI assistance; I reviewed and verified the result.
- Dominant language
- Ruby
- Stars
- 2.9k
- Forks
- 888
- Avg merge
- 8m
- Merged PRs (30d)
- 241
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from googleapis/google-api-ruby-client
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
googleapis/google-api-ruby-client#28001 · 5 reactions ·
-
googleapis/google-api-ruby-client#27758 · 1 assignee ·
-
googleapis/google-api-ruby-client#27759 · 1 assignee ·
-
api: storage type: feature request
Difficulty 3/5 1-2 days Newbie friendliness 55/100
googleapis/google-api-ruby-client#27339 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
googleapis/google-api-ruby-client#26399 ·
All issues in googleapis/google-api-ruby-client
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
hanami/hanami-cli#449 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
resque/resque-scheduler#826 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100