mirror of https://github.com/renovatebot/renovate
14 lines
477 B
TypeScript
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] };
|
|
}
|