Sha256: 68ae5933fbcc9385329b0151dfb3eed34976dc62a68b1a466e2b1ca9e2eb0208

Contents?: true

Size: 1022 Bytes

Versions: 4

Compression:

Stored size: 1022 Bytes

Contents

require 'bundler/setup'
Bundler::GemHelper.install_tasks

require 'rake'
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

4 entries across 4 versions & 1 rubygems

Version Path
libnotify-0.8.0 Rakefile
libnotify-0.8.0.pre Rakefile
libnotify-0.7.4 Rakefile
libnotify-0.7.4.pre Rakefile