lib/zen/task/build.rake in zen-0.3 vs lib/zen/task/build.rake in zen-0.4
- old
+ new
@@ -1,7 +1,7 @@
namespace :build do
- desc 'Builds the documentation using YARD'
+ desc 'Build the YARD docs'
task :doc => ['clean:yard'] do
root = File.expand_path('../../../../', __FILE__)
Dir.chdir(root)
sh('yard doc')
@@ -18,29 +18,10 @@
sh('gem', 'build', File.join(root, 'zen.gemspec'))
sh('mv' , path, pkg)
sh('gem', 'install', pkg)
end
- # Stolen from Ramaze
- desc 'Builds a list of all the people that have contributed to Zen'
- task :authors do
- authors = Hash.new(0)
-
- `git shortlog -nse`.scan(/(\d+)\s(.+)\s<(.*)>$/) do |count, name, email|
- authors[[name, email]] += count.to_i
- end
-
- File.open('AUTHORS', 'w+') do |io|
- io.puts "Following persons have contributed to Zen."
- io.puts '(Sorted by number of submitted patches, then alphabetically)'
- io.puts ''
- authors.sort_by { |(n,e),c| [-c, n.downcase] }.each do |(name, email), count|
- io.puts("%6d %s <%s>" % [count, name, email])
- end
- end
- end
-
- desc 'Builds a list of changes since a given Git tag and outputs it'
+ desc 'Build a list of changes'
task :changes, [:tag] do |t, args|
args.with_defaults(:tag => `git tag`.split(/\n/)[-1])
stop = `git log -1 --pretty=oneline --color=never`.split(/\s+/)[0]
log = `git --no-pager log --color=never --pretty=oneline \