Skip to content

Commit

Permalink
Tweaks to Ruby endpoints
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Jan 14, 2025
1 parent 2d6a72b commit a4f3c3f
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG SWIFT_WEBROOT=https://download.swift.org
ARG JAVA_VERSION=23.0.1-tem
ARG SBT_VERSION=1.10.7
ARG MAVEN_VERSION=3.9.9
ARG GRADLE_VERSION=8.11
ARG GRADLE_VERSION=8.12
ARG GO_VERSION=1.23.4
ARG NODE_VERSION=23.6.0
ARG PYTHON_VERSION=3.12
Expand Down
2 changes: 1 addition & 1 deletion ci/Dockerfile-bun
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG SWIFT_WEBROOT=https://download.swift.org
ARG JAVA_VERSION=23.0.1-tem
ARG SBT_VERSION=1.10.7
ARG MAVEN_VERSION=3.9.9
ARG GRADLE_VERSION=8.11
ARG GRADLE_VERSION=8.12
ARG GO_VERSION=1.23.4
ARG PYTHON_VERSION=3.12

Expand Down
2 changes: 1 addition & 1 deletion ci/Dockerfile-deno
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG SWIFT_WEBROOT=https://download.swift.org
ARG JAVA_VERSION=23.0.1-tem
ARG SBT_VERSION=1.10.7
ARG MAVEN_VERSION=3.9.9
ARG GRADLE_VERSION=8.11
ARG GRADLE_VERSION=8.12
ARG GO_VERSION=1.23.4
ARG PYTHON_VERSION=3.12
ARG RUBY_VERSION=3.4.1
Expand Down
2 changes: 1 addition & 1 deletion ci/Dockerfile-ppc64
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ LABEL maintainer="cyclonedx" \

ARG SBT_VERSION=1.10.7
ARG MAVEN_VERSION=3.9.9
ARG GRADLE_VERSION=8.11
ARG GRADLE_VERSION=8.12
ARG GO_VERSION=1.23.4
ARG PYTHON_VERSION=3.12

Expand Down
2 changes: 1 addition & 1 deletion ci/base-images/opensuse/Dockerfile.lang
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM opensuse/tumbleweed:latest

ARG MAVEN_VERSION=4.0.0-beta-4
ARG SBT_VERSION=1.10.2
ARG GRADLE_VERSION=8.11
ARG GRADLE_VERSION=8.12
ARG DOTNET_SDK_VERSION=9.0.100

ENV SBT_VERSION=$SBT_VERSION \
Expand Down
2 changes: 1 addition & 1 deletion ci/base-images/sle/Dockerfile.java17
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM registry.suse.com/bci/openjdk-devel:17

ARG SBT_VERSION=1.10.7
ARG MAVEN_VERSION=3.9.9
ARG GRADLE_VERSION=8.11
ARG GRADLE_VERSION=8.12
ARG GCC_VERSION=13

ENV SBT_VERSION=$SBT_VERSION \
Expand Down
2 changes: 1 addition & 1 deletion ci/base-images/sle/Dockerfile.java17-slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM registry.suse.com/bci/openjdk-devel:17

ARG SBT_VERSION=1.10.7
ARG MAVEN_VERSION=3.9.9
ARG GRADLE_VERSION=8.11
ARG GRADLE_VERSION=8.12

ENV SBT_VERSION=$SBT_VERSION \
MAVEN_VERSION=$MAVEN_VERSION \
Expand Down
2 changes: 1 addition & 1 deletion contrib/lima/cdxgen-opensuse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ provision:
set -e -o pipefail
export MAVEN_VERSION=3.9.9
export SBT_VERSION=1.10.7
export GRADLE_VERSION=8.11
export GRADLE_VERSION=8.12
export MAVEN_HOME="/.sdkman/candidates/maven/${MAVEN_VERSION}"
export GRADLE_HOME="/.sdkman/candidates/gradle/${GRADLE_VERSION}"
export SBT_HOME="/.sdkman/candidates/sbt/${SBT_VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion contrib/lima/cdxgen-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ provision:
set -e -o pipefail
export MAVEN_VERSION=3.9.9
export SBT_VERSION=1.10.7
export GRADLE_VERSION=8.11
export GRADLE_VERSION=8.12
export MAVEN_HOME="/.sdkman/candidates/maven/${MAVEN_VERSION}"
export GRADLE_HOME="/.sdkman/candidates/gradle/${GRADLE_VERSION}"
export SBT_HOME="/.sdkman/candidates/sbt/${SBT_VERSION}"
Expand Down
8 changes: 8 additions & 0 deletions lib/evinser/evinser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,8 @@ export function extractEndpoints(language, code) {
case "rb": {
let urlPrefix = "";
let urlSuffix = "";
// Remove the ellipsis added by the frontend
code = code.replaceAll("...", "");
if (code.includes("namespace ")) {
urlPrefix = code.split("namespace ").pop().split(" ")[0];
}
Expand All @@ -1182,6 +1184,12 @@ export function extractEndpoints(language, code) {
`${urlPrefix.replace(/['"]/g, "")}${urlSuffix.replace(/['"]/g, "")}`,
);
}
endpoints =
endpoints && Array.isArray(endpoints)
? endpoints.filter(
(u) => u.length > 1 && !u.startsWith(".") && u !== "https:/",
)
: endpoints;
break;
}
default:
Expand Down

0 comments on commit a4f3c3f

Please sign in to comment.