cleanup
This commit is contained in:
@@ -30,7 +30,6 @@ end
|
|||||||
desc "Generate an authors list"
|
desc "Generate an authors list"
|
||||||
task :authors do
|
task :authors do
|
||||||
authors = %x{ git log --pretty=format:"%an" | sort -u }.split("\n")
|
authors = %x{ git log --pretty=format:"%an" | sort -u }.split("\n")
|
||||||
puts authors.join(", ")
|
|
||||||
readme = File.read("README.md")
|
readme = File.read("README.md")
|
||||||
readme.gsub!(/#### Patches contributed by\n([^\n]*)\n/m, "#### Patches contributes by\n#{authors.join(", ")}\n")
|
readme.gsub!(/#### Patches contributed by\n([^\n]*)\n/m, "#### Patches contributes by\n#{authors.join(", ")}\n")
|
||||||
File.open("README.md", "w") { |f| f.print readme }
|
File.open("README.md", "w") { |f| f.print readme }
|
||||||
|
|||||||
Reference in New Issue
Block a user