File: Rakefile

package info (click to toggle)
ruby-awesome-print 1.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 744 kB
  • sloc: ruby: 3,787; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'rubygems'
require 'bundler/setup'

require 'bundler'
Bundler::GemHelper.install_tasks

task :default do
  if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
    Rake::Task['spec'].invoke
  else
    Rake::Task['appraise'].invoke
  end
end

task :appraise do
  exec 'appraisal install && appraisal rake'
end

desc 'Run all awesome_print gem specs'
task :spec do
  # Run plain rspec command without RSpec::Core::RakeTask overrides.
  exec 'rspec -c spec'
end