renovate 44.227.4 → 44.228.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manager-default-configs.generated.js +7 -0
- package/dist/manager-default-configs.generated.js.map +1 -1
- package/dist/manager-list.generated.d.ts +1 -1
- package/dist/manager-list.generated.js +1 -0
- package/dist/manager-list.generated.js.map +1 -1
- package/dist/modules/manager/api.js +2 -0
- package/dist/modules/manager/api.js.map +1 -1
- package/dist/modules/manager/bundler/artifacts.js +5 -128
- package/dist/modules/manager/bundler/artifacts.js.map +1 -1
- package/dist/modules/manager/bundler/common.js +7 -11
- package/dist/modules/manager/bundler/common.js.map +1 -1
- package/dist/modules/manager/bundler/lock.js +131 -0
- package/dist/modules/manager/bundler/lock.js.map +1 -0
- package/dist/modules/manager/fingerprint.generated.js +2 -1
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- package/dist/modules/manager/gemspec/artifacts.js +12 -0
- package/dist/modules/manager/gemspec/artifacts.js.map +1 -0
- package/dist/modules/manager/gemspec/dep-types.js +11 -0
- package/dist/modules/manager/gemspec/dep-types.js.map +1 -0
- package/dist/modules/manager/gemspec/extract.js +118 -0
- package/dist/modules/manager/gemspec/extract.js.map +1 -0
- package/dist/modules/manager/gemspec/index.js +30 -0
- package/dist/modules/manager/gemspec/index.js.map +1 -0
- package/dist/modules/manager/gemspec/lockfile.js +56 -0
- package/dist/modules/manager/gemspec/lockfile.js.map +1 -0
- package/package.json +1 -1
- package/renovate-schema.json +483 -2
|
@@ -10,7 +10,7 @@ function extractRubyVersion(txt) {
|
|
|
10
10
|
const quotedVersion = rubyMatch.groups.version;
|
|
11
11
|
return quotedVersion.substring(1, quotedVersion.length - 1);
|
|
12
12
|
}
|
|
13
|
-
async function getRubyConstraintFromFiles(packageFileName, newPackageFileContent) {
|
|
13
|
+
async function getRubyConstraintFromFiles(packageFileName, newPackageFileContent, lockFileName) {
|
|
14
14
|
const rubyMatch = extractRubyVersion(newPackageFileContent);
|
|
15
15
|
if (rubyMatch) {
|
|
16
16
|
logger.debug("Using ruby version from gemfile");
|
|
@@ -23,20 +23,16 @@ async function getRubyConstraintFromFiles(packageFileName, newPackageFileContent
|
|
|
23
23
|
return rubyVersion;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (rubyVersion) {
|
|
31
|
-
logger.debug(`Using ruby version specified in lock file`);
|
|
32
|
-
return rubyVersion;
|
|
33
|
-
}
|
|
26
|
+
const rubyVersion = (await readLocalFile(lockFileName, "utf8"))?.match(regEx(/^ {3}ruby (?<version>\d[\d.]*)(?:[a-z]|\s|$)/m))?.groups?.version;
|
|
27
|
+
if (rubyVersion) {
|
|
28
|
+
logger.debug(`Using ruby version specified in lock file`);
|
|
29
|
+
return rubyVersion;
|
|
34
30
|
}
|
|
35
31
|
return null;
|
|
36
32
|
}
|
|
37
|
-
async function getRubyConstraint(updateArtifact) {
|
|
33
|
+
async function getRubyConstraint(updateArtifact, lockFileName) {
|
|
38
34
|
const { packageFileName, config, newPackageFileContent } = updateArtifact;
|
|
39
|
-
return await resolveToolConstraint(config, "ruby", () => getRubyConstraintFromFiles(packageFileName, newPackageFileContent));
|
|
35
|
+
return await resolveToolConstraint(config, "ruby", () => getRubyConstraintFromFiles(packageFileName, newPackageFileContent, lockFileName));
|
|
40
36
|
}
|
|
41
37
|
function getBundlerConstraintFromLockFile(existingLockFileContent) {
|
|
42
38
|
const bundledWith = regEx(/\nBUNDLED WITH\n\s+(?<version>.*?)(?:\n|$)/).exec(existingLockFileContent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","names":[],"sources":["../../../../lib/modules/manager/bundler/common.ts"],"sourcesContent":["import { logger } from '../../../logger/index.ts';\nimport {\n getSiblingFileName,\n localPathExists,\n readLocalFile,\n} from '../../../util/fs/index.ts';\nimport { regEx } from '../../../util/regex.ts';\nimport type { UpdateArtifact } from '../types.ts';\nimport { resolveToolConstraint } from '../util.ts';\n\nexport const delimiters = ['\"', \"'\"];\n\nexport function extractRubyVersion(txt: string): string | null {\n const rubyMatch = regEx(/^ruby\\s+(?<version>\"[^\"]+\"|'[^']+')\\s*$/gm).exec(\n txt,\n );\n if (!rubyMatch?.groups) {\n return null;\n }\n const quotedVersion = rubyMatch.groups.version;\n return quotedVersion.substring(1, quotedVersion.length - 1);\n}\n\nasync function getRubyConstraintFromFiles(\n packageFileName: string,\n newPackageFileContent: string,\n): Promise<string | null> {\n const rubyMatch = extractRubyVersion(newPackageFileContent);\n if (rubyMatch) {\n logger.debug('Using ruby version from gemfile');\n return rubyMatch;\n }\n for (const file of ['.ruby-version', '.tool-versions']) {\n const rubyVersion = (\n await readLocalFile(getSiblingFileName(packageFileName, file), 'utf8')\n )?.match(regEx(/^(?:ruby(?:-|\\s+))?(?<version>\\d[\\d.]*)/m))?.groups\n ?.version;\n if (rubyVersion) {\n logger.debug(`Using ruby version specified in ${file}`);\n return rubyVersion;\n }\n }\n const
|
|
1
|
+
{"version":3,"file":"common.js","names":[],"sources":["../../../../lib/modules/manager/bundler/common.ts"],"sourcesContent":["import { logger } from '../../../logger/index.ts';\nimport {\n getSiblingFileName,\n localPathExists,\n readLocalFile,\n} from '../../../util/fs/index.ts';\nimport { regEx } from '../../../util/regex.ts';\nimport type { UpdateArtifact } from '../types.ts';\nimport { resolveToolConstraint } from '../util.ts';\n\nexport const delimiters = ['\"', \"'\"];\n\nexport function extractRubyVersion(txt: string): string | null {\n const rubyMatch = regEx(/^ruby\\s+(?<version>\"[^\"]+\"|'[^']+')\\s*$/gm).exec(\n txt,\n );\n if (!rubyMatch?.groups) {\n return null;\n }\n const quotedVersion = rubyMatch.groups.version;\n return quotedVersion.substring(1, quotedVersion.length - 1);\n}\n\nasync function getRubyConstraintFromFiles(\n packageFileName: string,\n newPackageFileContent: string,\n lockFileName: string,\n): Promise<string | null> {\n const rubyMatch = extractRubyVersion(newPackageFileContent);\n if (rubyMatch) {\n logger.debug('Using ruby version from gemfile');\n return rubyMatch;\n }\n for (const file of ['.ruby-version', '.tool-versions']) {\n const rubyVersion = (\n await readLocalFile(getSiblingFileName(packageFileName, file), 'utf8')\n )?.match(regEx(/^(?:ruby(?:-|\\s+))?(?<version>\\d[\\d.]*)/m))?.groups\n ?.version;\n if (rubyVersion) {\n logger.debug(`Using ruby version specified in ${file}`);\n return rubyVersion;\n }\n }\n const rubyVersion = (await readLocalFile(lockFileName, 'utf8'))?.match(\n regEx(/^ {3}ruby (?<version>\\d[\\d.]*)(?:[a-z]|\\s|$)/m),\n )?.groups?.version;\n if (rubyVersion) {\n logger.debug(`Using ruby version specified in lock file`);\n return rubyVersion;\n }\n\n return null;\n}\n\nexport async function getRubyConstraint(\n updateArtifact: UpdateArtifact,\n lockFileName: string,\n): Promise<string | undefined> {\n const { packageFileName, config, newPackageFileContent } = updateArtifact;\n return await resolveToolConstraint(config, 'ruby', () =>\n getRubyConstraintFromFiles(\n packageFileName,\n newPackageFileContent,\n lockFileName,\n ),\n );\n}\n\nfunction getBundlerConstraintFromLockFile(\n existingLockFileContent: string,\n): string | null {\n const bundledWith = regEx(/\\nBUNDLED WITH\\n\\s+(?<version>.*?)(?:\\n|$)/).exec(\n existingLockFileContent,\n );\n if (bundledWith) {\n logger.debug('Using bundler version specified in lockfile');\n return bundledWith.groups!.version;\n }\n\n return null;\n}\n\nexport async function getBundlerConstraint(\n updateArtifact: Pick<UpdateArtifact, 'config'>,\n existingLockFileContent: string,\n): Promise<string | undefined> {\n const { config } = updateArtifact;\n return await resolveToolConstraint(config, 'bundler', () =>\n getBundlerConstraintFromLockFile(existingLockFileContent),\n );\n}\n\nexport async function getLockFilePath(\n packageFilePath: string,\n): Promise<string> {\n const lockFilePath = (await localPathExists(`${packageFilePath}.lock`))\n ? `${packageFilePath}.lock`\n : `Gemfile.lock`;\n logger.debug(`Lockfile for ${packageFilePath} found in ${lockFilePath}`);\n return lockFilePath;\n}\n"],"m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CAAiC,uBAAuB,CAC1D;AACF;AAEA,eAAsB,gBACpB,iBACiB;CACjB,MAAM,eAAgB,MAAM,gBAAgB,GAAG,gBAAgB,MAAM,IACjE,GAAG,gBAAgB,SACnB;CACJ,OAAO,MAAM,gBAAgB,gBAAgB,YAAY,cAAc;CACvE,OAAO;AACT"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { BUNDLER_INVALID_CREDENTIALS } from "../../../constants/error-messages.js";
|
|
2
|
+
import { logger } from "../../../logger/index.js";
|
|
3
|
+
import { get, set } from "../../../util/cache/memory/index.js";
|
|
4
|
+
import { exec } from "../../../util/exec/index.js";
|
|
5
|
+
import { ensureCacheDir, readLocalFile, writeLocalFile } from "../../../util/fs/index.js";
|
|
6
|
+
import { getRepoStatus } from "../../../util/git/index.js";
|
|
7
|
+
import { newlineRegex, regEx } from "../../../util/regex.js";
|
|
8
|
+
import { getBundlerConstraint, getRubyConstraint } from "./common.js";
|
|
9
|
+
import { findAllAuthenticatable, getAuthenticationHeaderValue } from "./host-rules.js";
|
|
10
|
+
import { isNonEmptyStringAndNotWhitespace, isString } from "@sindresorhus/is";
|
|
11
|
+
import { quote } from "shlex";
|
|
12
|
+
// lib/modules/manager/bundler/lock.ts
|
|
13
|
+
const hostConfigVariablePrefix = "BUNDLE_";
|
|
14
|
+
function buildBundleHostVariable(hostRule) {
|
|
15
|
+
/* v8 ignore if -- findAllAuthenticatable only returns rules with a resolvedHost */
|
|
16
|
+
if (!hostRule.resolvedHost) return {};
|
|
17
|
+
return { [hostConfigVariablePrefix.concat(hostRule.resolvedHost.toUpperCase().split(".").join("__").split("-").join("___"))]: `${getAuthenticationHeaderValue(hostRule)}` };
|
|
18
|
+
}
|
|
19
|
+
const resolvedPkgRegex = regEx(/(?<pkg>\S+)(?:\s*\([^)]+\)\s*)? was resolved to/);
|
|
20
|
+
function getResolvedPackages(input) {
|
|
21
|
+
const lines = input.split(newlineRegex);
|
|
22
|
+
const result = [];
|
|
23
|
+
for (const line of lines) {
|
|
24
|
+
const resolveMatchGroups = line.match(resolvedPkgRegex)?.groups;
|
|
25
|
+
if (resolveMatchGroups) {
|
|
26
|
+
const { pkg } = resolveMatchGroups;
|
|
27
|
+
result.push(pkg);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return [...new Set(result)];
|
|
31
|
+
}
|
|
32
|
+
async function runBundlerLock(updateArtifact, lockFileName, recursionLimit = 10) {
|
|
33
|
+
const { packageFileName, updatedDeps, newPackageFileContent, config } = updateArtifact;
|
|
34
|
+
logger.debug(`bundler.runBundlerLock(${packageFileName})`);
|
|
35
|
+
const existingError = get("bundlerArtifactsError");
|
|
36
|
+
if (existingError) {
|
|
37
|
+
logger.debug("Aborting Bundler artifacts due to previous failed attempt");
|
|
38
|
+
throw new Error(existingError);
|
|
39
|
+
}
|
|
40
|
+
const existingLockFileContent = await readLocalFile(lockFileName, "utf8");
|
|
41
|
+
if (!existingLockFileContent) {
|
|
42
|
+
logger.debug("No Gemfile.lock found");
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
const updatedDepNames = updatedDeps.map(({ depName }) => depName).filter(isNonEmptyStringAndNotWhitespace);
|
|
46
|
+
try {
|
|
47
|
+
await writeLocalFile(packageFileName, newPackageFileContent);
|
|
48
|
+
const commands = [];
|
|
49
|
+
if (config.isLockFileMaintenance) commands.push("bundler lock --update");
|
|
50
|
+
else {
|
|
51
|
+
if (updatedDeps.map((dep) => dep.depName).includes("bundler")) commands.push("bundler lock --update --bundler");
|
|
52
|
+
for (const [updateType, updateArg] of Object.entries({
|
|
53
|
+
patch: "--patch ",
|
|
54
|
+
minor: "--minor ",
|
|
55
|
+
major: ""
|
|
56
|
+
})) {
|
|
57
|
+
const deps = updatedDeps.filter((dep) => (dep.updateType ?? "major") === updateType).map((dep) => dep.depName).filter(isString).filter((dep) => dep !== "ruby" && dep !== "bundler");
|
|
58
|
+
let additionalArgs = "";
|
|
59
|
+
if (config.postUpdateOptions?.includes("bundlerConservative")) additionalArgs = "--conservative ";
|
|
60
|
+
if (deps.length) {
|
|
61
|
+
const cmd = `bundler lock ${updateArg}${additionalArgs}--update ${deps.map(quote).join(" ")}`;
|
|
62
|
+
commands.push(cmd);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (updatedDeps.map((dep) => dep.depName).includes("ruby")) commands.push("bundler lock");
|
|
66
|
+
}
|
|
67
|
+
const bundlerHostRulesVariables = findAllAuthenticatable({ hostType: "rubygems" }).reduce((variables, hostRule) => ({
|
|
68
|
+
...variables,
|
|
69
|
+
...buildBundleHostVariable(hostRule)
|
|
70
|
+
}), {});
|
|
71
|
+
const bundler = await getBundlerConstraint(updateArtifact, existingLockFileContent);
|
|
72
|
+
const preCommands = ["ruby --version"];
|
|
73
|
+
const execOptions = {
|
|
74
|
+
cwdFile: lockFileName,
|
|
75
|
+
extraEnv: {
|
|
76
|
+
...bundlerHostRulesVariables,
|
|
77
|
+
GEM_HOME: await ensureCacheDir("bundler")
|
|
78
|
+
},
|
|
79
|
+
docker: {},
|
|
80
|
+
toolConstraints: [{
|
|
81
|
+
toolName: "ruby",
|
|
82
|
+
constraint: await getRubyConstraint(updateArtifact, lockFileName)
|
|
83
|
+
}, {
|
|
84
|
+
toolName: "bundler",
|
|
85
|
+
constraint: bundler
|
|
86
|
+
}],
|
|
87
|
+
preCommands
|
|
88
|
+
};
|
|
89
|
+
await exec(commands, execOptions);
|
|
90
|
+
if (!(await getRepoStatus()).modified.includes(lockFileName)) return null;
|
|
91
|
+
logger.debug("Returning updated Gemfile.lock");
|
|
92
|
+
return [{ file: {
|
|
93
|
+
type: "addition",
|
|
94
|
+
path: lockFileName,
|
|
95
|
+
contents: await readLocalFile(lockFileName)
|
|
96
|
+
} }];
|
|
97
|
+
} catch (err) {
|
|
98
|
+
if (err.message === "temporary-error") throw err;
|
|
99
|
+
const output = `${String(err.stdout)}\n${String(err.stderr)}`;
|
|
100
|
+
if (err.message.includes("fatal: Could not parse object") || output.includes("but that version could not be found")) return [{ artifactError: {
|
|
101
|
+
fileName: lockFileName,
|
|
102
|
+
stderr: output
|
|
103
|
+
} }];
|
|
104
|
+
if (err.stdout?.includes("Please supply credentials for this source") || err.stderr?.includes("Authentication is required") || err.stderr?.includes("Please make sure you have the correct access rights")) {
|
|
105
|
+
logger.debug({ err }, "Gemfile.lock update failed due to missing credentials - skipping branch");
|
|
106
|
+
set("bundlerArtifactsError", BUNDLER_INVALID_CREDENTIALS);
|
|
107
|
+
throw new Error(BUNDLER_INVALID_CREDENTIALS);
|
|
108
|
+
}
|
|
109
|
+
const resolveMatches = getResolvedPackages(output).filter((depName) => !updatedDepNames.includes(depName));
|
|
110
|
+
if (recursionLimit > 0 && resolveMatches.length && !config.isLockFileMaintenance) {
|
|
111
|
+
logger.debug({
|
|
112
|
+
resolveMatches,
|
|
113
|
+
updatedDeps
|
|
114
|
+
}, "Found new resolve matches - reattempting recursively");
|
|
115
|
+
return runBundlerLock({
|
|
116
|
+
packageFileName,
|
|
117
|
+
updatedDeps: [.../* @__PURE__ */ new Set([...updatedDeps, ...resolveMatches.map((match) => ({ depName: match }))])],
|
|
118
|
+
newPackageFileContent,
|
|
119
|
+
config
|
|
120
|
+
}, lockFileName, recursionLimit - 1);
|
|
121
|
+
}
|
|
122
|
+
logger.info({ err }, "Gemfile.lock update failed due to an unknown reason");
|
|
123
|
+
return [{ artifactError: {
|
|
124
|
+
fileName: lockFileName,
|
|
125
|
+
stderr: `${String(err.stdout)}\n${String(err.stderr)}`
|
|
126
|
+
} }];
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
export { runBundlerLock };
|
|
130
|
+
|
|
131
|
+
//# sourceMappingURL=lock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lock.js","names":["memCache.get"],"sources":["../../../../lib/modules/manager/bundler/lock.ts"],"sourcesContent":["import { isNonEmptyStringAndNotWhitespace, isString } from '@sindresorhus/is';\nimport { quote } from 'shlex';\nimport {\n BUNDLER_INVALID_CREDENTIALS,\n TEMPORARY_ERROR,\n} from '../../../constants/error-messages.ts';\nimport { logger } from '../../../logger/index.ts';\nimport type { HostRule } from '../../../types/index.ts';\nimport * as memCache from '../../../util/cache/memory/index.ts';\nimport { exec } from '../../../util/exec/index.ts';\nimport type { ExecOptions } from '../../../util/exec/types.ts';\nimport {\n ensureCacheDir,\n readLocalFile,\n writeLocalFile,\n} from '../../../util/fs/index.ts';\nimport { getRepoStatus } from '../../../util/git/index.ts';\nimport { newlineRegex, regEx } from '../../../util/regex.ts';\nimport type { UpdateArtifact, UpdateArtifactsResult } from '../types.ts';\nimport { getBundlerConstraint, getRubyConstraint } from './common.ts';\nimport {\n findAllAuthenticatable,\n getAuthenticationHeaderValue,\n} from './host-rules.ts';\n\nconst hostConfigVariablePrefix = 'BUNDLE_';\n\nfunction buildBundleHostVariable(hostRule: HostRule): Record<string, string> {\n /* v8 ignore if -- findAllAuthenticatable only returns rules with a resolvedHost */\n if (!hostRule.resolvedHost) {\n return {};\n }\n const varName = hostConfigVariablePrefix.concat(\n hostRule.resolvedHost\n .toUpperCase()\n .split('.')\n .join('__')\n .split('-')\n .join('___'),\n );\n return {\n [varName]: `${getAuthenticationHeaderValue(hostRule)}`,\n };\n}\n\nconst resolvedPkgRegex = regEx(\n /(?<pkg>\\S+)(?:\\s*\\([^)]+\\)\\s*)? was resolved to/,\n);\n\nfunction getResolvedPackages(input: string): string[] {\n const lines = input.split(newlineRegex);\n const result: string[] = [];\n for (const line of lines) {\n const resolveMatchGroups = line.match(resolvedPkgRegex)?.groups;\n if (resolveMatchGroups) {\n const { pkg } = resolveMatchGroups;\n result.push(pkg);\n }\n }\n\n return [...new Set(result)];\n}\n\nexport async function runBundlerLock(\n updateArtifact: UpdateArtifact,\n lockFileName: string,\n recursionLimit = 10,\n): Promise<UpdateArtifactsResult[] | null> {\n const { packageFileName, updatedDeps, newPackageFileContent, config } =\n updateArtifact;\n logger.debug(`bundler.runBundlerLock(${packageFileName})`);\n const existingError = memCache.get<string>('bundlerArtifactsError');\n if (existingError) {\n logger.debug('Aborting Bundler artifacts due to previous failed attempt');\n throw new Error(existingError);\n }\n const existingLockFileContent = await readLocalFile(lockFileName, 'utf8');\n if (!existingLockFileContent) {\n logger.debug('No Gemfile.lock found');\n return null;\n }\n\n const updatedDepNames: string[] = updatedDeps\n .map(({ depName }) => depName)\n .filter(isNonEmptyStringAndNotWhitespace);\n\n try {\n await writeLocalFile(packageFileName, newPackageFileContent);\n\n const commands: string[] = [];\n\n if (config.isLockFileMaintenance) {\n commands.push('bundler lock --update');\n } else {\n const bundlerUpgraded = updatedDeps\n .map((dep) => dep.depName)\n .includes('bundler');\n if (bundlerUpgraded) {\n commands.push('bundler lock --update --bundler');\n }\n\n const updateTypes = {\n patch: '--patch ',\n minor: '--minor ',\n major: '',\n };\n for (const [updateType, updateArg] of Object.entries(updateTypes)) {\n const deps = updatedDeps\n .filter((dep) => (dep.updateType ?? 'major') === updateType)\n .map((dep) => dep.depName)\n .filter(isString)\n .filter((dep) => dep !== 'ruby' && dep !== 'bundler');\n let additionalArgs = '';\n if (config.postUpdateOptions?.includes('bundlerConservative')) {\n additionalArgs = '--conservative ';\n }\n if (deps.length) {\n const cmd = `bundler lock ${updateArg}${additionalArgs}--update ${deps\n .map(quote)\n .join(' ')}`;\n commands.push(cmd);\n }\n }\n\n const rubyUpgraded = updatedDeps\n .map((dep) => dep.depName)\n .includes('ruby');\n if (rubyUpgraded) {\n commands.push('bundler lock');\n }\n }\n\n const bundlerHostRules = findAllAuthenticatable({\n hostType: 'rubygems',\n });\n\n const bundlerHostRulesVariables = bundlerHostRules.reduce(\n (variables, hostRule) => ({\n ...variables,\n ...buildBundleHostVariable(hostRule),\n }),\n {} as Record<string, string>,\n );\n\n const bundler = await getBundlerConstraint(\n updateArtifact,\n existingLockFileContent,\n );\n const preCommands = ['ruby --version'];\n\n const execOptions: ExecOptions = {\n cwdFile: lockFileName,\n extraEnv: {\n ...bundlerHostRulesVariables,\n GEM_HOME: await ensureCacheDir('bundler'),\n },\n docker: {},\n toolConstraints: [\n {\n toolName: 'ruby',\n constraint: await getRubyConstraint(updateArtifact, lockFileName),\n },\n {\n toolName: 'bundler',\n constraint: bundler,\n },\n ],\n preCommands,\n };\n await exec(commands, execOptions);\n\n const status = await getRepoStatus();\n if (!status.modified.includes(lockFileName)) {\n return null;\n }\n logger.debug('Returning updated Gemfile.lock');\n const lockFileContent = await readLocalFile(lockFileName);\n return [\n {\n file: {\n type: 'addition',\n path: lockFileName,\n contents: lockFileContent,\n },\n },\n ];\n } catch (err) {\n if (err.message === TEMPORARY_ERROR) {\n throw err;\n }\n const output = `${String(err.stdout)}\\n${String(err.stderr)}`;\n if (\n err.message.includes('fatal: Could not parse object') ||\n output.includes('but that version could not be found')\n ) {\n return [\n {\n artifactError: {\n fileName: lockFileName,\n stderr: output,\n },\n },\n ];\n }\n if (\n err.stdout?.includes('Please supply credentials for this source') ||\n err.stderr?.includes('Authentication is required') ||\n err.stderr?.includes(\n 'Please make sure you have the correct access rights',\n )\n ) {\n logger.debug(\n { err },\n 'Gemfile.lock update failed due to missing credentials - skipping branch',\n );\n // Do not generate these PRs because we don't yet support Bundler authentication\n memCache.set('bundlerArtifactsError', BUNDLER_INVALID_CREDENTIALS);\n throw new Error(BUNDLER_INVALID_CREDENTIALS);\n }\n const resolveMatches: string[] = getResolvedPackages(output).filter(\n (depName) => !updatedDepNames.includes(depName),\n );\n if (\n recursionLimit > 0 &&\n resolveMatches.length &&\n !config.isLockFileMaintenance\n ) {\n logger.debug(\n { resolveMatches, updatedDeps },\n 'Found new resolve matches - reattempting recursively',\n );\n const newUpdatedDeps = [\n ...new Set([\n ...updatedDeps,\n ...resolveMatches.map((match) => ({ depName: match })),\n ]),\n ];\n return runBundlerLock(\n {\n packageFileName,\n updatedDeps: newUpdatedDeps,\n newPackageFileContent,\n config,\n },\n lockFileName,\n recursionLimit - 1,\n );\n }\n\n logger.info({ err }, 'Gemfile.lock update failed due to an unknown reason');\n return [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
|
|
@@ -19,7 +19,7 @@ hashMap.set("buildkite", "b8b404f53cd5d61c39153fddf93945e621471c4ac6aa9960c881cd
|
|
|
19
19
|
hashMap.set("buildpacks", "6bef3cb04d66b5cfbb195adb4829bcbccae6408518706744d291bacf0610421f");
|
|
20
20
|
hashMap.set("bun", "85f389e291218c49c1c0400ba4c6c9ff7532a6b098e9a37b872fd26569c02fc0");
|
|
21
21
|
hashMap.set("bun-version", "df3ae8e4a5de1fa1b4544f3d7fc8117e80adb1e151c46d1ede54a4dbea6521e4");
|
|
22
|
-
hashMap.set("bundler", "
|
|
22
|
+
hashMap.set("bundler", "0554277f0c9edfc12a8ba2aefdb74c890e274dabce1cbdb1383990063ddc510b");
|
|
23
23
|
hashMap.set("cake", "9ebd8b481220b30a8860121d26184540a1a2fcc05ef780df9295dea39b386fad");
|
|
24
24
|
hashMap.set("cargo", "74ac02207de7b297d66dfed5b77c7fdeffcdcf2eac639798ba434d0571a90384");
|
|
25
25
|
hashMap.set("cdnurl", "9a81c8e3c6ad6c788498c99fc1067ffdfcd92a427c3afaf8c0130975d83131f2");
|
|
@@ -42,6 +42,7 @@ hashMap.set("droneci", "661d2a2d7295af8dd7a1234c7090c42a89306bd574c3adf1fc67782e
|
|
|
42
42
|
hashMap.set("fleet", "ffa222820f72c4eb4cdc4c229ae8c50433bee96f3b974f0633d5a7d1f6427c97");
|
|
43
43
|
hashMap.set("flux", "f881de9cb1b09788f78a3de7c7bbfd8407f88a4af49a39b99f4f91634584249f");
|
|
44
44
|
hashMap.set("fvm", "9b161df0f14bc6e536368952adf373e343630097121a913cea60ee284027fb90");
|
|
45
|
+
hashMap.set("gemspec", "3e467cfce562a0d7aef8f35083aceb9e41f9dce83dc0d4010422aee8dbc2a9d2");
|
|
45
46
|
hashMap.set("git-submodules", "064fa55369f11feec61b699cb122df6ea81f8e0c09ea9f7dbb96796c87be6950");
|
|
46
47
|
hashMap.set("github-actions", "a287f0081e4b18c68209b0e90762496839088522caf662aaf064b0fb945e139c");
|
|
47
48
|
hashMap.set("gitlabci", "a5e1e66ef461e1c1e71062f85f35a212417e23627f4b002810f9a98295d6e672");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fingerprint.generated.js","names":[],"sources":["../../../lib/modules/manager/fingerprint.generated.ts"],"sourcesContent":["export const hashMap = new Map<string, string>();\n\nhashMap.set('ansible','a52394a36ac5517f7330473c31d93aa05b2ce607c5e951b48f25a4693cd20a81');\nhashMap.set('ansible-galaxy','8e11293c8f61b4cbae77a3b1634a47213031c59df2c9833d89db65bf4e6edc64');\nhashMap.set('ant','2df5943cf0ed19a21b94df13729dbb925655548130caf37e3e22bebaed518e17');\nhashMap.set('apm','559aca1db5b117b162962fe817db5550f1b17793b02b45982394ea2458e421f7');\nhashMap.set('argocd','cff9cd22257bc460ae4b9936570bf0ed5585f280a55d26629deaeeb0bfee8eb5');\nhashMap.set('asdf','430eb99b58171700c8a59c78b9e648575e9b176b781d90dd10a710f7b69015bb');\nhashMap.set('azure-pipelines','04a13dec4e08ba21004961c718072fde976226d65809fa3c838bf66ba93e5d5a');\nhashMap.set('batect','375d39b432013bedb1330cf40a2199dd822751b28578214f219e7bab98594b8d');\nhashMap.set('batect-wrapper','d999355511ea7f4053325a18b8cfc8d2b586c61e6760c35e557d383a673e3939');\nhashMap.set('bazel','4d4f1d9a6519ba552b316b396db13ff0654a2663d8ed976188899a2d57d306a2');\nhashMap.set('bazel-module','9fbba0339f9f7785d52ab85c5f0f6385003093c063483c13feccba13ae438bef');\nhashMap.set('bazelisk','770f75a746dc6ba90c518788d5987d7df4243ef9eee122d1bb0556a93d6e1b11');\nhashMap.set('bicep','7246e0bfc06e0e28cbb03ac088c5591f648956b086e106aeb251fe5d628329db');\nhashMap.set('bitbucket-pipelines','59c0503494ab1442b127914503c01b97ac17b6742b19c632292d5aa24de115cd');\nhashMap.set('bitrise','478dfd316221fad7c29e177c70d1018d832fb2626b53308a5d0f1f0380e69f42');\nhashMap.set('buildkite','b8b404f53cd5d61c39153fddf93945e621471c4ac6aa9960c881cd868922bb4c');\nhashMap.set('buildpacks','6bef3cb04d66b5cfbb195adb4829bcbccae6408518706744d291bacf0610421f');\nhashMap.set('bun','85f389e291218c49c1c0400ba4c6c9ff7532a6b098e9a37b872fd26569c02fc0');\nhashMap.set('bun-version','df3ae8e4a5de1fa1b4544f3d7fc8117e80adb1e151c46d1ede54a4dbea6521e4');\nhashMap.set('bundler','6e4784dd98c1f86ef64cc8cbf3128df48aebf920032d7792b54fdedd3dd9d4d5');\nhashMap.set('cake','9ebd8b481220b30a8860121d26184540a1a2fcc05ef780df9295dea39b386fad');\nhashMap.set('cargo','74ac02207de7b297d66dfed5b77c7fdeffcdcf2eac639798ba434d0571a90384');\nhashMap.set('cdnurl','9a81c8e3c6ad6c788498c99fc1067ffdfcd92a427c3afaf8c0130975d83131f2');\nhashMap.set('circleci','91cbeb33ea20f9838e2c81a1195eb806f0b38fa282bc3679f62552f20575ca85');\nhashMap.set('cloudbuild','f4e40388944652c8a19f8518771ac8d3f3c4ccf81ddef0e68b463aca833cb73c');\nhashMap.set('cocoapods','f832e2beef885bb3fd697ed9bb3e8cd742926bfec37ff41212edd2dbb4edb3ba');\nhashMap.set('composer','bbca094a652544845c147bd801b04ce4aae3719cb27acfb68b2ebac616940538');\nhashMap.set('conan','03cdeeffe4e688fb403766100cc1fc617dd388629f1c769ba54a966db3b23414');\nhashMap.set('copier','a0678cc1eec36301328780966eec215c6e18748ea80c98873c8e13291a684cfa');\nhashMap.set('cpanfile','07813fec3f3c2197056500e9266a0553b9774c02f2c74d5ca2e213188c7c12d3');\nhashMap.set('crossplane','5c26b1201a1a51454ffb94d829e223a76a781569bf79cdb1e47087c30233ec40');\nhashMap.set('crow','eb9a5f9f95041855dded67bcce3dd54724f690995ed6268d272e8a666ff28fd0');\nhashMap.set('deno','41e6a8b7b8bae08f07b3e4b69c8c095db5da984bb23c004cd1ebf755a6317794');\nhashMap.set('deps-edn','06783dbc8b9c7bb84e162d1f75b7db56dfa021cc6f809dfd2314cee8b64af08d');\nhashMap.set('devbox','a40050cc61bd9b5d500ec111abb17bb15d5f82ab5b7699f66f628307ba8382c9');\nhashMap.set('devcontainer','24320ed1cb6191d04cb8b2707214d82c08c682597aed1d84f250aa00ad1632ec');\nhashMap.set('docker-compose','fba87b82cb0f2bfd66526631fbe928b8153e7ca701a5790d02b944df17417bb9');\nhashMap.set('dockerfile','b5faeb8f31d238e0d05a4aeebf9a837273687908ab8078b34e738bb0e369c80c');\nhashMap.set('droneci','661d2a2d7295af8dd7a1234c7090c42a89306bd574c3adf1fc67782efaad3998');\nhashMap.set('fleet','ffa222820f72c4eb4cdc4c229ae8c50433bee96f3b974f0633d5a7d1f6427c97');\nhashMap.set('flux','f881de9cb1b09788f78a3de7c7bbfd8407f88a4af49a39b99f4f91634584249f');\nhashMap.set('fvm','9b161df0f14bc6e536368952adf373e343630097121a913cea60ee284027fb90');\nhashMap.set('git-submodules','064fa55369f11feec61b699cb122df6ea81f8e0c09ea9f7dbb96796c87be6950');\nhashMap.set('github-actions','a287f0081e4b18c68209b0e90762496839088522caf662aaf064b0fb945e139c');\nhashMap.set('gitlabci','a5e1e66ef461e1c1e71062f85f35a212417e23627f4b002810f9a98295d6e672');\nhashMap.set('gitlabci-include','8860a15ab516fde00694f9bd9bf56fce4addafe5a55b5ddb9a4ec477d301d351');\nhashMap.set('glasskube','93e7b9000a17efa15a1abaaf320b5af9169b1ecd828fc0c881d98570ef9d9e30');\nhashMap.set('gleam','5e9b9f5f914afe5ed7b526c06c65111e3716d2dea9b0cbe7907bbc96db1064a3');\nhashMap.set('gomod','8b24033ac7fb1ef08c5fd4469854bef33064007b4aed6519ad09bd0d050048a2');\nhashMap.set('gradle','14ffeecba62452d47d3796e68753da745de2614b6e5ecc346da4f0067ed4bc6e');\nhashMap.set('gradle-wrapper','73ba30c34955fab7737454b5cff9aca6d1b5607d53c17c9e13d8ad96f6eaae87');\nhashMap.set('haskell-cabal','f158b7725e3143dfd2950e3de0bbccc2a61cd7eba87f7a54c5057e01252348e2');\nhashMap.set('helm-requirements','22f61344565f87ca3512c0ba8fac32627fde8ee919b7badae07b2116e285f049');\nhashMap.set('helm-values','0aa79bb0257d0d72e54dfd2653e59bfef63b97e46c035b7443593bdf6e6382aa');\nhashMap.set('helmfile','ab63e5bc2bb381939a6b75911947e3fc79d31827423ded07f61ea1c98d95a542');\nhashMap.set('helmsman','951deeb3355da751ef39c9e932b26ea749450e32e75759e4b5fc29359e100b37');\nhashMap.set('helmv3','927798e082caf46a0da703389ba07e9e61fa73ef571ab551301b8fc6b06957d1');\nhashMap.set('hermit','abf066a64be5e5112e4da68896cf14583691e817d8bf2fc5ec65aebcc0fde53b');\nhashMap.set('homeassistant-manifest','05043c6db870cffbb6f8f3e351c025e3de227eaae0b24134b796aec46f84b65f');\nhashMap.set('homebrew','dffe954a4e18c2dc4bfdaa12222fe8ddc3395869afd5afa603fc2b6264747984');\nhashMap.set('html','81fa6c2bf2b868596584a48b949645207a2aa3081951ed99183ee50b70b77d5f');\nhashMap.set('jenkins','7fda0e7e0f3d5e18088ccb3594f727f4cfc48b064706bdaaf1a0a075b6a2cff5');\nhashMap.set('jsonnet-bundler','4cedeb0394e5c38361d1868ff45b4f34747ab8c492378b6e63dcaf1f4f3c024d');\nhashMap.set('julia','1e8237ab435ea7acc9b8f3402385cd0a74f6c8f256d380b1ca4e8785cce6de8e');\nhashMap.set('kotlin-script','95ebc844c040ca047321b207d525220e29774a2a1fe06f9639e8353c66908564');\nhashMap.set('kubernetes','321e7d77fb3600dd4c00a86eaa1294927e7f92300b74fa2977d813dcaa3bb4de');\nhashMap.set('kustomize','11b17044d29321b3b0ad8cee40ba00cd3297b9e94648556211043f1e8635c8e7');\nhashMap.set('leiningen','c8397e376f1717c2f771ae9ea3ba6b720d2422b133cf937e762c44e42be146a2');\nhashMap.set('maven','c110b99291c2a5bc82cf7a69330275e9bbd7dc8ba3e9e987611dfcffbe002d8d');\nhashMap.set('maven-wrapper','f9df7bfca0f8ffc2eff230aec09a53c8ae3e4012ac499a38622b31df203f047a');\nhashMap.set('meteor','4636a47ba4dcfff19fe662572ef7a40d17146be3c966e00ef437e1fc8de92776');\nhashMap.set('mint','248fe4f1ea5c985921c286785792c97e06fc41f402b2d45df82f6aecd17f710e');\nhashMap.set('mise','432f3cd80b9fd3f76b2af73db5e96508edda102a0d7eb3265af232f07b8e8f21');\nhashMap.set('mix','0f79163dc2a1c896599d152be635c23beaf16812ae3d8fbfffec98c7bd0de872');\nhashMap.set('nix','422242f1714be6972fc7006c37f4a497dbbd44ba9c3f68f7b73e7dd3d81fd74d');\nhashMap.set('nodenv','ac652c28481b001f7471f4183eac07b45d98ecbe83efc275830b0a1b2e0459b8');\nhashMap.set('npm','6ed1b8f3af1300dd1f30130be40e656d54c7e6deefd49d3a886d3d1329855248');\nhashMap.set('nuget','fb02247c67a198ffe414a44d23c7894bd114dcc53803334f82e39479e7b27f6f');\nhashMap.set('nvm','3eb77c7b0acf6d64753de78fad2499b352719853aa6872878c40675d14152322');\nhashMap.set('ocb','032b216684c14b0954e0bb019513a2aca3faaee5748587acb668d377d7c891ca');\nhashMap.set('osgi','d6567a733ef3983112b46fdccd7ceebfcd48411104e0c6b6e714d4310db48024');\nhashMap.set('paket','0cf8ff9b040ecf28f29b23bbe2ab2544ab3c94822bc1fb53ee4df7b74f000dea');\nhashMap.set('pep621','6d6ef40bbc15aaab78a92efd3f7a7658958423385aaeb957f5174c0510e350b8');\nhashMap.set('pep723','77022a0eae6a3cbb74a1e6d596db1276e379768e40448192b3fa81edd14ca73f');\nhashMap.set('pip-compile','a98dc76a002e1dc21662237f009ff8fea36236bb4e24cb82ee30c6a78f57271f');\nhashMap.set('pip_requirements','bf3a407f72abf711230247bef94ba5dc84c08a35107b0f017912fad66afa716a');\nhashMap.set('pip_setup','df18fba2bdcf48f3ca12a8f7e5cd28df31e2368d5528127277038ef4206eca79');\nhashMap.set('pipenv','9b8ac4f9432f2789f60847c80582966d5ed4f735d2f678c82416d0eb9548b4fa');\nhashMap.set('pixi','e31c397982ffa34222b061f23f3b3683f42523dd5dca45ecce2448b0ebc55ea2');\nhashMap.set('poetry','ee819d86b635173fe85aa2ae98396385999b3b4c182743e07cb3442108c74c8f');\nhashMap.set('pre-commit','760f2c291ae084db889f722390798a0e2d431ccdc3bc676e73b14901ebea19ac');\nhashMap.set('proto','412053d4550026b4ace490b46e970915b87ec1abf0b0a0c6c8c58ccf1fc16843');\nhashMap.set('pub','8e7c65dfd1999de4f7c44392e949a4d8f4701eb86df59d550e4657feb06b1872');\nhashMap.set('puppet','ba58ab689e44acc8f61c3569ab8b40fde01b8a9d3aad712708e2a419e57d8b45');\nhashMap.set('pyenv','9ede8becc97774f9040b40f4472d3e933534b596e04c360bfe0f3c6f95f25182');\nhashMap.set('quadlet','40927b98dd2bac45dba60e66b5fd0e6b84b61d02db8be536fda7b14546a4feb7');\nhashMap.set('renovate-config','890cabf707d01b58394e0bec05e3a29b73de8f0b43fcbe8a42cd26e328608d70');\nhashMap.set('ruby-version','2db2140d9eee8c555e729a4de0396fa2d78846d3149890ee12fa515bd654be97');\nhashMap.set('runtime-version','b582b168c0cc595e39010feb10f4b97a82683eb269e9598216fbb11cc186e160');\nhashMap.set('rust-toolchain','f30a8688f7cc19a6233d6efee51e942f32030d77a12c5d3201c67e3686de4936');\nhashMap.set('sbt','e1eb5c7f0171a9bb1b6bd4a36a91039a31b6c84e0983d91d930be31a69506d9e');\nhashMap.set('scalafmt','9d36159b56835e96498af026a1fb0543200db0581681ef95ec54988f411e180f');\nhashMap.set('setup-cfg','4a3a7c812d34739c07685691e7e64c7d3127f9d7d4aff99dc45a25df97ed9745');\nhashMap.set('smithy','9641b91d065ffb63be0dd888139a0402dba41e550f8b44c592db9daf52109100');\nhashMap.set('sveltos','60dd75bb53ace31217211100d622fdb65068c6162758b6ae7103a6ce8bdc9f90');\nhashMap.set('swift','cdf063debdbf36888523ff8cec6d2d1b0ec6f49b37b2fbcd80b0d4f6a31114e1');\nhashMap.set('tekton','33948f5bdf7553909fa63744adb26da97ddf366e9499bccab1250879570267c9');\nhashMap.set('terraform','6788a8569ba9c50c763ffa2bed952a4314ae8e696c29f93d3eb7c4a12d99ce20');\nhashMap.set('terraform-version','ec8f786b9731d47f2c2fe0307caf64d7ddd83046fe7ff1f7d8423239f8b0f2aa');\nhashMap.set('terragrunt','300f8fb3c09667654412d2f5dd8ab4882e0f5d1d7a8bc39794993d2e7e58d1b7');\nhashMap.set('terragrunt-version','eea6087b33717d22ede2fc68c2f64df8390b75abe82110ed831a180648feb51d');\nhashMap.set('tflint-plugin','f423bfa2b42a2bfc0e38a33ebd4f9d452473e7ed4e7ad6384a99eb9a35d97479');\nhashMap.set('travis','f3e2f38e699c390b00ff481be5e91dceaa81609e93caf9a4214933de759c84fc');\nhashMap.set('typst','d080a79fbd961c6e21fcc505d544b7e0ff2126142acb1dcabdf6abbcd9339248');\nhashMap.set('unity3d','f13e25e115e3443f4e16cf31578acffa78fb1a5e23339680a92d8d6de6052920');\nhashMap.set('velaci','fda00ddb7cc23e9a37e0a8a253151df0a6930b4276d3e4f78cc54b9ac09af7de');\nhashMap.set('vendir','30774cd456c443be2cd236fd5b8cd1cb821f1437c6309842e34960832df3557f');\nhashMap.set('woodpecker','6110d3bec33aaeb3511d4bbfa896cec3c8e02fb04a6cff50c9ba81061c851045');\nhashMap.set('xcodegen','dad511d88a9ce1dbdde8b9731f3da7f2bdaa4ca8a083294ee58d56da62ab1683');\nhashMap.set('jsonata','416bcf61144b276b3112814c6e6d261aa29608f46fbb0516c471d35c16f8f0d7');\nhashMap.set('regex','20be5247fdc164173871a051acb0527da017d0c155c653d7563601f55e7b3ff5');"],"mappings":";AAAA,MAAa,0BAAU,IAAI,IAAoB;AAE/C,QAAQ,IAAI,WAAU,kEAAkE;AACxF,QAAQ,IAAI,kBAAiB,kEAAkE;AAC/F,QAAQ,IAAI,OAAM,kEAAkE;AACpF,QAAQ,IAAI,OAAM,kEAAkE;AACpF,QAAQ,IAAI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,QAAQ,IAAI,iBAAgB,kEAAkE;AAC9F,QAAQ,IAAI,UAAS,kEAAkE;AACvF,QAAQ,IAAI,SAAQ,kEAAkE;AACtF,QAAQ,IAAI,WAAU,kEAAkE;AACxF,QAAQ,IAAI,UAAS,kEAAkE;AACvF,QAAQ,IAAI,UAAS,kEAAkE;AACvF,QAAQ,IAAI,cAAa,kEAAkE;AAC3F,QAAQ,IAAI,YAAW,kEAAkE;AACzF,QAAQ,IAAI,WAAU,kEAAkE;AACxF,QAAQ,IAAI,SAAQ,kEAAkE"}
|
|
1
|
+
{"version":3,"file":"fingerprint.generated.js","names":[],"sources":["../../../lib/modules/manager/fingerprint.generated.ts"],"sourcesContent":["export const hashMap = new Map<string, string>();\n\nhashMap.set('ansible','a52394a36ac5517f7330473c31d93aa05b2ce607c5e951b48f25a4693cd20a81');\nhashMap.set('ansible-galaxy','8e11293c8f61b4cbae77a3b1634a47213031c59df2c9833d89db65bf4e6edc64');\nhashMap.set('ant','2df5943cf0ed19a21b94df13729dbb925655548130caf37e3e22bebaed518e17');\nhashMap.set('apm','559aca1db5b117b162962fe817db5550f1b17793b02b45982394ea2458e421f7');\nhashMap.set('argocd','cff9cd22257bc460ae4b9936570bf0ed5585f280a55d26629deaeeb0bfee8eb5');\nhashMap.set('asdf','430eb99b58171700c8a59c78b9e648575e9b176b781d90dd10a710f7b69015bb');\nhashMap.set('azure-pipelines','04a13dec4e08ba21004961c718072fde976226d65809fa3c838bf66ba93e5d5a');\nhashMap.set('batect','375d39b432013bedb1330cf40a2199dd822751b28578214f219e7bab98594b8d');\nhashMap.set('batect-wrapper','d999355511ea7f4053325a18b8cfc8d2b586c61e6760c35e557d383a673e3939');\nhashMap.set('bazel','4d4f1d9a6519ba552b316b396db13ff0654a2663d8ed976188899a2d57d306a2');\nhashMap.set('bazel-module','9fbba0339f9f7785d52ab85c5f0f6385003093c063483c13feccba13ae438bef');\nhashMap.set('bazelisk','770f75a746dc6ba90c518788d5987d7df4243ef9eee122d1bb0556a93d6e1b11');\nhashMap.set('bicep','7246e0bfc06e0e28cbb03ac088c5591f648956b086e106aeb251fe5d628329db');\nhashMap.set('bitbucket-pipelines','59c0503494ab1442b127914503c01b97ac17b6742b19c632292d5aa24de115cd');\nhashMap.set('bitrise','478dfd316221fad7c29e177c70d1018d832fb2626b53308a5d0f1f0380e69f42');\nhashMap.set('buildkite','b8b404f53cd5d61c39153fddf93945e621471c4ac6aa9960c881cd868922bb4c');\nhashMap.set('buildpacks','6bef3cb04d66b5cfbb195adb4829bcbccae6408518706744d291bacf0610421f');\nhashMap.set('bun','85f389e291218c49c1c0400ba4c6c9ff7532a6b098e9a37b872fd26569c02fc0');\nhashMap.set('bun-version','df3ae8e4a5de1fa1b4544f3d7fc8117e80adb1e151c46d1ede54a4dbea6521e4');\nhashMap.set('bundler','0554277f0c9edfc12a8ba2aefdb74c890e274dabce1cbdb1383990063ddc510b');\nhashMap.set('cake','9ebd8b481220b30a8860121d26184540a1a2fcc05ef780df9295dea39b386fad');\nhashMap.set('cargo','74ac02207de7b297d66dfed5b77c7fdeffcdcf2eac639798ba434d0571a90384');\nhashMap.set('cdnurl','9a81c8e3c6ad6c788498c99fc1067ffdfcd92a427c3afaf8c0130975d83131f2');\nhashMap.set('circleci','91cbeb33ea20f9838e2c81a1195eb806f0b38fa282bc3679f62552f20575ca85');\nhashMap.set('cloudbuild','f4e40388944652c8a19f8518771ac8d3f3c4ccf81ddef0e68b463aca833cb73c');\nhashMap.set('cocoapods','f832e2beef885bb3fd697ed9bb3e8cd742926bfec37ff41212edd2dbb4edb3ba');\nhashMap.set('composer','bbca094a652544845c147bd801b04ce4aae3719cb27acfb68b2ebac616940538');\nhashMap.set('conan','03cdeeffe4e688fb403766100cc1fc617dd388629f1c769ba54a966db3b23414');\nhashMap.set('copier','a0678cc1eec36301328780966eec215c6e18748ea80c98873c8e13291a684cfa');\nhashMap.set('cpanfile','07813fec3f3c2197056500e9266a0553b9774c02f2c74d5ca2e213188c7c12d3');\nhashMap.set('crossplane','5c26b1201a1a51454ffb94d829e223a76a781569bf79cdb1e47087c30233ec40');\nhashMap.set('crow','eb9a5f9f95041855dded67bcce3dd54724f690995ed6268d272e8a666ff28fd0');\nhashMap.set('deno','41e6a8b7b8bae08f07b3e4b69c8c095db5da984bb23c004cd1ebf755a6317794');\nhashMap.set('deps-edn','06783dbc8b9c7bb84e162d1f75b7db56dfa021cc6f809dfd2314cee8b64af08d');\nhashMap.set('devbox','a40050cc61bd9b5d500ec111abb17bb15d5f82ab5b7699f66f628307ba8382c9');\nhashMap.set('devcontainer','24320ed1cb6191d04cb8b2707214d82c08c682597aed1d84f250aa00ad1632ec');\nhashMap.set('docker-compose','fba87b82cb0f2bfd66526631fbe928b8153e7ca701a5790d02b944df17417bb9');\nhashMap.set('dockerfile','b5faeb8f31d238e0d05a4aeebf9a837273687908ab8078b34e738bb0e369c80c');\nhashMap.set('droneci','661d2a2d7295af8dd7a1234c7090c42a89306bd574c3adf1fc67782efaad3998');\nhashMap.set('fleet','ffa222820f72c4eb4cdc4c229ae8c50433bee96f3b974f0633d5a7d1f6427c97');\nhashMap.set('flux','f881de9cb1b09788f78a3de7c7bbfd8407f88a4af49a39b99f4f91634584249f');\nhashMap.set('fvm','9b161df0f14bc6e536368952adf373e343630097121a913cea60ee284027fb90');\nhashMap.set('gemspec','3e467cfce562a0d7aef8f35083aceb9e41f9dce83dc0d4010422aee8dbc2a9d2');\nhashMap.set('git-submodules','064fa55369f11feec61b699cb122df6ea81f8e0c09ea9f7dbb96796c87be6950');\nhashMap.set('github-actions','a287f0081e4b18c68209b0e90762496839088522caf662aaf064b0fb945e139c');\nhashMap.set('gitlabci','a5e1e66ef461e1c1e71062f85f35a212417e23627f4b002810f9a98295d6e672');\nhashMap.set('gitlabci-include','8860a15ab516fde00694f9bd9bf56fce4addafe5a55b5ddb9a4ec477d301d351');\nhashMap.set('glasskube','93e7b9000a17efa15a1abaaf320b5af9169b1ecd828fc0c881d98570ef9d9e30');\nhashMap.set('gleam','5e9b9f5f914afe5ed7b526c06c65111e3716d2dea9b0cbe7907bbc96db1064a3');\nhashMap.set('gomod','8b24033ac7fb1ef08c5fd4469854bef33064007b4aed6519ad09bd0d050048a2');\nhashMap.set('gradle','14ffeecba62452d47d3796e68753da745de2614b6e5ecc346da4f0067ed4bc6e');\nhashMap.set('gradle-wrapper','73ba30c34955fab7737454b5cff9aca6d1b5607d53c17c9e13d8ad96f6eaae87');\nhashMap.set('haskell-cabal','f158b7725e3143dfd2950e3de0bbccc2a61cd7eba87f7a54c5057e01252348e2');\nhashMap.set('helm-requirements','22f61344565f87ca3512c0ba8fac32627fde8ee919b7badae07b2116e285f049');\nhashMap.set('helm-values','0aa79bb0257d0d72e54dfd2653e59bfef63b97e46c035b7443593bdf6e6382aa');\nhashMap.set('helmfile','ab63e5bc2bb381939a6b75911947e3fc79d31827423ded07f61ea1c98d95a542');\nhashMap.set('helmsman','951deeb3355da751ef39c9e932b26ea749450e32e75759e4b5fc29359e100b37');\nhashMap.set('helmv3','927798e082caf46a0da703389ba07e9e61fa73ef571ab551301b8fc6b06957d1');\nhashMap.set('hermit','abf066a64be5e5112e4da68896cf14583691e817d8bf2fc5ec65aebcc0fde53b');\nhashMap.set('homeassistant-manifest','05043c6db870cffbb6f8f3e351c025e3de227eaae0b24134b796aec46f84b65f');\nhashMap.set('homebrew','dffe954a4e18c2dc4bfdaa12222fe8ddc3395869afd5afa603fc2b6264747984');\nhashMap.set('html','81fa6c2bf2b868596584a48b949645207a2aa3081951ed99183ee50b70b77d5f');\nhashMap.set('jenkins','7fda0e7e0f3d5e18088ccb3594f727f4cfc48b064706bdaaf1a0a075b6a2cff5');\nhashMap.set('jsonnet-bundler','4cedeb0394e5c38361d1868ff45b4f34747ab8c492378b6e63dcaf1f4f3c024d');\nhashMap.set('julia','1e8237ab435ea7acc9b8f3402385cd0a74f6c8f256d380b1ca4e8785cce6de8e');\nhashMap.set('kotlin-script','95ebc844c040ca047321b207d525220e29774a2a1fe06f9639e8353c66908564');\nhashMap.set('kubernetes','321e7d77fb3600dd4c00a86eaa1294927e7f92300b74fa2977d813dcaa3bb4de');\nhashMap.set('kustomize','11b17044d29321b3b0ad8cee40ba00cd3297b9e94648556211043f1e8635c8e7');\nhashMap.set('leiningen','c8397e376f1717c2f771ae9ea3ba6b720d2422b133cf937e762c44e42be146a2');\nhashMap.set('maven','c110b99291c2a5bc82cf7a69330275e9bbd7dc8ba3e9e987611dfcffbe002d8d');\nhashMap.set('maven-wrapper','f9df7bfca0f8ffc2eff230aec09a53c8ae3e4012ac499a38622b31df203f047a');\nhashMap.set('meteor','4636a47ba4dcfff19fe662572ef7a40d17146be3c966e00ef437e1fc8de92776');\nhashMap.set('mint','248fe4f1ea5c985921c286785792c97e06fc41f402b2d45df82f6aecd17f710e');\nhashMap.set('mise','432f3cd80b9fd3f76b2af73db5e96508edda102a0d7eb3265af232f07b8e8f21');\nhashMap.set('mix','0f79163dc2a1c896599d152be635c23beaf16812ae3d8fbfffec98c7bd0de872');\nhashMap.set('nix','422242f1714be6972fc7006c37f4a497dbbd44ba9c3f68f7b73e7dd3d81fd74d');\nhashMap.set('nodenv','ac652c28481b001f7471f4183eac07b45d98ecbe83efc275830b0a1b2e0459b8');\nhashMap.set('npm','6ed1b8f3af1300dd1f30130be40e656d54c7e6deefd49d3a886d3d1329855248');\nhashMap.set('nuget','fb02247c67a198ffe414a44d23c7894bd114dcc53803334f82e39479e7b27f6f');\nhashMap.set('nvm','3eb77c7b0acf6d64753de78fad2499b352719853aa6872878c40675d14152322');\nhashMap.set('ocb','032b216684c14b0954e0bb019513a2aca3faaee5748587acb668d377d7c891ca');\nhashMap.set('osgi','d6567a733ef3983112b46fdccd7ceebfcd48411104e0c6b6e714d4310db48024');\nhashMap.set('paket','0cf8ff9b040ecf28f29b23bbe2ab2544ab3c94822bc1fb53ee4df7b74f000dea');\nhashMap.set('pep621','6d6ef40bbc15aaab78a92efd3f7a7658958423385aaeb957f5174c0510e350b8');\nhashMap.set('pep723','77022a0eae6a3cbb74a1e6d596db1276e379768e40448192b3fa81edd14ca73f');\nhashMap.set('pip-compile','a98dc76a002e1dc21662237f009ff8fea36236bb4e24cb82ee30c6a78f57271f');\nhashMap.set('pip_requirements','bf3a407f72abf711230247bef94ba5dc84c08a35107b0f017912fad66afa716a');\nhashMap.set('pip_setup','df18fba2bdcf48f3ca12a8f7e5cd28df31e2368d5528127277038ef4206eca79');\nhashMap.set('pipenv','9b8ac4f9432f2789f60847c80582966d5ed4f735d2f678c82416d0eb9548b4fa');\nhashMap.set('pixi','e31c397982ffa34222b061f23f3b3683f42523dd5dca45ecce2448b0ebc55ea2');\nhashMap.set('poetry','ee819d86b635173fe85aa2ae98396385999b3b4c182743e07cb3442108c74c8f');\nhashMap.set('pre-commit','760f2c291ae084db889f722390798a0e2d431ccdc3bc676e73b14901ebea19ac');\nhashMap.set('proto','412053d4550026b4ace490b46e970915b87ec1abf0b0a0c6c8c58ccf1fc16843');\nhashMap.set('pub','8e7c65dfd1999de4f7c44392e949a4d8f4701eb86df59d550e4657feb06b1872');\nhashMap.set('puppet','ba58ab689e44acc8f61c3569ab8b40fde01b8a9d3aad712708e2a419e57d8b45');\nhashMap.set('pyenv','9ede8becc97774f9040b40f4472d3e933534b596e04c360bfe0f3c6f95f25182');\nhashMap.set('quadlet','40927b98dd2bac45dba60e66b5fd0e6b84b61d02db8be536fda7b14546a4feb7');\nhashMap.set('renovate-config','890cabf707d01b58394e0bec05e3a29b73de8f0b43fcbe8a42cd26e328608d70');\nhashMap.set('ruby-version','2db2140d9eee8c555e729a4de0396fa2d78846d3149890ee12fa515bd654be97');\nhashMap.set('runtime-version','b582b168c0cc595e39010feb10f4b97a82683eb269e9598216fbb11cc186e160');\nhashMap.set('rust-toolchain','f30a8688f7cc19a6233d6efee51e942f32030d77a12c5d3201c67e3686de4936');\nhashMap.set('sbt','e1eb5c7f0171a9bb1b6bd4a36a91039a31b6c84e0983d91d930be31a69506d9e');\nhashMap.set('scalafmt','9d36159b56835e96498af026a1fb0543200db0581681ef95ec54988f411e180f');\nhashMap.set('setup-cfg','4a3a7c812d34739c07685691e7e64c7d3127f9d7d4aff99dc45a25df97ed9745');\nhashMap.set('smithy','9641b91d065ffb63be0dd888139a0402dba41e550f8b44c592db9daf52109100');\nhashMap.set('sveltos','60dd75bb53ace31217211100d622fdb65068c6162758b6ae7103a6ce8bdc9f90');\nhashMap.set('swift','cdf063debdbf36888523ff8cec6d2d1b0ec6f49b37b2fbcd80b0d4f6a31114e1');\nhashMap.set('tekton','33948f5bdf7553909fa63744adb26da97ddf366e9499bccab1250879570267c9');\nhashMap.set('terraform','6788a8569ba9c50c763ffa2bed952a4314ae8e696c29f93d3eb7c4a12d99ce20');\nhashMap.set('terraform-version','ec8f786b9731d47f2c2fe0307caf64d7ddd83046fe7ff1f7d8423239f8b0f2aa');\nhashMap.set('terragrunt','300f8fb3c09667654412d2f5dd8ab4882e0f5d1d7a8bc39794993d2e7e58d1b7');\nhashMap.set('terragrunt-version','eea6087b33717d22ede2fc68c2f64df8390b75abe82110ed831a180648feb51d');\nhashMap.set('tflint-plugin','f423bfa2b42a2bfc0e38a33ebd4f9d452473e7ed4e7ad6384a99eb9a35d97479');\nhashMap.set('travis','f3e2f38e699c390b00ff481be5e91dceaa81609e93caf9a4214933de759c84fc');\nhashMap.set('typst','d080a79fbd961c6e21fcc505d544b7e0ff2126142acb1dcabdf6abbcd9339248');\nhashMap.set('unity3d','f13e25e115e3443f4e16cf31578acffa78fb1a5e23339680a92d8d6de6052920');\nhashMap.set('velaci','fda00ddb7cc23e9a37e0a8a253151df0a6930b4276d3e4f78cc54b9ac09af7de');\nhashMap.set('vendir','30774cd456c443be2cd236fd5b8cd1cb821f1437c6309842e34960832df3557f');\nhashMap.set('woodpecker','6110d3bec33aaeb3511d4bbfa896cec3c8e02fb04a6cff50c9ba81061c851045');\nhashMap.set('xcodegen','dad511d88a9ce1dbdde8b9731f3da7f2bdaa4ca8a083294ee58d56da62ab1683');\nhashMap.set('jsonata','416bc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,IAAI,YAAW,kEAAkE;AACzF,QAAQ,IAAI,aAAY,kEAAkE;AAC1F,QAAQ,IAAI,UAAS,kEAAkE;AACvF,QAAQ,IAAI,WAAU,kEAAkE;AACxF,QAAQ,IAAI,SAAQ,kEAAkE;AACtF,QAAQ,IAAI,UAAS,kEAAkE;AACvF,QAAQ,IAAI,aAAY,kEAAkE;AAC1F,QAAQ,IAAI,qBAAoB,kEAAkE;AAClG,QAAQ,IAAI,cAAa,kEAAkE;AAC3F,QAAQ,IAAI,sBAAqB,kEAAkE;AACnG,QAAQ,IAAI,iBAAgB,kEAAkE;AAC9F,QAAQ,IAAI,UAAS,kEAAkE;AACvF,QAAQ,IAAI,SAAQ,kEAAkE;AACtF,QAAQ,IAAI,WAAU,kEAAkE;AACxF,QAAQ,IAAI,UAAS,kEAAkE;AACvF,QAAQ,IAAI,UAAS,kEAAkE;AACvF,QAAQ,IAAI,cAAa,kEAAkE;AAC3F,QAAQ,IAAI,YAAW,kEAAkE;AACzF,QAAQ,IAAI,WAAU,kEAAkE;AACxF,QAAQ,IAAI,SAAQ,kEAAkE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { runBundlerLock } from "../bundler/lock.js";
|
|
2
|
+
import { findGemspecLockFile } from "./lockfile.js";
|
|
3
|
+
// lib/modules/manager/gemspec/artifacts.ts
|
|
4
|
+
async function updateArtifacts(updateArtifact) {
|
|
5
|
+
const { packageFileName, newPackageFileContent } = updateArtifact;
|
|
6
|
+
const lockFile = await findGemspecLockFile(packageFileName, newPackageFileContent);
|
|
7
|
+
if (!lockFile) return null;
|
|
8
|
+
return runBundlerLock(updateArtifact, lockFile.lockFile);
|
|
9
|
+
}
|
|
10
|
+
export { updateArtifacts };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=artifacts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts.js","names":[],"sources":["../../../../lib/modules/manager/gemspec/artifacts.ts"],"sourcesContent":["import { runBundlerLock } from '../bundler/lock.ts';\nimport type { UpdateArtifact, UpdateArtifactsResult } from '../types.ts';\nimport { findGemspecLockFile } from './lockfile.ts';\n\nexport async function updateArtifacts(\n updateArtifact: UpdateArtifact,\n): Promise<UpdateArtifactsResult[] | null> {\n const { packageFileName, newPackageFileContent } = updateArtifact;\n const lockFile = await findGemspecLockFile(\n packageFileName,\n newPackageFileContent,\n );\n if (!lockFile) {\n return null;\n }\n\n return runBundlerLock(updateArtifact, lockFile.lockFile);\n}\n"],"mappings":";;;AAIA,eAAsB,gBACpB,gBACyC;CACzC,MAAM,EAAE,iBAAiB,0BAA0B;CACnD,MAAM,WAAW,MAAM,oBACrB,iBACA,qBACF;CACA,IAAI,CAAC,UACH,OAAO;CAGT,OAAO,eAAe,gBAAgB,SAAS,QAAQ;AACzD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// lib/modules/manager/gemspec/dep-types.ts
|
|
2
|
+
const knownDepTypes = [{
|
|
3
|
+
depType: "runtime",
|
|
4
|
+
description: "Dependencies required at runtime"
|
|
5
|
+
}, {
|
|
6
|
+
depType: "development",
|
|
7
|
+
description: "Dependencies required during development"
|
|
8
|
+
}];
|
|
9
|
+
export { knownDepTypes };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=dep-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dep-types.js","names":[],"sources":["../../../../lib/modules/manager/gemspec/dep-types.ts"],"sourcesContent":["import type { DepTypeMetadata } from '../types.ts';\n\nexport const knownDepTypes = [\n {\n depType: 'runtime',\n description: 'Dependencies required at runtime',\n },\n {\n depType: 'development',\n description: 'Dependencies required during development',\n },\n] as const satisfies readonly DepTypeMetadata[];\n"],"mappings":";AAEA,MAAa,gBAAgB,CAC3B;CACE,SAAS;CACT,aAAa;AACf,GACA;CACE,SAAS;CACT,aAAa;AACf,CACF"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { logger } from "../../../logger/index.js";
|
|
2
|
+
import { newlineRegex, regEx } from "../../../util/regex.js";
|
|
3
|
+
import { RubygemsDatasource } from "../../datasource/rubygems/index.js";
|
|
4
|
+
import { extractLockFileEntries } from "../bundler/locked-version.js";
|
|
5
|
+
import { findGemspecLockFile } from "./lockfile.js";
|
|
6
|
+
// lib/modules/manager/gemspec/extract.ts
|
|
7
|
+
const declarationHeadRegex = regEx(/^\s*[\w:.]+\.add_(?:runtime_|development_)?dependency\b/);
|
|
8
|
+
const methodRegex = regEx("^\\s*[\\w:.]+\\.add_(?<type>runtime_|development_)?dependency\\s*\\(?\\s*['\"](?<depName>[^'\"]+)['\"](?<rest>[\\s\\S]*)$");
|
|
9
|
+
const percentNameRegex = regEx(/^\s*[\w:.]+\.add_(?<type>runtime_|development_)?dependency\s*\(?\s*%[qQ]?[<({[](?<depName>[\w.-]+)[>)}\]]/);
|
|
10
|
+
const continuationRegex = regEx(/[,([]\s*$/);
|
|
11
|
+
const constraintsRegex = regEx(/^(?:\s*,\s*['"][^'"]+['"])+$/);
|
|
12
|
+
const arrayConstraintsRegex = regEx(/^\s*,\s*\[(?<parts>[^\]]*)\]$/);
|
|
13
|
+
function stripComment(line) {
|
|
14
|
+
return line.replace(regEx(/#.*$/), "");
|
|
15
|
+
}
|
|
16
|
+
function stripTail(rest) {
|
|
17
|
+
return stripComment(rest).replace(regEx(/,?\s*\)\s*$/), "").trimEnd();
|
|
18
|
+
}
|
|
19
|
+
function bracketDepth(code) {
|
|
20
|
+
let depth = 0;
|
|
21
|
+
for (const char of code) if (char === "(" || char === "[") depth += 1;
|
|
22
|
+
else if (char === ")" || char === "]") depth -= 1;
|
|
23
|
+
return depth;
|
|
24
|
+
}
|
|
25
|
+
function continuesOnNextLine(code, depth) {
|
|
26
|
+
return depth > 0 || continuationRegex.test(code);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns each dependency declaration, joining the lines of one that wraps.
|
|
30
|
+
* A declaration continues while a bracket is open or its line ends in `(`, `[` or `,`.
|
|
31
|
+
*/
|
|
32
|
+
function splitDeclarations(content) {
|
|
33
|
+
const lineEnding = content.includes("\r\n") ? "\r\n" : "\n";
|
|
34
|
+
const lines = content.split(newlineRegex);
|
|
35
|
+
const declarations = [];
|
|
36
|
+
for (let i = 0; i < lines.length; i += 1) {
|
|
37
|
+
if (!declarationHeadRegex.test(lines[i])) continue;
|
|
38
|
+
const declaration = [lines[i]];
|
|
39
|
+
let code = stripComment(lines[i]);
|
|
40
|
+
let depth = bracketDepth(code);
|
|
41
|
+
while (continuesOnNextLine(code, depth) && i + 1 < lines.length && !declarationHeadRegex.test(lines[i + 1])) {
|
|
42
|
+
i += 1;
|
|
43
|
+
declaration.push(lines[i]);
|
|
44
|
+
code = stripComment(lines[i]);
|
|
45
|
+
depth += bracketDepth(code);
|
|
46
|
+
}
|
|
47
|
+
declarations.push(declaration.join(lineEnding));
|
|
48
|
+
}
|
|
49
|
+
return declarations;
|
|
50
|
+
}
|
|
51
|
+
/** Returns the quoted constraint list after the gem name, without the leading comma or array brackets. */
|
|
52
|
+
function extractConstraints(rest) {
|
|
53
|
+
const arrayParts = arrayConstraintsRegex.exec(rest)?.groups?.parts;
|
|
54
|
+
const constraints = arrayParts === void 0 ? rest : `, ${arrayParts.trim().replace(regEx(/,$/), "")}`;
|
|
55
|
+
if (!constraintsRegex.test(constraints)) return null;
|
|
56
|
+
return constraints.replace(regEx(/^\s*,\s*/), "").trimEnd();
|
|
57
|
+
}
|
|
58
|
+
function toDepType(type) {
|
|
59
|
+
return type === "development_" ? "development" : "runtime";
|
|
60
|
+
}
|
|
61
|
+
function parseDeclaration(declaration) {
|
|
62
|
+
const literal = methodRegex.exec(declaration)?.groups;
|
|
63
|
+
if (literal) {
|
|
64
|
+
const { depName } = literal;
|
|
65
|
+
const dep = {
|
|
66
|
+
depName,
|
|
67
|
+
depType: toDepType(literal.type),
|
|
68
|
+
datasource: RubygemsDatasource.id
|
|
69
|
+
};
|
|
70
|
+
const tail = stripTail(literal.rest);
|
|
71
|
+
const constraints = extractConstraints(tail);
|
|
72
|
+
if (depName.includes("#{")) dep.skipReason = "contains-variable";
|
|
73
|
+
else if (tail.includes(".freeze")) {
|
|
74
|
+
logger.debug(`gemspec: frozen string literals are not supported (${depName})`);
|
|
75
|
+
dep.skipReason = "unsupported";
|
|
76
|
+
} else if (constraints) dep.currentValue = constraints;
|
|
77
|
+
else dep.skipReason = "unspecified-version";
|
|
78
|
+
return dep;
|
|
79
|
+
}
|
|
80
|
+
const percent = percentNameRegex.exec(declaration)?.groups;
|
|
81
|
+
if (percent) {
|
|
82
|
+
logger.debug(`gemspec: percent-literal gem names are not supported (${percent.depName})`);
|
|
83
|
+
return {
|
|
84
|
+
depName: percent.depName,
|
|
85
|
+
depType: toDepType(percent.type),
|
|
86
|
+
datasource: RubygemsDatasource.id,
|
|
87
|
+
skipReason: "unsupported"
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
logger.debug(`gemspec: cannot read the gem name of: ${declaration.trim()}`);
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
function extractDeps(content) {
|
|
94
|
+
const deps = [];
|
|
95
|
+
for (const declaration of splitDeclarations(content)) {
|
|
96
|
+
const dep = parseDeclaration(declaration);
|
|
97
|
+
if (dep) deps.push(dep);
|
|
98
|
+
}
|
|
99
|
+
return deps;
|
|
100
|
+
}
|
|
101
|
+
async function extractPackageFile(content, packageFile) {
|
|
102
|
+
const deps = extractDeps(content);
|
|
103
|
+
if (!deps.length) return null;
|
|
104
|
+
const res = { deps };
|
|
105
|
+
if (!packageFile) return res;
|
|
106
|
+
const lockFile = await findGemspecLockFile(packageFile, content);
|
|
107
|
+
if (!lockFile) return res;
|
|
108
|
+
res.lockFiles = [lockFile.lockFile];
|
|
109
|
+
const lockedVersions = extractLockFileEntries(lockFile.lockFileContent);
|
|
110
|
+
for (const dep of deps) {
|
|
111
|
+
const lockedVersion = lockedVersions.get(dep.depName);
|
|
112
|
+
if (lockedVersion) dep.lockedVersion = lockedVersion;
|
|
113
|
+
}
|
|
114
|
+
return res;
|
|
115
|
+
}
|
|
116
|
+
export { extractPackageFile };
|
|
117
|
+
|
|
118
|
+
//# sourceMappingURL=extract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract.js","names":[],"sources":["../../../../lib/modules/manager/gemspec/extract.ts"],"sourcesContent":["import { logger } from '../../../logger/index.ts';\nimport { newlineRegex, regEx } from '../../../util/regex.ts';\nimport { RubygemsDatasource } from '../../datasource/rubygems/index.ts';\nimport { extractLockFileEntries } from '../bundler/locked-version.ts';\nimport type { PackageDependency, PackageFileContent } from '../types.ts';\nimport { findGemspecLockFile } from './lockfile.ts';\n\nconst declarationHeadRegex = regEx(\n /^\\s*[\\w:.]+\\.add_(?:runtime_|development_)?dependency\\b/,\n);\n\nconst methodRegex = regEx(\n `^\\\\s*[\\\\w:.]+\\\\.add_(?<type>runtime_|development_)?dependency\\\\s*\\\\(?\\\\s*` +\n `['\"](?<depName>[^'\"]+)['\"]` +\n `(?<rest>[\\\\s\\\\S]*)$`,\n);\n\n// A name written as a percent literal, e.g. `%q<rack>.freeze` as generated by `gem build`\nconst percentNameRegex = regEx(\n /^\\s*[\\w:.]+\\.add_(?<type>runtime_|development_)?dependency\\s*\\(?\\s*%[qQ]?[<({[](?<depName>[\\w.-]+)[>)}\\]]/,\n);\n\n// A line that ends inside an argument list, e.g. after `(`, `[` or `,`\nconst continuationRegex = regEx(/[,([]\\s*$/);\n\n// One or more comma-separated quoted constraint strings, e.g. `, \"~> 4.2\", \"!= 4.2.5\"`\nconst constraintsRegex = regEx(/^(?:\\s*,\\s*['\"][^'\"]+['\"])+$/);\n\n// The same strings wrapped in an array, e.g. `, [\"~> 4.2\", \"!= 4.2.5\"]`\nconst arrayConstraintsRegex = regEx(/^\\s*,\\s*\\[(?<parts>[^\\]]*)\\]$/);\n\nfunction stripComment(line: string): string {\n return line.replace(regEx(/#.*$/), '');\n}\n\nfunction stripTail(rest: string): string {\n return stripComment(rest)\n .replace(regEx(/,?\\s*\\)\\s*$/), '') // closing paren of add_dependency(...)\n .trimEnd();\n}\n\nfunction bracketDepth(code: string): number {\n let depth = 0;\n for (const char of code) {\n if (char === '(' || char === '[') {\n depth += 1;\n } else if (char === ')' || char === ']') {\n depth -= 1;\n }\n }\n return depth;\n}\n\nfunction continuesOnNextLine(code: string, depth: number): boolean {\n return depth > 0 || continuationRegex.test(code);\n}\n\n/**\n * Returns each dependency declaration, joining the lines of one that wraps.\n * A declaration continues while a bracket is open or its line ends in `(`, `[` or `,`.\n */\nfunction splitDeclarations(content: string): string[] {\n const lineEnding = content.includes('\\r\\n') ? '\\r\\n' : '\\n';\n const lines = content.split(newlineRegex);\n const declarations: string[] = [];\n for (let i = 0; i < lines.length; i += 1) {\n if (!declarationHeadRegex.test(lines[i])) {\n continue;\n }\n\n const declaration = [lines[i]];\n let code = stripComment(lines[i]);\n let depth = bracketDepth(code);\n while (\n continuesOnNextLine(code, depth) &&\n i + 1 < lines.length &&\n !declarationHeadRegex.test(lines[i + 1])\n ) {\n i += 1;\n declaration.push(lines[i]);\n code = stripComment(lines[i]);\n depth += bracketDepth(code);\n }\n declarations.push(declaration.join(lineEnding));\n }\n return declarations;\n}\n\n/** Returns the quoted constraint list after the gem name, without the leading comma or array brackets. */\nfunction extractConstraints(rest: string): string | null {\n const arrayParts = arrayConstraintsRegex.exec(rest)?.groups?.parts;\n const constraints =\n arrayParts === undefined\n ? rest\n : `, ${arrayParts.trim().replace(regEx(/,$/), '')}`;\n if (!constraintsRegex.test(constraints)) {\n return null;\n }\n // keep the surrounding quotes so ruby versioning can re-quote each part\n return constraints.replace(regEx(/^\\s*,\\s*/), '').trimEnd();\n}\n\nfunction toDepType(type: string | undefined): string {\n return type === 'development_' ? 'development' : 'runtime';\n}\n\nfunction parseDeclaration(declaration: string): PackageDependency | null {\n const literal = methodRegex.exec(declaration)?.groups;\n if (literal) {\n const { depName } = literal;\n const dep: PackageDependency = {\n depName,\n depType: toDepType(literal.type),\n datasource: RubygemsDatasource.id,\n };\n const tail = stripTail(literal.rest);\n const constraints = extractConstraints(tail);\n if (depName.includes('#{')) {\n dep.skipReason = 'contains-variable';\n } else if (tail.includes('.freeze')) {\n logger.debug(\n `gemspec: frozen string literals are not supported (${depName})`,\n );\n dep.skipReason = 'unsupported';\n } else if (constraints) {\n dep.currentValue = constraints;\n } else {\n dep.skipReason = 'unspecified-version';\n }\n return dep;\n }\n\n const percent = percentNameRegex.exec(declaration)?.groups;\n if (percent) {\n logger.debug(\n `gemspec: percent-literal gem names are not supported (${percent.depName})`,\n );\n return {\n depName: percent.depName,\n depType: toDepType(percent.type),\n datasource: RubygemsDatasource.id,\n skipReason: 'unsupported',\n };\n }\n\n logger.debug(`gemspec: cannot read the gem name of: ${declaration.trim()}`);\n return null;\n}\n\nfunction extractDeps(content: string): PackageDependency[] {\n const deps: PackageDependency[] = [];\n for (const declaration of splitDeclarations(content)) {\n const dep = parseDeclaration(declaration);\n if (dep) {\n deps.push(dep);\n }\n }\n return deps;\n}\n\nexport async function extractPackageFile(\n content: string,\n packageFile?: string,\n): Promise<PackageFileContent | null> {\n const deps = extractDeps(content);\n if (!deps.length) {\n return null;\n }\n\n const res: PackageFileContent = { deps };\n if (!packageFile) {\n return res;\n }\n\n const lockFile = await findGemspecLockFile(packageFile, content);\n if (!lockFile) {\n return res;\n }\n\n res.lockFiles = [lockFile.lockFile];\n const lockedVersions = extractLockFileEntries(lockFile.lockFileContent);\n for (const dep of deps) {\n const lockedVersion = lockedVersions.get(dep.depName!);\n if (lockedVersion) {\n dep.lockedVersion = lockedVersion;\n }\n }\n return res;\n}\n"],"mappings":";;;;;;AAOA,MAAM,uBAAuB,MAC3B,yDACF;AAEA,MAAM,cAAc,MAClB,2HAGF;AAGA,MAAM,mBAAmB,MACvB,2GACF;AAGA,MAAM,oBAAoB,MAAM,WAAW;AAG3C,MAAM,mBAAmB,MAAM,8BAA8B;AAG7D,MAAM,wBAAwB,MAAM,+BAA+B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MAAM,OAAO,YAAY,OAAO;CAChC,IAAI,CAAC,KAAK,QACR,OAAO;CAGT,MAAM,MAA0B,EAAE,KAAK;CACvC,IAAI,CAAC,aACH,OAAO;CAGT,MAAM,WAAW,MAAM,oBAAoB,aAAa,OAAO;CAC/D,IAAI,CAAC,UACH,OAAO;CAGT,IAAI,YAAY,CAAC,SAAS,QAAQ;CAClC,MAAM,iBAAiB,uBAAuB,SAAS,eAAe;CACtE,KAAK,MAAM,OAAO,MAAM;EACtB,MAAM,gBAAgB,eAAe,IAAI,IAAI,OAAQ;EACrD,IAAI,eACF,IAAI,gBAAgB;CAExB;CACA,OAAO;AACT"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { RubygemsDatasource } from "../../datasource/rubygems/index.js";
|
|
3
|
+
import { id } from "../../versioning/ruby/index.js";
|
|
4
|
+
import { updateLockedDependency } from "../bundler/update-locked.js";
|
|
5
|
+
import { updateArtifacts } from "./artifacts.js";
|
|
6
|
+
import { knownDepTypes } from "./dep-types.js";
|
|
7
|
+
import { extractPackageFile } from "./extract.js";
|
|
8
|
+
// lib/modules/manager/gemspec/index.ts
|
|
9
|
+
var gemspec_exports = /* @__PURE__ */ __exportAll({
|
|
10
|
+
categories: () => categories,
|
|
11
|
+
defaultConfig: () => defaultConfig,
|
|
12
|
+
displayName: () => displayName,
|
|
13
|
+
extractPackageFile: () => extractPackageFile,
|
|
14
|
+
knownDepTypes: () => knownDepTypes,
|
|
15
|
+
supportedDatasources: () => supportedDatasources,
|
|
16
|
+
updateArtifacts: () => updateArtifacts,
|
|
17
|
+
updateLockedDependency: () => updateLockedDependency,
|
|
18
|
+
url: () => url
|
|
19
|
+
});
|
|
20
|
+
const displayName = "gemspec";
|
|
21
|
+
const url = "https://guides.rubygems.org/specification-reference/";
|
|
22
|
+
const categories = ["ruby"];
|
|
23
|
+
const defaultConfig = {
|
|
24
|
+
managerFilePatterns: ["/\\.gemspec$/"],
|
|
25
|
+
versioning: id
|
|
26
|
+
};
|
|
27
|
+
const supportedDatasources = [RubygemsDatasource.id];
|
|
28
|
+
export { categories, defaultConfig, displayName, extractPackageFile, gemspec_exports, knownDepTypes, supportedDatasources, updateArtifacts, updateLockedDependency, url };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["rubyVersioning.id"],"sources":["../../../../lib/modules/manager/gemspec/index.ts"],"sourcesContent":["import type { Category } from '../../../constants/index.ts';\nimport { RubygemsDatasource } from '../../datasource/rubygems/index.ts';\nimport * as rubyVersioning from '../../versioning/ruby/index.ts';\n\nexport { updateLockedDependency } from '../bundler/update-locked.ts';\nexport { updateArtifacts } from './artifacts.ts';\nexport { knownDepTypes } from './dep-types.ts';\nexport { extractPackageFile } from './extract.ts';\n\nexport const displayName = 'gemspec';\nexport const url = 'https://guides.rubygems.org/specification-reference/';\nexport const categories: Category[] = ['ruby'];\n\nexport const defaultConfig = {\n managerFilePatterns: ['/\\\\.gemspec$/'],\n versioning: rubyVersioning.id,\n};\n\nexport const supportedDatasources = [RubygemsDatasource.id];\n"],"mappings":";;;;;;;;;;;;;;;;;;;AASA,MAAa,cAAc;AAC3B,MAAa,MAAM;AACnB,MAAa,aAAyB,CAAC,MAAM;AAE7C,MAAa,gBAAgB;CAC3B,qBAAqB,CAAC,eAAe;CACrC,YAAYA;AACd;AAEA,MAAa,uBAAuB,CAAC,mBAAmB,EAAE"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { logger } from "../../../logger/index.js";
|
|
2
|
+
import { getSiblingFileName, readLocalFile } from "../../../util/fs/index.js";
|
|
3
|
+
import { newlineRegex, regEx } from "../../../util/regex.js";
|
|
4
|
+
import upath from "upath";
|
|
5
|
+
// lib/modules/manager/gemspec/lockfile.ts
|
|
6
|
+
const specNameRegex = regEx(/^[ \t]*[\w:.]+\.name\s*=\s*['"](?<name>[^'"]+)['"]/m);
|
|
7
|
+
const pathRemoteRegex = regEx(/^ {2}remote: (?<remote>.+)$/);
|
|
8
|
+
const pathSpecRegex = regEx(/^ {4}(?<name>\S+) \(/);
|
|
9
|
+
/** Returns the literal `spec.name` of a gemspec, or else its file name. */
|
|
10
|
+
function getGemName(gemspecFile, gemspecContent) {
|
|
11
|
+
return specNameRegex.exec(gemspecContent)?.groups?.name ?? upath.basename(gemspecFile, ".gemspec");
|
|
12
|
+
}
|
|
13
|
+
/** Whether a `PATH` section with `remote: .` lists the gem `gemName`. */
|
|
14
|
+
function locksGemFromOwnDirectory(lockFileContent, gemName) {
|
|
15
|
+
let inPathSection = false;
|
|
16
|
+
let remote;
|
|
17
|
+
for (const line of lockFileContent.split(newlineRegex)) {
|
|
18
|
+
if (!line.startsWith(" ")) {
|
|
19
|
+
inPathSection = line.trim() === "PATH";
|
|
20
|
+
remote = void 0;
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
if (!inPathSection) continue;
|
|
24
|
+
const remoteMatch = pathRemoteRegex.exec(line)?.groups?.remote;
|
|
25
|
+
if (remoteMatch) {
|
|
26
|
+
remote = upath.normalizeTrim(remoteMatch.trim());
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
if (pathSpecRegex.exec(line)?.groups?.name === gemName && remote === ".") return true;
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Returns the sibling `Gemfile.lock` if Bundler resolved this gemspec into it.
|
|
35
|
+
* Bundler records a gemspec loaded from the lock file's own directory in a `PATH` section with `remote: .`.
|
|
36
|
+
*/
|
|
37
|
+
async function findGemspecLockFile(gemspecFile, gemspecContent) {
|
|
38
|
+
const lockFile = getSiblingFileName(gemspecFile, "Gemfile.lock");
|
|
39
|
+
const lockFileContent = await readLocalFile(lockFile, "utf8");
|
|
40
|
+
if (!lockFileContent) {
|
|
41
|
+
logger.debug(`gemspec: no sibling ${lockFile} for ${gemspecFile}`);
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
const gemName = getGemName(gemspecFile, gemspecContent);
|
|
45
|
+
if (!locksGemFromOwnDirectory(lockFileContent, gemName)) {
|
|
46
|
+
logger.debug(`gemspec: ${lockFile} does not lock ${gemName} from its own directory - ignoring it for ${gemspecFile}`);
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
lockFile,
|
|
51
|
+
lockFileContent
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export { findGemspecLockFile };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=lockfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lockfile.js","names":[],"sources":["../../../../lib/modules/manager/gemspec/lockfile.ts"],"sourcesContent":["import upath from 'upath';\nimport { logger } from '../../../logger/index.ts';\nimport { getSiblingFileName, readLocalFile } from '../../../util/fs/index.ts';\nimport { newlineRegex, regEx } from '../../../util/regex.ts';\nimport type { GemspecLockFile } from './types.ts';\n\nconst specNameRegex = regEx(\n /^[ \\t]*[\\w:.]+\\.name\\s*=\\s*['\"](?<name>[^'\"]+)['\"]/m,\n);\nconst pathRemoteRegex = regEx(/^ {2}remote: (?<remote>.+)$/);\nconst pathSpecRegex = regEx(/^ {4}(?<name>\\S+) \\(/);\n\n/** Returns the literal `spec.name` of a gemspec, or else its file name. */\nfunction getGemName(gemspecFile: string, gemspecContent: string): string {\n return (\n specNameRegex.exec(gemspecContent)?.groups?.name ??\n upath.basename(gemspecFile, '.gemspec')\n );\n}\n\n/** Whether a `PATH` section with `remote: .` lists the gem `gemName`. */\nfunction locksGemFromOwnDirectory(\n lockFileContent: string,\n gemName: string,\n): boolean {\n let inPathSection = false;\n let remote: string | undefined;\n for (const line of lockFileContent.split(newlineRegex)) {\n if (!line.startsWith(' ')) {\n inPathSection = line.trim() === 'PATH';\n remote = undefined;\n continue;\n }\n if (!inPathSection) {\n continue;\n }\n\n const remoteMatch = pathRemoteRegex.exec(line)?.groups?.remote;\n if (remoteMatch) {\n remote = upath.normalizeTrim(remoteMatch.trim());\n continue;\n }\n\n const specName = pathSpecRegex.exec(line)?.groups?.name;\n if (specName === gemName && remote === '.') {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Returns the sibling `Gemfile.lock` if Bundler resolved this gemspec into it.\n * Bundler records a gemspec loaded from the lock file's own directory in a `PATH` section with `remote: .`.\n */\nexport async function findGemspecLockFile(\n gemspecFile: string,\n gemspecContent: string,\n): Promise<GemspecLockFile | null> {\n const lockFile = getSiblingFileName(gemspecFile, 'Gemfile.lock');\n const lockFileContent = await readLocalFile(lockFile, 'utf8');\n if (!lockFileContent) {\n logger.debug(`gemspec: no sibling ${lockFile} for ${gemspecFile}`);\n return null;\n }\n\n const gemName = getGemName(gemspecFile, gemspecContent);\n if (!locksGemFromOwnDirectory(lockFileContent, gemName)) {\n logger.debug(\n `gemspec: ${lockFile} does not lock ${gemName} from its own directory - ignoring it for ${gemspecFile}`,\n );\n return null;\n }\n\n return { lockFile, lockFileContent };\n}\n"],"mappings":";;;;;AAMA,MAAM,gBAAgB,MACpB,qDACF;AACA,MAAM,kBAAkB,MAAM,6BAA6B;AAC3D,MAAM,gBAAgB,MAAM,sBAAsB;;AAGlD,SAAS,WAAW,aAAqB,gBAAgC;CACvE,OACE,cAAc,KAAK,cAAc,CAAC,EAAE,QAAQ,QAC5C,MAAM,SAAS,aAAa,UAAU;AAE1C;;AAGA,SAAS,yBACP,iBACA,SACS;CACT,IAAI,gBAAgB;CACpB,IAAI;CACJ,KAAK,MAAM,QAAQ,gBAAgB,MAAM,YAAY,GAAG;EACtD,IAAI,CAAC,KAAK,WAAW,GAAG,GAAG;GACzB,gBAAgB,KAAK,KAAK,MAAM;GAChC,SAAS,KAAA;GACT;EACF;EACA,IAAI,CAAC,eACH;EAGF,MAAM,cAAc,gBAAgB,KAAK,IAAI,CAAC,EAAE,QAAQ;EACxD,IAAI,aAAa;GACf,SAAS,MAAM,cAAc,YAAY,KAAK,CAAC;GAC/C;EACF;EAGA,IADiB,cAAc,KAAK,IAAI,CAAC,EAAE,QAAQ,SAClC,WAAW,WAAW,KACrC,OAAO;CAEX;CACA,OAAO;AACT;;;;;AAMA,eAAsB,oBACpB,aACA,gBACiC;CACjC,MAAM,WAAW,mBAAmB,aAAa,cAAc;CAC/D,MAAM,kBAAkB,MAAM,cAAc,UAAU,MAAM;CAC5D,IAAI,CAAC,iBAAiB;EACpB,OAAO,MAAM,uBAAuB,SAAS,OAAO,aAAa;EACjE,OAAO;CACT;CAEA,MAAM,UAAU,WAAW,aAAa,cAAc;CACtD,IAAI,CAAC,yBAAyB,iBAAiB,OAAO,GAAG;EACvD,OAAO,MACL,YAAY,SAAS,iBAAiB,QAAQ,4CAA4C,aAC5F;EACA,OAAO;CACT;CAEA,OAAO;EAAE;EAAU;CAAgB;AACrC"}
|