lib/tasks/changelog_task.rb in fog-1.38.0 vs lib/tasks/changelog_task.rb in fog-1.39.0
- old
+ new
@@ -29,11 +29,10 @@
*Hash* #{sha}
Statistic | Value
------------- | --------:
Collaborators | #{collaborators}
-Downloads | #{downloads}
Forks | #{forks}
Open Issues | #{open_issues}
Watchers | #{watchers}
HEREDOC
end
@@ -107,10 +106,11 @@
'ller', #"Achim Ledermüller" UTF-8 fail?
'Ash Wilson',
'Benson Kalahar',
'Brian Hartsock',
'bryanl',
+ 'Cherdancev Evgeni',
'Chris Luo',
'Chris Roberts',
'Christopher Oliver',
'Colin Hebert',
'Daniel Aragao',
@@ -182,12 +182,12 @@
def last_release_sha
`cat CHANGELOG.md | head -2`.split(' ').last
end
def downloads
- repsonse = Excon.get('https://rubygems.org/api/v1/gems/fog.json')
- data = Fog::JSON.decode(repsonse.body)
- data['downloads']
+ response = Excon.get('https://rubygems.org/api/v1/downloads/fog.json')
+ data = Fog::JSON.decode(response.body)
+ data['total_downloads']
end
def collaborators
response = Excon.get('https://api.github.com/repos/fog/fog/collaborators', :headers => {'User-Agent' => 'geemus'})
data = Fog::JSON.decode(response.body)