Skip to content

Commit

Permalink
fix(rubygems): support Nexus (#19957)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jan 21, 2023
1 parent cf50673 commit 92e4c5c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 18 deletions.
4 changes: 2 additions & 2 deletions lib/modules/datasource/rubygems/get.ts
@@ -1,4 +1,4 @@
import Marshal from 'marshal';
import { Marshal } from '@qnighy/marshal';
import { logger } from '../../../logger';
import { HttpError } from '../../../util/http';
import { getQueryString, joinUrlParts, parseUrl } from '../../../util/url';
Expand Down Expand Up @@ -180,6 +180,6 @@ export class InternalRubyGemsDatasource extends Datasource {
return null;
}

return new Marshal(response.body).parsed as T;
return Marshal.parse(response.body) as T;
}
}
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -154,6 +154,7 @@
"@opentelemetry/sdk-trace-base": "1.9.0",
"@opentelemetry/sdk-trace-node": "1.9.0",
"@opentelemetry/semantic-conventions": "1.9.0",
"@qnighy/marshal": "0.1.3",
"@renovatebot/osv-offline": "1.1.0",
"@renovatebot/pep440": "2.1.6",
"@renovatebot/ruby-semver": "1.1.8",
Expand All @@ -166,7 +167,6 @@
"auth-header": "1.0.0",
"aws4": "1.12.0",
"azure-devops-node-api": "11.2.0",
"hcl2-parser": "1.0.3",
"bunyan": "1.8.15",
"cacache": "17.0.4",
"cacheable-lookup": "5.0.4",
Expand Down Expand Up @@ -197,6 +197,7 @@
"graph-data-structure": "2.0.0",
"handlebars": "4.7.7",
"hasha": "5.2.2",
"hcl2-parser": "1.0.3",
"ignore": "5.2.4",
"ini": "3.0.1",
"js-yaml": "4.1.0",
Expand All @@ -206,7 +207,6 @@
"luxon": "3.2.1",
"markdown-it": "13.0.1",
"markdown-table": "2.0.0",
"marshal": "0.5.4",
"minimatch": "5.1.2",
"moo": "0.5.2",
"nanoid": "3.3.4",
Expand Down
39 changes: 25 additions & 14 deletions yarn.lock
Expand Up @@ -1483,6 +1483,14 @@
dependencies:
"@babel/helper-plugin-utils" "^7.19.0"

"@babel/runtime-corejs3@^7.14.9":
version "7.20.7"
resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.20.7.tgz#a1e5ea3d758ba6beb715210142912e3f29981d84"
integrity sha512-jr9lCZ4RbRQmCR28Q8U8Fu49zvFqLxTY9AMOUz+iyMohMoAgpEcVxY+wJNay99oXOpOcCTODkk70NDN2aaJEeg==
dependencies:
core-js-pure "^3.25.1"
regenerator-runtime "^0.13.11"

"@babel/template@^7.18.10", "@babel/template@^7.20.7", "@babel/template@^7.3.3":
version "7.20.7"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.20.7.tgz#a15090c2839a83b02aa996c0b4994005841fd5a8"
Expand Down Expand Up @@ -2437,6 +2445,13 @@
write-file-atomic "^5.0.0"
write-yaml-file "^4.2.0"

"@qnighy/marshal@0.1.3":
version "0.1.3"
resolved "https://registry.yarnpkg.com/@qnighy/marshal/-/marshal-0.1.3.tgz#df941263b0305759512530af154314021be5ee1a"
integrity sha512-uaDZTJYtD2UgQTGemmgWeth+e2WapZm+GkAq8UU8AJ55PKRFaf1GkH7X/uzA+Ygu8iInzIlM2FGyCUnruyMKMg==
dependencies:
"@babel/runtime-corejs3" "^7.14.9"

"@redis/bloom@1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@redis/bloom/-/bloom-1.1.0.tgz#64e310ddee72010676e14296076329e594a1f6c7"
Expand Down Expand Up @@ -4289,6 +4304,11 @@ convert-source-map@^2.0.0:
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a"
integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==

core-js-pure@^3.25.1:
version "3.27.2"
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.27.2.tgz#47e9cc96c639eefc910da03c3ece26c5067c7553"
integrity sha512-Cf2jqAbXgWH3VVzjyaaFkY1EBazxugUepGymDoeteyYr9ByX51kD2jdHZlsEF/xnJMyN3Prua7mQuzwMg6Zc9A==

core-util-is@~1.0.0:
version "1.0.3"
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"
Expand Down Expand Up @@ -4387,13 +4407,6 @@ debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.3, d
dependencies:
ms "2.1.2"

debug@4.3.3:
version "4.3.3"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664"
integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==
dependencies:
ms "2.1.2"

debug@^3.2.7:
version "3.2.7"
resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a"
Expand Down Expand Up @@ -7295,13 +7308,6 @@ marked@^4.0.10:
resolved "https://registry.yarnpkg.com/marked/-/marked-4.2.12.tgz#d69a64e21d71b06250da995dcd065c11083bebb5"
integrity sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw==

marshal@0.5.4:
version "0.5.4"
resolved "https://registry.yarnpkg.com/marshal/-/marshal-0.5.4.tgz#465f6bc0b5d869dc9526dcc801308937cec5e395"
integrity sha512-f82P3ZYEDjREiuyO6Sqh3+nsZlweBeFyQkrYkkumazgwf7+aKVzuCmSTRif5r59dYJ2giR2TWnKySZM8TM81tA==
dependencies:
debug "4.3.3"

matcher@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/matcher/-/matcher-3.0.0.tgz#bd9060f4c5b70aa8041ccc6f80368760994f30ca"
Expand Down Expand Up @@ -8789,6 +8795,11 @@ redis@4.5.1:
"@redis/search" "1.1.0"
"@redis/time-series" "1.0.4"

regenerator-runtime@^0.13.11:
version "0.13.11"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==

regexp-to-ast@0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/regexp-to-ast/-/regexp-to-ast-0.5.0.tgz#56c73856bee5e1fef7f73a00f1473452ab712a24"
Expand Down

0 comments on commit 92e4c5c

Please sign in to comment.