forked from openaustralia/openaustralia-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rakefile.rb
42 lines (35 loc) · 891 Bytes
/
rakefile.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'spec/rake/spectask'
task :default => [:spec]
Spec::Rake::SpecTask.new do |t|
t.ruby_opts = ['-rtest/unit']
t.spec_files = FileList['spec/*_spec.rb', 'test/test_*.rb']
end
Spec::Rake::SpecTask.new(:spec_coverage) do |t|
t.rcov = true
t.rcov_opts = ["-x/Library/, -xspec"]
t.ruby_opts = ['-rtest/unit']
t.spec_files = FileList['spec/*_spec.rb', 'test/test_*.rb']
end
task :gems do
module Kernel
alias :gem_old :gem
def gem(name,*version_requirements)
begin
gem_old(name,*version_requirements)
rescue Gem::LoadError
print " [ ]"
else
print " [I]"
end
puts " %-20s %s" % [ name, version_requirements.inspect ]
end
end
puts "checking gems"
require 'lib/environment'
module Kernel
alias :gem :gem_old
end
end