Skip to content

Conversation

@mhashizume
Copy link

Faraday 2 was released in early 2022. As part of this major release, authentication helper methods (such as basic_auth) were removed from the Connection object and into middleware.

This commit updates vmfloaty's dependency on Faraday to ~> 2 and updates the Http class to use the new authentication middleware.

This upgrade is helpful because, in a CI context, vmfloaty is often installed alongside other gems that use Faraday >= 2, and vmfloaty's current dependency on Faraday ~> 1.5, >= 1.5.1 can cause unexpected dependency resolution.

You can read more about this unexpected dependency behavior in this GitHub issue: puppetlabs/orchestrator_client-ruby#41

Status

[Ready for Merge | In Progress | ???]

Description

FIXME

Related Issues

Todos

  • Tests
  • Documentation

Faraday 2 was released in early 2022. As part of this major release,
authentication helper methods (such as basic_auth) were removed from the
Connection object and into middleware.

This commit updates vmfloaty's dependency on Faraday to ~> 2 and updates
the Http class to use the new authentication middleware.

This upgrade is helpful because, in a CI context, vmfloaty is often
installed alongside other gems that use Faraday >= 2, and vmfloaty's
current dependency on Faraday ~> 1.5, >= 1.5.1 can cause unexpected
dependency resolution.

You can read more about this unexpected dependency behavior in this
GitHub issue: puppetlabs/orchestrator_client-ruby#41
@mhashizume mhashizume requested a review from a team as a code owner November 3, 2025 20:30
@mhashizume mhashizume added the dependencies Pull requests that update a dependency file label Nov 3, 2025
@mhashizume
Copy link
Author

The Ruby 2.7 tests are failing because of dependency compatibility, but I'm not sure if Ruby 2.7 compatibility is still needed or desired since it's been end-of-life for a few years now. The next-oldest version of Ruby used in tests, 3.0, seems to work fine.

@mhashizume mhashizume closed this Nov 3, 2025
@mhashizume
Copy link
Author

Closing/reopening to rekick label check

@mhashizume mhashizume reopened this Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant