9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/tasks/contributor_tasks.rb', line 9
def define
desc "Update contributors list in README"
task :update_contributors do
if new_contributors?
puts "New contributors!"
new_contributors.each {|name| puts "- #{name}"}
puts ""
print "Updating the 'Contributors' section of README..."
File.open("README.md", "w+") do |file|
file.puts readme_without_contributors_section
file.puts "## Contributors (sorted alphabetically)"
file.puts ""
committers.each {|name| file.puts "* #{name}"}
end
puts "done!"
else
puts "No new contributors."
end
end
task :release do
puts "#####################"
puts "For the twitters"
puts "#####################"
puts "[ANN] chili_pdf v#{ChiliPDF::VERSION} released. Changes: http://bit.ly/lEfOaJ, Repo: http://bit.ly/lu5bjP /cc @chiliproject"
puts "#####################"
end
end
|