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

Remove HTTParty and use Faraday throughout. #1499

Merged
merged 6 commits into from
Jun 25, 2024
Merged

Conversation

sengi
Copy link
Contributor

@sengi sengi commented Jun 24, 2024

We don't need two different HTTP client libraries. Faraday is a more capable library, more actively maintained and already a transitive dependency via Octokit, so let's drop HTTParty.

This eliminates four third-party dependencies: httparty, csv, mini_mime, multi_xml.

As a bonus, we also lose the controversial post-install message that the maintainer of HTTParty refuses to drop.

@sengi sengi requested a review from theseanything June 24, 2024 15:49
sengi added 5 commits June 24, 2024 17:16
We don't need two different HTTP client libraries. Faraday is a more
capable library, more actively maintained and already a transitive
dependency via Octokit, so let's drop HTTParty.

As a bonus, this also gets rid of the questionably-tasteful post-install
message.
This was making it unnecessarily difficult to run the tests locally.
Also avoid `XXX` since that's commonly used as a no-merge/no-commit
marker.
@sengi sengi force-pushed the sengi/end-of-the-HTTParty branch from 1f74090 to 4c63a5b Compare June 24, 2024 16:16
app/jobs/slack_poster_job.rb Outdated Show resolved Hide resolved
Also, interpret empty `SLACK_WEBHOOK_URL` the same as not set / nil.
@sengi sengi merged commit ef5fa71 into main Jun 25, 2024
10 checks passed
@sengi sengi deleted the sengi/end-of-the-HTTParty branch June 25, 2024 14:35
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.

2 participants