fix auto-deprecate task

pull/1232/head
Gabriel Burnworth 2019-06-11 12:42:58 -07:00 committed by GitHub
parent 91cd11a696
commit b54bebcbee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ namespace :api do
end
.select do |pair|
# Grab versions that are > current version and outside of cutoff window
(pair.head > current_version) && (pair.tail < cutoff)
(pair.head >= current_version) && (pair.tail < cutoff)
end
.sort_by { |p| p.tail } # Sort by release date
.last(2) # Grab 2 latest versions (closest to cutoff)