Sha256: 15c26c6f0d06f69695394ccc62dfe411c0fb7314a28e5eb77dc38e7ab6557192
Contents?: true
Size: 1.02 KB
Versions: 26
Compression:
Stored size: 1.02 KB
Contents
require 'bundler' Bundler::GemHelper.install_tasks require 'rake' require 'rake/rdoctask' require 'rubygems' load 'libnotify/tasks/rubies.rake' # Test require 'rake/testtask' desc 'Default: run unit tests.' task :default => :test Rake::TestTask.new(:test) do |test| test.test_files = FileList.new('test/test_*.rb') test.libs << 'test' test.verbose = true end # Yard begin require 'yard' YARD::Rake::YardocTask.new rescue LoadError task :yardoc do abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard" end end desc "Alias for `rake yard`" task :doc => :yard # Misc desc "Tag files for vim" task :ctags do dirs = $LOAD_PATH.select {|path| File.directory?(path) } system "ctags -R #{dirs.join(" ")}" end desc "Find whitespace at line ends" task :eol do system "grep -nrE ' +$' *" end desc "Display TODOs" task :todo do `grep -Inr TODO lib test`.each do |line| line.scan(/^(.*?:.*?):\s*#\s*TODO\s*(.*)$/) do |(file, todo)| puts "* #{todo} (#{file})" end end end
Version data entries
26 entries across 26 versions & 1 rubygems