Closed strzibny closed 10 years ago
Checked commit https://github.com/strzibny/polisher/commit/492556810ae28600d6bf40fa8020b873633a200d with rubocop 0.21.0 1 file checked, 0 offenses detected Everything looks good. :+1:
@strzibny Looks great to me.
@movitto Does it make sense to have a test for this to ensure if the JSON response has the highest version number NOT first we don't have regression in the future?
@strzibny +1 looks good
@jrafanie the more tests the merrier
Thanks for the merge. Actually I don't thing that the original approach was incorrect since RubyGems should probably be doing the sorting, but #max
will just fix it both for now and future:).
I submitted the issue upstream[0].
Polisher gets the latest upstream version by calling JSON API, collecting all the versions and than asking for the first one. But the array is NOT sorted. Thereof makes sense to ask for the highest one. This PR should solve the issue.