mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
fix rake thanks
This commit is contained in:
parent
82009d446f
commit
cf628ddcd7
1 changed files with 2 additions and 2 deletions
4
Rakefile
4
Rakefile
|
@ -98,8 +98,8 @@ desc "list of contributors"
|
|||
task :thanks, [:release,:backports] do |t, a|
|
||||
a.with_defaults :release => "#{prev_version}..HEAD",
|
||||
:backports => "#{prev_feature}.0..#{prev_feature}.x"
|
||||
included = `git log --format=format:"%aN\t%s" #{a.release}`.lines.to_a
|
||||
excluded = `git log --format=format:"%aN\t%s" #{a.backports}`.lines.to_a
|
||||
included = `git log --format=format:"%aN\t%s" #{a.release}`.lines.map { |l| l.force_encoding('binary') }
|
||||
excluded = `git log --format=format:"%aN\t%s" #{a.backports}`.lines.map { |l| l.force_encoding('binary') }
|
||||
commits = (included - excluded).group_by { |c| c[/^[^\t]+/] }
|
||||
authors = commits.keys.sort_by { |n| - commits[n].size } - team
|
||||
puts authors[0..-2].join(', ') << " and " << authors.last,
|
||||
|
|
Loading…
Add table
Reference in a new issue