demarches-normaliennes/lib/github/releases.rb

9 lines
211 B
Ruby
Raw Normal View History

class Github::Releases
def self.latest
release = Hashie::Mash.new JSON.parse(Github::API.latest_release)
release.published_at = release.published_at.to_date.strftime('%d/%m/%Y')
release
end
end