Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort versions as dates not as strings #749

Merged
merged 1 commit into from
Apr 3, 2015
Merged

Conversation

mjgiarlo
Copy link
Member

@mjgiarlo mjgiarlo commented Apr 3, 2015

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 92.95% when pulling 1bce0cc on sort_versions_as_dates into ee566ed on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 92.95% when pulling 1bce0cc on sort_versions_as_dates into ee566ed on master.

@cjcolvar
Copy link
Member

cjcolvar commented Apr 3, 2015

👍

@hectorcorrea
Copy link
Member

Looks good to me.

end
versions.sort_by { |version| DateTime.parse(version.created) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens here is one version.created cannot be parsed as a valid date?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💥

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems reasonable to raise an exception if Fedora is giving us a non-date here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in latest.

@hectorcorrea
Copy link
Member

👍 Waiting on Travis....

jcoyne added a commit that referenced this pull request Apr 3, 2015
@jcoyne jcoyne merged commit 2d90a8f into master Apr 3, 2015
@jcoyne jcoyne deleted the sort_versions_as_dates branch April 3, 2015 18:07
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 92.95% when pulling 931c24a on sort_versions_as_dates into ee566ed on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants