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

Update http_client.rb to fix detect_provider problem #469

Merged

Conversation

atejada
Copy link
Contributor

@atejada atejada commented Feb 28, 2024

Description

Detect Provider calls build_query method from Auth.rb instead of http_client.rb. By renaming the private method build_query to build_http_query on http_client.rb the problem is solved.

https://nylas.atlassian.net/browse/TW-2704
https://nylas.atlassian.net/browse/TW-2705

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Detect Provider calls build_query method from Auth.rb instead of http_client.rb. By renaming the private method build_query to build_http_query on http_client.rb the problem is solved.
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.84%. Comparing base (67a0b38) to head (7049bf5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #469   +/-   ##
=======================================
  Coverage   99.84%   99.84%           
=======================================
  Files          24       24           
  Lines         665      665           
=======================================
  Hits          664      664           
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mrashed-dev mrashed-dev merged commit d97a9a5 into main Mar 1, 2024
7 checks passed
@mrashed-dev mrashed-dev deleted the Ruby-SDK---Detect-Provider-call-wrong-build_query-method branch March 1, 2024 17:32
@mrashed-dev mrashed-dev linked an issue Mar 4, 2024 that may be closed by this pull request
@mrashed-dev mrashed-dev mentioned this pull request Mar 5, 2024
mrashed-dev added a commit that referenced this pull request Mar 5, 2024
# Changelog
* Improved message sending and draft create/update performance (#470)
* Change default timeout to match API (90 seconds) (#471)
* Fixed error when invoking `Auth.detect_provider` (#469, #468)
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.

detect_provider method raises ArgumentError
2 participants