simplecov-html 0.10.0 → 0.10.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 97ee8b0f8840c051d83cfb9c263f4b22a0ebea9b
4
- data.tar.gz: 2aab0a9c6da763c01b697077e8017536a0d96d78
2
+ SHA256:
3
+ metadata.gz: ca661011891a630ebdf7b9bc284c5e37523c5a865f82746d331c6d824353a777
4
+ data.tar.gz: bfdeee2ca8e2671c118c0d361ed9aeb80081267ebcf05cdda00f76f65cab12f7
5
5
  SHA512:
6
- metadata.gz: 1c0f4fc7a256225c1ccf6b6b232b2a1798d8e332255e8bbaf43090709194290a0444956d6dd584535d1d7baf82b3d37959ef1a68ef8d41303214fc73a44095ec
7
- data.tar.gz: 1b6010282ebc38d127d9ccfd077f946886834e964fc8a2fca42d0e7cf5b906f82058996cdafb34dabdb286324df6043727153b658a037013554b4b91fabd2a2a
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/TrailingComma:
53
+ Style/TrailingCommaInLiteral:
50
54
  EnforcedStyleForMultiline: 'comma'
data/.travis.yml CHANGED
@@ -15,6 +15,7 @@ rvm:
15
15
  - 2.0.0
16
16
  - 2.1
17
17
  - 2.2
18
+ - 2.3.1
18
19
  - ruby-head
19
20
  - jruby
20
21
  - rbx-2
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ 0.10.1 2017-05-17
2
+ ========
3
+
4
+ ## Bugfixes
5
+
6
+ * 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
- gem "rake"
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 "test-unit"
27
+ gem "minitest"
16
28
  end
17
29
 
18
30
  group :development do
@@ -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 = SimpleCov::VERSION.scan(/\d+/).first(3).map(&:to_i)
8
+ major, minor, patch = SimpleCov::VERSION.scan(/\d+/).first(3).map(&:to_i)
9
9
  if major < 0 || minor < 9 || patch < 0
10
- fail "The version of SimpleCov you are using is too old. "\
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.gsub(SimpleCov.root, ".").gsub(/^\.\//, "")
99
+ source_file.filename.sub(SimpleCov.root, ".").gsub(/^\.\//, "")
100
100
  end
101
101
 
102
102
  def link_to_source_file(source_file)
@@ -1,7 +1,7 @@
1
1
  module SimpleCov
2
2
  module Formatter
3
3
  class HTMLFormatter
4
- VERSION = "0.10.0"
4
+ VERSION = "0.10.1"
5
5
 
6
6
  def VERSION.to_a
7
7
  split(".").map(&:to_i)
data/test/helper.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  require "bundler/setup"
2
2
  require "simplecov"
3
3
  require "simplecov-html"
4
- require "test/unit"
4
+ require "minitest/autorun"
@@ -1,6 +1,6 @@
1
1
  require "helper"
2
2
 
3
- class TestSimpleCovHtml < Test::Unit::TestCase
3
+ class TestSimpleCovHtml < MiniTest::Unit::TestCase
4
4
  def test_defined
5
5
  assert defined?(SimpleCov::Formatter::HTMLFormatter)
6
6
  assert defined?(SimpleCov::Formatter::HTMLFormatter::VERSION)
@@ -11,7 +11,7 @@
11
11
 
12
12
  <pre>
13
13
  <ol>
14
- <% source_file.lines.each_with_index do |line| %>
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.0
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: 2015-04-18 00:00:00.000000000 Z
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
- type: :development
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.4.5
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: []