gemfile <<-RB
  gem 'typhoeus', '~> 0.7.1'
  gem 'rack'

  # We try translating URIs through Addressable if it's there, so test with it.
  gem 'addressable', :require => 'addressable/uri'
RB

gemfile <<-RB
  gem 'typhoeus', '~> 0.7.1'
  gem 'rack'
RB

gemfile <<-RB
  gem 'typhoeus', '~> 0.6.9'
  gem 'rack'
RB

if RUBY_VERSION < '2.4.0'
  gemfile <<-RB
    # Compatibility issues with ethon 0.5.12 https://github.com/typhoeus/ethon/issues/51
    gem 'ethon', '0.5.11'

    # ethon 0.5.11 requires mime-types ~> 1.18
    # normally, this wouldn't be a problem, but
    # we have other checks to work around other
    # mime-type dependency issues, so we need
    # to specify it here.
    gem 'mime-types', '~> 1.18'

    gem 'typhoeus', '~> 0.5.4'
    gem 'rack'
  RB

  # Earliest supported version
  gemfile <<-RB
    # Compatibility issues with ethon 0.5.12 https://github.com/typhoeus/ethon/issues/51
    gem 'ethon', '0.5.11'

    # ethon 0.5.11 requires mime-types ~> 1.18
    # normally, this wouldn't be a problem, but
    # we have other checks to work around other
    # mime-type dependency issues, so we need
    # to specify it here.
    gem 'mime-types', '~> 1.18'

    gem 'typhoeus', '0.5.3'
    gem 'rack'
  RB
end

# Prior to supported versions
gemfile <<-RB
  # Compatibility issues with ethon 0.5.12 https://github.com/typhoeus/ethon/issues/51
  gem 'ethon', '0.5.11'

  # ethon 0.5.11 requires mime-types ~> 1.18
  # normally, this wouldn't be a problem, but
  # we have other checks to work around other
  # mime-type dependency issues, so we need
  # to specify it here.
  gem 'mime-types', '~> 1.18'

  gem 'typhoeus', '0.5.2'
  gem 'rack'
RB

# vim: ft=ruby
