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] };
}