contrast / exceptional

This URL has Read+Write access

exceptional / Rakefile
100644 39 lines (32 sloc) 1.165 kb
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
begin
  require 'echoe'
 
  Echoe.new('exceptional', '0.0.4') do |p|
    p.rubyforge_name = 'exceptional'
    p.summary = "Exceptional is the core Ruby library for communicating with http://getexceptional.com (hosted error tracking service)"
    p.description = "Exceptional is the core Ruby library for communicating with http://getexceptional.com (hosted error tracking service)"
    p.url = "http://getexceptional.com/"
    p.author = ['David Rice']
    p.email = "david@contrast.ie"
    p.dependencies = ["json"]
  end
 
rescue LoadError => e
  puts "You are missing a dependency required for meta-operations on this gem."
  puts "#{e.to_s.capitalize}."
end
 
# add spec tasks, if you have rspec installed
begin
  require 'spec/rake/spectask'
 
  Spec::Rake::SpecTask.new("spec") do |t|
    t.spec_files = FileList['spec/**/*_spec.rb']
    t.spec_opts = ['--color']
  end
  
  task :test do
    Rake::Task['spec'].invoke
  end
  
  Spec::Rake::SpecTask.new("coverage") do |t|
    t.spec_files = FileList['spec/**/*_spec.rb']
    t.spec_opts = ['--color']
    t.rcov = true
    t.rcov_opts = ['--exclude', '^spec,/gems/']
  end
  
end