simplecov-html 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +5 -1
- data/.travis.yml +1 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile +14 -2
- data/lib/simplecov-html.rb +3 -3
- data/lib/simplecov-html/version.rb +1 -1
- data/test/helper.rb +1 -1
- data/test/test_simple_cov-html.rb +1 -1
- data/views/source_file.erb +2 -2
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ca661011891a630ebdf7b9bc284c5e37523c5a865f82746d331c6d824353a777
|
4
|
+
data.tar.gz: bfdeee2ca8e2671c118c0d361ed9aeb80081267ebcf05cdda00f76f65cab12f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8963c060bfef0a713ae11996e939319be8d26d9c65e99e3dae7f4c221861d51b0fdb935df50d8abc1a339d4517bfadf315b3ffc588bf4cfcfe2ff9aaeb4181a3
|
7
|
+
data.tar.gz: f7580f81e1daeea7d195cbcd8a0a419f3073b2526ebf8cc2aff77a9fd9b430ef88d00cb11a10db60fe2a5306a14bdb93affead59b4f8013fafcc74e0dc7d002c
|
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
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
|
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,24 +1,24 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christoph Olszowka
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
18
|
version: '1.9'
|
20
|
-
|
19
|
+
name: bundler
|
21
20
|
prerelease: false
|
21
|
+
type: :development
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
@@ -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
|
@@ -89,7 +90,7 @@ homepage: https://github.com/colszowka/simplecov-html
|
|
89
90
|
licenses:
|
90
91
|
- MIT
|
91
92
|
metadata: {}
|
92
|
-
post_install_message:
|
93
|
+
post_install_message:
|
93
94
|
rdoc_options: []
|
94
95
|
require_paths:
|
95
96
|
- lib
|
@@ -104,11 +105,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
105
|
- !ruby/object:Gem::Version
|
105
106
|
version: '0'
|
106
107
|
requirements: []
|
107
|
-
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
109
|
-
signing_key:
|
108
|
+
rubyforge_project:
|
109
|
+
rubygems_version: 2.6.11
|
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: []
|