demarches-normaliennes/lib/github/releases.rb
Xavier J 51c145d2ce Update landing page :
- Release scrape on Github
- Add presentation video
- Add demonstration link for gestionnaire and user
2016-02-16 12:01:39 +01:00

9 lines
No EOL
211 B
Ruby

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