Sha256: 5c85140378bbb317f6b1a5ed44c837ec2dc1833120300ddb7cb6a9d373a1ed5b

Contents?: true

Size: 1.01 KB

Versions: 14

Compression:

Stored size: 1.01 KB

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake'
require 'rdoc/task'
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

14 entries across 14 versions & 1 rubygems

Version Path
libnotify-0.7.3-universal-rubinius-1.2 Rakefile
libnotify-0.7.3 Rakefile
libnotify-0.7.2-universal-rubinius-1.2 Rakefile
libnotify-0.7.2 Rakefile
libnotify-0.7.1-universal-rubinius-1.2 Rakefile
libnotify-0.7.1 Rakefile
libnotify-0.7.0-universal-rubinius-1.2 Rakefile
libnotify-0.7.0 Rakefile
libnotify-0.7.0.pre2-universal-rubinius-1.2 Rakefile
libnotify-0.7.0.pre2 Rakefile
libnotify-0.7.0.pre-universal-rubinius-1.2 Rakefile
libnotify-0.7.0.pre Rakefile
libnotify-0.6.0-universal-rubinius-1.2 Rakefile
libnotify-0.6.0 Rakefile