From 091bb2db034e6033de8bbb18e9d674f019cc22a1 Mon Sep 17 00:00:00 2001 From: Fernando Guillen Date: Thu, 28 Oct 2010 21:36:18 +0200 Subject: [PATCH] 0.1.1 --- README.md | 26 ++++++++++++++++++++++++++ Rakefile | 2 +- views/index.erb.html | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..8ccd4f8 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# SimpleCov Rcov Formatter gem + +Is a Rcov style formatter for the ruby 1.9+ coverage gem: [SimpleCov](http://github.com/colszowka/simplecov). + +The target of this formatter is to cheat on **Hudson** so I can use the [Ruby metrics plugin](http://github.com/hudson/rubymetrics-plugin) with **SimpleCov**. + +So if your are looking some kind of workaround to integrate **SimpleCov** with your **Hudson** + **Ruby metrics plugin** this is a beginning. + +## Install + + $ [sudo] gem install simplecov_rcov + +## Usage + + require 'simplecov_csv' + SimpleCov.formatter # SimpleCov::Formatter::RcovFormatter + +## TODO + +The actual version generates only one simple **/rcov/index.html** file. + +## Credits + +Author:: Fernando Guillen: http://fernandoguillen.info +Copyright:: Copyright (c) 2010 Fernando Guillen +License:: Released under the MIT license. \ No newline at end of file diff --git a/Rakefile b/Rakefile index 3ea3e0f..fc31d8f 100644 --- a/Rakefile +++ b/Rakefile @@ -2,7 +2,7 @@ require 'rubygems' require 'rake' require 'echoe' -Echoe.new('simplecov-rcov', '0.1.0') do |p| +Echoe.new('simplecov-rcov', '0.1.1') do |p| p.description = "Rcov style formatter for SimpleCov" p.url = "http://github.com/fguillen/simplecov-rcov" p.author = "Fernando Guillen http://fernandoguillen.info" diff --git a/views/index.erb.html b/views/index.erb.html index fb2a771..cb1ef96 100644 --- a/views/index.erb.html +++ b/views/index.erb.html @@ -30,7 +30,7 @@

SimpleCov - RCov style

<% @files.each do |file| %> - <%= file.filename.gsub(SimpleCov.root, '.') %> + <%= file.filename.gsub(SimpleCov.root, '.') %> <%= file.lines.count %> <%= file.covered_lines.count + file.missed_lines.count %> <%= '%.2f' % file.covered_percent %>%