Sha256: 60c34ed1d52e343e88ac7e55c6f06ca4ce82f3d2af4a83363d89beab18cd4e60
Contents?: true
Size: 1.04 KB
Versions: 7
Compression:
Stored size: 1.04 KB
Contents
task :default => [:test, :build] task :readme do readme = <<-__ [](https://travis-ci.org/artm/ipod_db) [](https://codeclimate.com/github/artm/ipod_db) __ readme += `bin/ipod help` %w(sync ls rm).each do |subcommand| readme += "\nSUBCOMMAND: #{subcommand}\n" rejecting = false rejects = %w(name author) readme += `bin/ipod #{subcommand} -h`.split("\n").reject do |line| if line =~ /^\w/ rejecting = rejects.include? line.downcase else rejecting end end.join "\n" end readme += "\nHISTORY\n" readme += IO.read('HISTORY').split("\n").map{|s| " #{s}"}.join("\n") File.open('README.md','w') do |io| io.puts readme.gsub(/^\w.*$/) {|m| "#{$&}\n#{'=' * $&.length}\n" }.gsub(/^ /,' ') end end Rake::TestTask.new { |t| t.libs << 'spec' t.pattern = 'spec/*_spec.rb' } BEGIN { task :release => [:readme] require 'bundler/gem_tasks' require 'rake/testtask' }
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
ipod_db-0.2.13 | Rakefile |
ipod_db-0.2.12 | Rakefile |
ipod_db-0.2.11 | Rakefile |
ipod_db-0.2.10 | Rakefile |
ipod_db-0.2.9 | Rakefile |
ipod_db-0.2.8 | Rakefile |
ipod_db-0.2.7 | Rakefile |