Sha256: 2acf404f071fa46c0999fa0d5c9894eebc33057ea66b67e96436dc3b65169630

Contents?: true

Size: 1.12 KB

Versions: 18

Compression:

Stored size: 1.12 KB

Contents

require 'rubygems'
require 'rake'

APP_ROOT = File.dirname(__FILE__).freeze

begin
  require 'bundler'
  Bundler::GemHelper.install_tasks
rescue LoadError
  puts "Bundler not available. Install it with: gem install bundler"
end

begin
  require 'rspec/core/rake_task'

  RSpec::Core::RakeTask.new

  RSpec::Core::RakeTask.new(:rcov) do |t|
    t.rcov = true
    t.ruby_opts = '-w'
    t.rcov_opts = %q[-Ilib --exclude "spec/*,gems/*"]
  end
rescue LoadError
  $stderr.puts "RSpec not available. Install it with: gem install rspec-core rspec-expectations"
end

task :default => :spec

begin
  require 'yard'

  YARD::Rake::YardocTask.new do |yard|
    version = File.exists?('VERSION') ? IO.read('VERSION') : ""
    yard.options << "--title='git-commit-notifier #{version}'"
  end
rescue LoadError
  $stderr.puts "Please install YARD with: gem install yard"
end

begin
  gem 'code-cleaner'
  desc 'Clean code for whitespaces and tabs'
  task :'code:clean' do
    system('code-cleaner lib spec Rakefile bin/git-commit-notifier')
  end
rescue LoadError
  $stderr.puts "code-cleaner not available. Install it with: gem install code-cleaner"
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
git-commit-notifier-0.12.10 Rakefile
git-commit-notifier-0.12.6 Rakefile
git-commit-notifier-0.12.5 Rakefile
git-commit-notifier-0.12.3 Rakefile
git-commit-notifier-0.12.2 Rakefile
git-commit-notifier-0.12.1 Rakefile
git-commit-notifier-0.12.0 Rakefile
git-commit-notifier-0.11.11 Rakefile
git-commit-notifier-0.11.10 Rakefile
git-commit-notifier-0.11.9 Rakefile
git-commit-notifier-0.11.6 Rakefile
git-commit-notifier-0.11.5 Rakefile
git-commit-notifier-0.11.4 Rakefile
git-commit-notifier-0.11.3 Rakefile
git-commit-notifier-0.11.2 Rakefile
git-commit-notifier-0.11.1 Rakefile
git-commit-notifier-0.11.0 Rakefile
git-commit-notifier-0.10.5 Rakefile