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 branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,6 @@ export interface Release { ...@@ -19,7 +19,6 @@ export interface Release {
gitref?: string; gitref?: string;
isDeprecated?: boolean; isDeprecated?: boolean;
releaseDate?: string;
releaseTimestamp?: any; releaseTimestamp?: any;
version: string; version: string;
} }
......
...@@ -37,11 +37,11 @@ export async function getPkgReleases( ...@@ -37,11 +37,11 @@ export async function getPkgReleases(
if (columns.length) { if (columns.length) {
const version = columns[0].replace('Ruby ', ''); const version = columns[0].replace('Ruby ', '');
if (isVersion(version)) { if (isVersion(version)) {
const releaseDate = columns[1]; const releaseTimestamp = columns[1];
const changelogUrl = columns[2] const changelogUrl = columns[2]
.replace('<a href="', 'https://www.ruby-lang.org') .replace('<a href="', 'https://www.ruby-lang.org')
.replace('">more...</a>', ''); .replace('">more...</a>', '');
res.releases.push({ version, releaseDate, changelogUrl }); res.releases.push({ version, releaseTimestamp, changelogUrl });
} }
} }
} }
......
...@@ -81,13 +81,13 @@ export const getDependency = async ({ ...@@ -81,13 +81,13 @@ export const getDependency = async ({
({ ({
number: version, number: version,
platform: rubyPlatform, platform: rubyPlatform,
created_at: releaseDate, created_at: releaseTimestamp,
rubygems_version: rubygemsVersion, rubygems_version: rubygemsVersion,
ruby_version: rubyVersion, ruby_version: rubyVersion,
}) => ({ }) => ({
version, version,
rubyPlatform, rubyPlatform,
releaseDate, releaseTimestamp,
rubygemsVersion, rubygemsVersion,
rubyVersion, 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