Skip to content

Commit

Permalink
Add fix for unitialized constant error
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
pedro-psb committed Jul 5, 2024
1 parent fcc0c3e commit 830b72e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gen-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ fi
if [ "$LANGUAGE" = "ruby" ]
then
# https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-to-skip-certain-files-during-code-generation
# useAutoload fix: https://github.com/OpenAPITools/openapi-generator/issues/12854
mkdir -p "${PACKAGE}-client"
echo git_push.sh > "${PACKAGE}-client/.openapi-generator-ignore"

Expand All @@ -96,7 +97,7 @@ then
-i "${VOLUME_DIR}/${API_SPEC}" \
-g ruby \
-o "${VOLUME_DIR}/${PACKAGE}-client" \
"--additional-properties=gemName=${PACKAGE}_client,gemLicense="GPLv2+",gemVersion=${VERSION},gemHomepage=https://github.com/pulp/${PACKAGE}" \
"--additional-properties=gemName=${PACKAGE}_client,gemLicense="GPLv2+",gemVersion=${VERSION},gemHomepage=https://github.com/pulp/${PACKAGE},useAutoload=true" \
--library=faraday \
-t "${VOLUME_DIR}/templates/ruby" \
--skip-validate-spec \
Expand Down

0 comments on commit 830b72e

Please sign in to comment.