simplecov-html 0.3.5 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -5
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/simplecov-html.rb +5 -6
- data/simplecov-html.gemspec +1 -4
- metadata +4 -19
data/README.rdoc
CHANGED
@@ -5,11 +5,8 @@
|
|
5
5
|
Generates a nice HTML report of your SimpleCov coverage results on Ruby 1.9 using client-side Javascript
|
6
6
|
quite extensively.
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
gem 'simplecov-html', '>= 0.3.5'
|
11
|
-
|
12
|
-
The html formatter will be used automatically then.
|
8
|
+
Starting from simplecov 0.3.2, the HTML Formatter is the default one and you don't need any further setup.
|
9
|
+
Please check out the documentation for simplecov to learn how to set things up: http://github.com/colszowka/simplecov
|
13
10
|
|
14
11
|
== Note on Patches/Pull Requests
|
15
12
|
|
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
gem.email = "christoph at olszowka.de"
|
11
11
|
gem.homepage = "http://github.com/colszowka/simplecov-html"
|
12
12
|
gem.authors = ["Christoph Olszowka"]
|
13
|
-
gem.add_dependency "simplecov", "~> 0.3.
|
13
|
+
#gem.add_dependency "simplecov", "~> 0.3.2"
|
14
14
|
gem.add_development_dependency "shoulda", "= 2.10.3"
|
15
15
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
16
16
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.7
|
data/lib/simplecov-html.rb
CHANGED
@@ -2,10 +2,12 @@ require 'erb'
|
|
2
2
|
require 'fileutils'
|
3
3
|
require 'digest/sha1'
|
4
4
|
require 'time'
|
5
|
-
require 'simplecov'
|
6
5
|
|
6
|
+
unless defined?(SimpleCov)
|
7
|
+
raise RuntimeError, "simplecov-html is now the default formatter of simplecov. Please update your test helper and gemfile to require 'simplecov' instead of 'simplecov-html'!"
|
8
|
+
end
|
7
9
|
# Ensure we are using an compatible version of SimpleCov
|
8
|
-
if Gem::Version.new(SimpleCov::VERSION) < Gem::Version.new("0.3.
|
10
|
+
if Gem::Version.new(SimpleCov::VERSION) < Gem::Version.new("0.3.2")
|
9
11
|
raise RuntimeError, "The version of SimpleCov you are using is too old. Please update with 'gem install simplecov'"
|
10
12
|
end
|
11
13
|
|
@@ -103,7 +105,4 @@ class SimpleCov::Formatter::HTMLFormatter
|
|
103
105
|
def link_to_source_file(source_file)
|
104
106
|
%Q(<a href="##{id source_file}" class="src_link" title="#{shortened_filename source_file}">#{shortened_filename source_file}</a>)
|
105
107
|
end
|
106
|
-
end
|
107
|
-
|
108
|
-
# Set up the html formatter
|
109
|
-
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
|
108
|
+
end
|
data/simplecov-html.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{simplecov-html}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Christoph Olszowka"]
|
@@ -90,14 +90,11 @@ Gem::Specification.new do |s|
|
|
90
90
|
s.specification_version = 3
|
91
91
|
|
92
92
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
93
|
-
s.add_runtime_dependency(%q<simplecov>, ["~> 0.3.0"])
|
94
93
|
s.add_development_dependency(%q<shoulda>, ["= 2.10.3"])
|
95
94
|
else
|
96
|
-
s.add_dependency(%q<simplecov>, ["~> 0.3.0"])
|
97
95
|
s.add_dependency(%q<shoulda>, ["= 2.10.3"])
|
98
96
|
end
|
99
97
|
else
|
100
|
-
s.add_dependency(%q<simplecov>, ["~> 0.3.0"])
|
101
98
|
s.add_dependency(%q<shoulda>, ["= 2.10.3"])
|
102
99
|
end
|
103
100
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 7
|
9
|
+
version: 0.3.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Christoph Olszowka
|
@@ -17,25 +17,10 @@ cert_chain: []
|
|
17
17
|
date: 2010-08-25 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
name: simplecov
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
|
-
requirements:
|
26
|
-
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
- 3
|
31
|
-
- 0
|
32
|
-
version: 0.3.0
|
33
|
-
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
20
|
- !ruby/object:Gem::Dependency
|
36
21
|
name: shoulda
|
37
22
|
prerelease: false
|
38
|
-
requirement: &
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
39
24
|
none: false
|
40
25
|
requirements:
|
41
26
|
- - "="
|
@@ -46,7 +31,7 @@ dependencies:
|
|
46
31
|
- 3
|
47
32
|
version: 2.10.3
|
48
33
|
type: :development
|
49
|
-
version_requirements: *
|
34
|
+
version_requirements: *id001
|
50
35
|
description: HTML formatter for SimpleCov code coverage tool for ruby 1.9+
|
51
36
|
email: christoph at olszowka.de
|
52
37
|
executables: []
|