From ba85bc5362c9d4a0853c1d8bc76c54c06c7b0b11 Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Fri, 5 Jul 2024 12:27:19 -0300 Subject: [PATCH] Override gemspec.mustache with dependency fixes [noissue] --- templates/ruby/gemspec.mustache | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/ruby/gemspec.mustache b/templates/ruby/gemspec.mustache index ea1cf2f..8e853a3 100644 --- a/templates/ruby/gemspec.mustache +++ b/templates/ruby/gemspec.mustache @@ -21,7 +21,9 @@ Gem::Specification.new do |s| s.metadata = {{{gemMetadata}}}{{^gemMetadata}}{}{{/gemMetadata}} {{#isFaraday}} - s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0' + {{! override-note: 2.0.1 lowerbound is recommended by faraday upgrade guide }} + {{! override-note: 2.9.2 upperbound is the max version below 3 that support ruby>2.6 }} + s.add_runtime_dependency 'faraday', '>= 2.0.1', '< 2.9.2' s.add_runtime_dependency 'faraday-multipart' s.add_runtime_dependency 'marcel' {{/isFaraday}}