Skip to content

Commit

Permalink
feat(bundler): Add the description -> summary fallback for gemspecs
Browse files Browse the repository at this point in the history
Implement the same fallback as for remote version details.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Jul 2, 2024
1 parent 065e1ca commit 9bdeaaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ packages:
- "Bob Example"
declared_licenses: []
declared_licenses_processed: {}
description: ""
description: "Test project with gemspec"
homepage_url: ""
binary_artifact:
url: ""
Expand Down
3 changes: 2 additions & 1 deletion plugins/package-managers/bundler/src/main/kotlin/Bundler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,15 @@ internal data class GemInfo(
}

val homepage = spec.homepage.orEmpty()
val info = spec.description ?: spec.summary

return GemInfo(
spec.name,
spec.version.version,
homepage,
spec.authors.mapToSetOfNotEmptyStrings(),
spec.licenses.mapToSetOfNotEmptyStrings(),
spec.description.orEmpty(),
info.orEmpty(),
runtimeDependencies,
VcsHost.parseUrl(homepage),
RemoteArtifact.EMPTY
Expand Down

0 comments on commit 9bdeaaf

Please sign in to comment.