diff --git a/Gemfile b/Gemfile index 030051a..d705b0f 100644 --- a/Gemfile +++ b/Gemfile @@ -5,5 +5,16 @@ source 'https://rubygems.org' gemspec group :test do + gem 'faraday', '>= 1.0' gem 'faraday-multipart', '~> 1.0' + + gem 'bundler', '~> 2.0' + gem 'rake', '~> 13.0' + gem 'rspec', '~> 3.0' + gem 'simplecov', '~> 0.21.0' + + gem 'rubocop', '~> 1.21.0' + gem 'rubocop-packaging', '~> 0.5.0' + gem 'rubocop-performance', '~> 1.0' + gem 'rubocop-rspec', '~> 2.0' end diff --git a/faraday-retry.gemspec b/faraday-retry.gemspec index b058e3d..0fcfa95 100644 --- a/faraday-retry.gemspec +++ b/faraday-retry.gemspec @@ -30,16 +30,4 @@ Gem::Specification.new do |spec| spec.files = Dir['lib/**/*', 'README.md', 'LICENSE.md', 'CHANGELOG.md'] spec.required_ruby_version = '>= 2.6', '< 4' - - spec.add_runtime_dependency 'faraday', '~> 2.0' - - spec.add_development_dependency 'bundler', '~> 2.0' - spec.add_development_dependency 'rake', '~> 13.0' - spec.add_development_dependency 'rspec', '~> 3.0' - spec.add_development_dependency 'simplecov', '~> 0.21.0' - - spec.add_development_dependency 'rubocop', '~> 1.21.0' - spec.add_development_dependency 'rubocop-packaging', '~> 0.5.0' - spec.add_development_dependency 'rubocop-performance', '~> 1.0' - spec.add_development_dependency 'rubocop-rspec', '~> 2.0' end diff --git a/lib/faraday/retry.rb b/lib/faraday/retry.rb index 659663c..a488305 100644 --- a/lib/faraday/retry.rb +++ b/lib/faraday/retry.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'faraday' require_relative 'retriable_response' require_relative 'retry/middleware' require_relative 'retry/version' diff --git a/lib/faraday/retry/version.rb b/lib/faraday/retry/version.rb index 680f94b..dc0f836 100644 --- a/lib/faraday/retry/version.rb +++ b/lib/faraday/retry/version.rb @@ -2,6 +2,6 @@ module Faraday module Retry - VERSION = '1.0.1' + VERSION = '1.0.2' end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c707a0c..7c86dbd 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true require 'faraday' -require 'faraday/multipart' +require 'faraday/multipart' if Faraday::VERSION[0].to_i >= 2 require_relative '../lib/faraday/retry' RSpec.configure do |config|