fiveruns / dash-rails

FiveRuns Dash recipe for Ruby on Rails

This URL has Read+Write access

commit  24e68d6bca17ba3a78f688d201026e25c4296772
tree    788a82ca1dda0ef6130b97d86f291ca7d579f7d4
parent  16f1a8d1326e442d2ee125e9c601e420683f6500
dash-rails / Rakefile
100644 41 lines (36 sloc) 1.388 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
40
41
require 'rubygems'
require 'rake/testtask'
 
Rake::TestTask.new do |t|
  t.verbose = true
  t.test_files = FileList['test/*_test.rb']
  t.libs << 'lib'
end
 
task :default => :test
 
begin
  require 'jeweler'
 
  Jeweler::Tasks.new do |s|
    s.name = "dash-rails"
    s.rubyforge_project = 'fiveruns'
    s.summary = "FiveRuns Dash recipe for Ruby on Rails"
    s.email = "dev@fiveruns.com"
    s.homepage = "http://github.com/fiveruns/dash-rails"
    s.description = "Provides an API to send metrics from Rails applications to the FiveRuns Dash service"
    s.authors = ["FiveRuns Development Team"]
    s.files = FileList['README.rdoc', 'Rakefile', 'VERSION.yml', 'init.rb', "{lib,rails,test}/**/*", ]
    s.add_dependency 'fiveruns-dash-ruby', '>= 0.8.1'
    s.add_dependency 'fiveruns-dash-activerecord', '>= 0.8.1'
  end
rescue LoadError
  puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
 
task :coverage do
  rm_f "coverage"
  rm_f "coverage.data"
  rcov = "rcov --exclude gems --exclude version.rb --sort coverage --text-summary --html -o coverage"
  system("#{rcov} test/*_test.rb")
  if ccout = ENV['CC_BUILD_ARTIFACTS']
    FileUtils.rm_rf '#{ccout}/coverage'
    FileUtils.cp_r 'coverage', ccout
  end
  system "open coverage/index.html" if PLATFORM['darwin']
end