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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97ee8b0f8840c051d83cfb9c263f4b22a0ebea9b
4
- data.tar.gz: 2aab0a9c6da763c01b697077e8017536a0d96d78
3
+ metadata.gz: 7b390927b4068494470bc6dab12d889374683b2c
4
+ data.tar.gz: a489f2db591a59851a07b12895730339c9537f54
5
5
  SHA512:
6
- metadata.gz: 1c0f4fc7a256225c1ccf6b6b232b2a1798d8e332255e8bbaf43090709194290a0444956d6dd584535d1d7baf82b3d37959ef1a68ef8d41303214fc73a44095ec
7
- data.tar.gz: 1b6010282ebc38d127d9ccfd077f946886834e964fc8a2fca42d0e7cf5b906f82058996cdafb34dabdb286324df6043727153b658a037013554b4b91fabd2a2a
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/TrailingComma:
53
+ Style/TrailingCommaInLiteral:
50
54
  EnforcedStyleForMultiline: 'comma'
data/.travis.yml CHANGED
@@ -15,9 +15,11 @@ 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
22
+ - jruby-9.1.12.0
21
23
 
22
24
  matrix:
23
25
  allow_failures:
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
- 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
@@ -1,27 +1,7 @@
1
1
  module SimpleCov
2
2
  module Formatter
3
3
  class HTMLFormatter
4
- VERSION = "0.10.0"
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
@@ -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)
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,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.0
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: 2015-04-18 00:00:00.000000000 Z
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.4.5
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: []