Skip to content

Commit

Permalink
Override gemspec.mustache with dependency fixes
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pedro-psb committed Jul 5, 2024
1 parent f4829fd commit 92b6940
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions gen-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ then
-o "${VOLUME_DIR}/${PACKAGE}-client" \
"--additional-properties=gemName=${PACKAGE}_client,gemLicense="GPLv2+",gemVersion=${VERSION},gemHomepage=https://github.com/pulp/${PACKAGE}" \
--library=faraday \
-t "${VOLUME_DIR}/templates/ruby" \
--skip-validate-spec \
--strict-spec=false
fi
Expand Down
4 changes: 3 additions & 1 deletion templates/ruby/gemspec.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 92b6940

Please sign in to comment.