0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/modules/manager/ruby-version/extract.ts

14 lines
477 B
TypeScript

import { logger } from '../../../logger';
import { RubyVersionDatasource } from '../../datasource/ruby-version';
import type { PackageDependency, PackageFileContent } from '../types';
export function extractPackageFile(content: string): PackageFileContent {
logger.trace('ruby-version.extractPackageFile()');
const dep: PackageDependency = {
depName: 'ruby',
currentValue: content.trim(),
datasource: RubyVersionDatasource.id,
};
return { deps: [dep] };
}