simplecov-html 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -1
- data/.travis.yml +2 -0
- data/CHANGELOG.md +13 -0
- data/Gemfile +14 -2
- data/lib/simplecov-html/version.rb +1 -21
- data/lib/simplecov-html.rb +3 -3
- data/test/helper.rb +1 -1
- data/test/test_simple_cov-html.rb +1 -1
- data/views/source_file.erb +2 -2
- metadata +5 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b390927b4068494470bc6dab12d889374683b2c
|
|
4
|
+
data.tar.gz: a489f2db591a59851a07b12895730339c9537f54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a717a3f32fb55f02ae13694389bc7c85bd8f1e6bcab853176cbdbc97e9d87ead21b06610b1f1d20a6b0b97a61e430eb189af20f4f5dadff54ce37bfacaaa4e5c
|
|
7
|
+
data.tar.gz: '08d47a31edd879fb6551a1e316ea3729ca49f8f3f9eb3ef2523086e134af2178c013316ec33df4e5c59d0b013d937198419c85e0f0fa12fa376847bd9cce06d0'
|
data/.rubocop.yml
CHANGED
|
@@ -37,6 +37,10 @@ Style/FileName:
|
|
|
37
37
|
Style/HashSyntax:
|
|
38
38
|
EnforcedStyle: hash_rockets
|
|
39
39
|
|
|
40
|
+
Style/MutableConstant:
|
|
41
|
+
Exclude:
|
|
42
|
+
- 'lib/simplecov-html/version.rb'
|
|
43
|
+
|
|
40
44
|
Style/RegexpLiteral:
|
|
41
45
|
Enabled: false
|
|
42
46
|
|
|
@@ -46,5 +50,5 @@ Style/SpaceInsideHashLiteralBraces:
|
|
|
46
50
|
Style/StringLiterals:
|
|
47
51
|
EnforcedStyle: double_quotes
|
|
48
52
|
|
|
49
|
-
Style/
|
|
53
|
+
Style/TrailingCommaInLiteral:
|
|
50
54
|
EnforcedStyleForMultiline: 'comma'
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
0.10.2 2017-08-14
|
|
2
|
+
========
|
|
3
|
+
|
|
4
|
+
## Bugfixes
|
|
5
|
+
|
|
6
|
+
* Allow usage with frozen-string-literal-enabled. See [#56](https://github.com/colszowka/simplecov-html/pull/56) (thanks @pat)
|
|
7
|
+
|
|
8
|
+
0.10.1 2017-05-17
|
|
9
|
+
========
|
|
10
|
+
|
|
11
|
+
## Bugfixes
|
|
12
|
+
|
|
13
|
+
* circumvent a regression that happens in the new JRuby 9.1.9.0 release. See [#53](https://github.com/colszowka/simplecov-html/pull/53) thanks @koic
|
data/Gemfile
CHANGED
|
@@ -2,7 +2,11 @@ source "https://rubygems.org"
|
|
|
2
2
|
|
|
3
3
|
gemspec
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
if RUBY_VERSION == "1.8.7"
|
|
6
|
+
gem "rake", "~> 10.5"
|
|
7
|
+
else
|
|
8
|
+
gem "rake", ">= 11"
|
|
9
|
+
end
|
|
6
10
|
|
|
7
11
|
# Use local copy of simplecov in development when checked out, fetch from git otherwise
|
|
8
12
|
if File.directory?(File.dirname(__FILE__) + "/../simplecov")
|
|
@@ -11,8 +15,16 @@ else
|
|
|
11
15
|
gem "simplecov", :git => "https://github.com/colszowka/simplecov"
|
|
12
16
|
end
|
|
13
17
|
|
|
18
|
+
platforms :ruby_18, :ruby_19 do
|
|
19
|
+
gem "json", "~> 1.8"
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
platforms :ruby_18, :ruby_19, :ruby_20, :ruby_21 do
|
|
23
|
+
gem "rack", "~> 1.6"
|
|
24
|
+
end
|
|
25
|
+
|
|
14
26
|
group :test do
|
|
15
|
-
gem "
|
|
27
|
+
gem "minitest"
|
|
16
28
|
end
|
|
17
29
|
|
|
18
30
|
group :development do
|
|
@@ -1,27 +1,7 @@
|
|
|
1
1
|
module SimpleCov
|
|
2
2
|
module Formatter
|
|
3
3
|
class HTMLFormatter
|
|
4
|
-
VERSION = "0.10.
|
|
5
|
-
|
|
6
|
-
def VERSION.to_a
|
|
7
|
-
split(".").map(&:to_i)
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
def VERSION.major
|
|
11
|
-
to_a[0]
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
def VERSION.minor
|
|
15
|
-
to_a[1]
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
def VERSION.patch
|
|
19
|
-
to_a[2]
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def VERSION.pre
|
|
23
|
-
to_a[3]
|
|
24
|
-
end
|
|
4
|
+
VERSION = "0.10.2".freeze
|
|
25
5
|
end
|
|
26
6
|
end
|
|
27
7
|
end
|
data/lib/simplecov-html.rb
CHANGED
|
@@ -5,9 +5,9 @@ require "digest/sha1"
|
|
|
5
5
|
require "time"
|
|
6
6
|
|
|
7
7
|
# Ensure we are using a compatible version of SimpleCov
|
|
8
|
-
major, minor, patch =
|
|
8
|
+
major, minor, patch = SimpleCov::VERSION.scan(/\d+/).first(3).map(&:to_i)
|
|
9
9
|
if major < 0 || minor < 9 || patch < 0
|
|
10
|
-
|
|
10
|
+
raise "The version of SimpleCov you are using is too old. "\
|
|
11
11
|
"Please update with `gem install simplecov` or `bundle update simplecov`"
|
|
12
12
|
end
|
|
13
13
|
|
|
@@ -96,7 +96,7 @@ module SimpleCov
|
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
def shortened_filename(source_file)
|
|
99
|
-
source_file.filename.
|
|
99
|
+
source_file.filename.sub(SimpleCov.root, ".").gsub(/^\.\//, "")
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
def link_to_source_file(source_file)
|
data/test/helper.rb
CHANGED
data/views/source_file.erb
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
<pre>
|
|
13
13
|
<ol>
|
|
14
|
-
<% source_file.lines.
|
|
14
|
+
<% source_file.lines.each do |line| %>
|
|
15
15
|
<li class="<%= line.status %>" data-hits="<%= line.coverage ? line.coverage : '' %>" data-linenumber="<%= line.number %>">
|
|
16
16
|
<% if line.covered? %><span class="hits"><%= line.coverage %></span><% end %>
|
|
17
17
|
<% if line.skipped? %><span class="hits">skipped</span><% end %>
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
<% end %>
|
|
21
21
|
</ol>
|
|
22
22
|
</pre>
|
|
23
|
-
</div>
|
|
23
|
+
</div>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simplecov-html
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christoph Olszowka
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-08-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -35,6 +35,7 @@ files:
|
|
|
35
35
|
- ".gitignore"
|
|
36
36
|
- ".rubocop.yml"
|
|
37
37
|
- ".travis.yml"
|
|
38
|
+
- CHANGELOG.md
|
|
38
39
|
- Gemfile
|
|
39
40
|
- Guardfile
|
|
40
41
|
- LICENSE
|
|
@@ -105,10 +106,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
105
106
|
version: '0'
|
|
106
107
|
requirements: []
|
|
107
108
|
rubyforge_project:
|
|
108
|
-
rubygems_version: 2.
|
|
109
|
+
rubygems_version: 2.6.10
|
|
109
110
|
signing_key:
|
|
110
111
|
specification_version: 4
|
|
111
112
|
summary: Default HTML formatter for SimpleCov code coverage tool for ruby 1.9+
|
|
112
|
-
test_files:
|
|
113
|
-
- test/helper.rb
|
|
114
|
-
- test/test_simple_cov-html.rb
|
|
113
|
+
test_files: []
|