lib/tasks/changelog_task.rb in fog-2.0.0.pre.0 vs lib/tasks/changelog_task.rb in fog-2.0.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
@@ -106,18 +105,22 @@
'Aaron Suggs',
'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',
'Daniel Reichert',
'Darren Hague',
'Decklin Foster',
'Dylan Egan',
+ 'effeminate-batman',
'Erik Michaels-Ober',
'Frederick Cheung',
'geemus',
'Henry Addison',
'James Bence',
@@ -138,14 +141,18 @@
'Oleg Vivtash',
'Patrick Debois',
'Paul Thornthwaite',
'Paulo Henrique Lopes Ribeiro',
'Peter Souter',
+ 'Phil Ross',
+ 'Rich Daley',
'Rodrigo Estebanez',
'Rupak Ganguly',
'Stepan G. Fedorov',
+ 'swamp09',
'TerryHowe',
+ 'Tinguely Pierre',
'Wesley Beary'
].include?(committer)
end
def mvp
@@ -170,20 +177,20 @@
def committer_line?
committer_match != nil
end
def committer_match
- @current_line.match /([\w\s]+)\s+\(\d+\)/
+ @current_line.match (/([-\w\s]+)\s+\(\d+\)/)
end
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)