relevance / obsidian

It's metastable

This URL has Read+Write access

obsidian / Rakefile
9bb054c1 » stuarthalloway 2008-03-28 hoe hoe hoe 1 require 'rubygems'
32e5b231 » stuarthalloway 2008-03-28 tested Delta 2 require 'rake'
3 require 'rake/testtask'
4 require 'rake/rdoctask'
2cc4214a » jasonrudolph 2008-11-14 Migrate from hoe to echoe 5 require 'echoe'
3c057370 » abedra 2008-04-07 adding some release type stuff 6 require 'lib/obsidian'
9bb054c1 » stuarthalloway 2008-03-28 hoe hoe hoe 7
2cc4214a » jasonrudolph 2008-11-14 Migrate from hoe to echoe 8 echoe = Echoe.new('obsidian', Obsidian::VERSION) do |p|
3c057370 » abedra 2008-04-07 adding some release type stuff 9 p.rubyforge_name = "thinkrelevance"
10 p.author = "Relevance"
11 p.email = "opensource@thinkrelevance.com"
2cc4214a » jasonrudolph 2008-11-14 Migrate from hoe to echoe 12 p.summary = "It's metastable"
e8dce5ff » jasonrudolph 2008-11-14 Update README - Use Lightho... 13 p.description = "Bits of Ruby code useful for simplifying various tasks"
a6cba6eb » Jason Rudolph 2008-04-11 Cleanup docs: 14 p.url = "http://opensource.thinkrelevance.com"
15 p.rdoc_pattern = /^(lib|bin|ext)|txt|rdoc$/
2cc4214a » jasonrudolph 2008-11-14 Migrate from hoe to echoe 16 rdoc_template = `allison --path`.strip << ".rb"
17 p.rdoc_template = rdoc_template
a6cba6eb » Jason Rudolph 2008-04-11 Cleanup docs: 18 end
19
2cc4214a » jasonrudolph 2008-11-14 Migrate from hoe to echoe 20 echoe.spec.add_development_dependency "echoe"
21 echoe.spec.add_development_dependency "allison"
22 echoe.spec.add_development_dependency "markaby"
3c057370 » abedra 2008-04-07 adding some release type stuff 23
32e5b231 » stuarthalloway 2008-03-28 tested Delta 24 begin
25 require 'rcov'
26 require "rcov/rcovtask"
27
28 namespace :coverage do
29 rcov_output = ENV["CC_BUILD_ARTIFACTS"] || 'tmp/coverage'
30 rcov_exclusions = %w{
31 }.join(',')
32
33 desc "Delete aggregate coverage data."
34 task(:clean) { rm_f "rcov_tmp" }
35
36 Rcov::RcovTask.new(:unit => :clean) do |t|
37 t.test_files = FileList['test/**/*_test.rb']
5f4cff47 » abedra 2008-03-31 updating formatting and tests 38 t.rcov_opts = ["--sort coverage", "--aggregate 'rcov_tmp'", "--html", "--rails", "--exclude '/Library'"]
32e5b231 » stuarthalloway 2008-03-28 tested Delta 39 t.output_dir = rcov_output + '/unit'
40 end
41
42 desc "Generate and open coverage report"
43 task(:all => [:unit]) do
44 system("open #{rcov_output}/unit/index.html") if PLATFORM['darwin']
45 end
46 end
47 rescue LoadError
48 if RUBY_PLATFORM =~ /java/
49 puts 'running in jruby - rcov tasks not available'
50 else
51 puts 'sudo gem install rcov # if you want the rcov tasks'
52 end
53 end
7491e3ac » rsanheim 2008-07-19 whitespace 54