vmfloaty/vmfloaty.gemspec
Michael Hashizume b9562bc9eb Bump to Faraday 2
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: https://github.com/puppetlabs/orchestrator_client-ruby/issues/41
2025-11-03 12:19:52 -08:00

26 lines
738 B
Ruby

# frozen_string_literal: true
$LOAD_PATH.push File.expand_path('lib', __dir__)
require 'vmfloaty/version'
Gem::Specification.new do |s|
s.name = 'vmfloaty'
s.version = Vmfloaty::VERSION
s.authors = [
'Brian Cain',
'Puppet'
]
s.email = 'info@puppet.com'
s.license = 'Apache-2.0'
s.homepage = 'https://github.com/puppetlabs/vmfloaty'
s.description = 'A helper tool for vmpooler to help you stay afloat'
s.summary = 'CLI application to interface with vmpooler'
s.executables = ['floaty']
s.files = Dir['LICENSE', 'README.md', 'lib/**/*', 'extras/**/*']
s.test_files = Dir['spec/**/*']
s.require_path = 'lib'
s.add_dependency 'commander', '>= 4.4.3', '< 4.7.0'
s.add_dependency 'faraday', '~> 2'
end