Skip to content
Snippets Groups Projects
Commit b7ddd2a1 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor: releaseDate -> releaseTimestamp

parent ab464fe5
No related merge requests found
......@@ -19,7 +19,6 @@ export interface Release {
gitref?: string;
isDeprecated?: boolean;
releaseDate?: string;
releaseTimestamp?: any;
version: string;
}
......
......@@ -37,11 +37,11 @@ export async function getPkgReleases(
if (columns.length) {
const version = columns[0].replace('Ruby ', '');
if (isVersion(version)) {
const releaseDate = columns[1];
const releaseTimestamp = columns[1];
const changelogUrl = columns[2]
.replace('<a href="', 'https://www.ruby-lang.org')
.replace('">more...</a>', '');
res.releases.push({ version, releaseDate, changelogUrl });
res.releases.push({ version, releaseTimestamp, changelogUrl });
}
}
}
......
......@@ -81,13 +81,13 @@ export const getDependency = async ({
({
number: version,
platform: rubyPlatform,
created_at: releaseDate,
created_at: releaseTimestamp,
rubygems_version: rubygemsVersion,
ruby_version: rubyVersion,
}) => ({
version,
rubyPlatform,
releaseDate,
releaseTimestamp,
rubygemsVersion,
rubyVersion,
})
......
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment