2016-02-16 12:01:39 +01:00
|
|
|
class Github::Releases
|
|
|
|
|
|
|
|
def self.latest
|
|
|
|
release = Hashie::Mash.new JSON.parse(Github::API.latest_release)
|
|
|
|
|
2016-06-09 12:23:50 +02:00
|
|
|
return nil if release.nil?
|
|
|
|
|
|
|
|
release.published_at = release.published_at.to_date.strftime('%d/%m/%Y')
|
2016-02-16 12:01:39 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
end
|