Fix error Github recuperation
This commit is contained in:
parent
14142d9433
commit
fdee7154cf
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
||||||
class Github::Releases
|
class Github::Releases
|
||||||
|
|
||||||
def self.latest
|
def self.latest
|
||||||
release = Hashie::Mash.new JSON.parse(Github::API.latest_release)
|
latest_release = Github::API.latest_release
|
||||||
|
return nil if latest_release.nil?
|
||||||
return nil if release.nil?
|
|
||||||
|
|
||||||
|
release = Hashie::Mash.new JSON.parse(latest_release)
|
||||||
release.published_at = release.published_at.to_date.strftime('%d/%m/%Y')
|
release.published_at = release.published_at.to_date.strftime('%d/%m/%Y')
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue