Permalink
Browse files

improving formatting to look more like rcov, and formatting pages of …

…details from source files
  • Loading branch information...
wandenberg committed Mar 15, 2011
1 parent 43dcd75 commit 9ed67caa7b178ff8be5f8b12c95790adba780245
View
@@ -22,3 +22,6 @@ rdoc
pkg
## PROJECT::SPECIFIC
+
+## ECLIPSE
+.project
View
@@ -1,3 +1,8 @@
-source 'http://rubygems.org'
+source :rubygems
gemspec
+
+group :test, :development do
+ # Develop against git master if required - just uncomment this line:
+ gem 'simplecov'# , :git => 'git://github.com/colszowka/simplecov.git'
+end
View
@@ -2,29 +2,17 @@ PATH
remote: .
specs:
simplecov-rcov (0.1.4)
- simplecov
GEM
remote: http://rubygems.org/
specs:
- echoe (4.3.1)
- gemcutter
- rubyforge
- gemcutter (0.6.1)
- json_pure (1.5.1)
- mocha (0.9.11)
- rake
- rake (0.8.7)
- rubyforge (2.0.4)
- json_pure (>= 1.1.7)
- simplecov (0.4.0)
- simplecov-html (~> 0.4.0)
+ simplecov (0.4.1)
+ simplecov-html (~> 0.4.3)
simplecov-html (0.4.3)
PLATFORMS
ruby
DEPENDENCIES
- echoe
- mocha
+ simplecov
simplecov-rcov!
View
@@ -14,7 +14,7 @@ So if you are looking some kind of workaround to integrate **SimpleCov** with yo
require 'simplecov-rcov'
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
-
+
Or if you want to share this formatter with another formatter like *HTML formatter* you can add both:
require 'simplecov'
@@ -47,7 +47,7 @@ You can also add a flag support so if you don't run the tests activating the *CO
Run it using this:
$ COVERAGE=on rake test
-
+
## ISSUES
To add the gem to the **Gemfile** try to do it this way:
@@ -56,7 +56,7 @@ To add the gem to the **Gemfile** try to do it this way:
gem 'simplecov-rcov', :require => false
And require the gems just before use the *SimpleCov* constant, like in the examples above.
-
+
If not could be *Uninitialized constant SimpleCov* issues.
## TODO
@@ -66,6 +66,6 @@ The actual version generates only one simple **/rcov/index.html** file.
## Credits
* Author: [Fernando Guillen](http://fernandoguillen.info)
-* Contributors: [Wes Morgan](http://github.com/cap10morgan)
+* Contributors: [Wes Morgan](http://github.com/cap10morgan), [Wandenberg Peixoto](http://github.com/wandenberg)
* Copyright: Copyright (c) 2010 Fernando Guillen
-* License: Released under the MIT license.
+* License: Released under the MIT license.
View
@@ -1,13 +1,18 @@
-require 'rubygems'
-require 'rake'
-require 'echoe'
+require 'bundler'
+Bundler::GemHelper.install_tasks
-Echoe.new('simplecov-rcov', '0.1.4') do |p|
- p.description = "Rcov style formatter for SimpleCov"
- p.url = "http://github.com/fguillen/simplecov-rcov"
- p.author = ["Fernando Guillen http://fernandoguillen.info", "Wes Morgan http://github.com/cap10morgan"]
- p.email = ["fguillen.mail@gmail.com", "cap10morgan@gmail.com"]
- p.ignore_pattern = ["tmp/*", "script/*"]
- p.development_dependencies = ['echoe', 'mocha']
- p.runtime_dependencies = ['simplecov']
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+end
+
+task :default => :test
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
end
View

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -0,0 +1,12 @@
+/* Hide controls */
+
+ body {
+ color: #000000;
+ background-color: #ffffff;
+ }
+
+/* Hide controls */
+
+ div.filters {
+ display: none;
+ }
View
@@ -0,0 +1,42 @@
+function toggleCode( id ) {
+ if ( document.getElementById ) {
+ elem = document.getElementById( id );
+ } else if ( document.all ) {
+ elem = eval( "document.all." + id );
+ } else {
+ return false;
+ }
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block";
+ } else {
+ elemStyle.display = "none";
+ }
+
+ return true;
+}
+
+function restripe() {
+ i = 0;
+ $('table#report_table tbody tr').each(function(){
+ if (this.style.display != "none") {
+ i += 1;
+ classes = this.className.split(" ");
+ if ($.inArray("even",classes) != -1) {
+ classes.splice($.inArray("even",classes),1);
+ } else if ($.inArray("odd",classes) != -1) {
+ classes.splice($.inArray("odd",classes),1);
+ }
+ if (i % 2 === 0) {
+ this.className = classes.join(" ") + " odd";
+ } else {
+ this.className = classes.join(" ") + " even";
+ }
+ }
+ });
+}
+
+// Fix IE's lack of support for indexOf (!)
+if (!Array.indexOf) { Array.prototype.indexOf = function(obj){ for(var i=0; i<this.length; i++){ if(this[i]==obj){return i;} } return -1; }}
Oops, something went wrong.

0 comments on commit 9ed67ca

Please sign in to comment.