diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8f31a84..e9e2e80 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,3 +32,5 @@ jobs: bundler-cache: true - name: Run the default task run: bundle exec rake + - name: Run the test suite with lower Faraday versions + run: FARADAY_VERSION=1.10.3 bin/setup && bundle exec rake test \ No newline at end of file diff --git a/groq.gemspec b/groq.gemspec index e81c59d..9c9850a 100644 --- a/groq.gemspec +++ b/groq.gemspec @@ -33,7 +33,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency "faraday", "~> 2.0" + spec.add_dependency "faraday", ENV['FARADAY_VERSION'] || ">= 1.10.0" spec.add_dependency "json" spec.add_dependency "activesupport", "> 5" # for Concerns spec.add_dependency "event_stream_parser", "~> 1.0"