simplecov-console 0.9.0 → 0.9.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 +4 -4
- data/VERSION +1 -1
- data/lib/simplecov-console.rb +3 -2
- data/simplecov-console.gemspec +3 -3
- data/test/test_simplecov-console.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bb7e11c42fb65f0946870622b11a55ab39bb0eba3aa8cfc16da3d18be8fa48e
|
4
|
+
data.tar.gz: 433b3c37567470bb280384d28c48a6e9fc04916fb9f74ce451c3f77316d4b130
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 837d50087a4744ecfcbfb1086ad425573a2ba151da649c529ed379340cb0720ad27824b3c26d4a9fdfadb91bfa464e9c8036029ca62991919019a9dc658b4702
|
7
|
+
data.tar.gz: 7f104c87f947046cf75996ceec687684aee3466c0eb8c86074b7a18185142a14bcff96d7565bec1987f5ad75e3425923507c0fbf4ff0ff1e7d7766ec47f179cc
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.1
|
data/lib/simplecov-console.rb
CHANGED
@@ -153,8 +153,9 @@ class SimpleCov::Formatter::Console
|
|
153
153
|
end
|
154
154
|
end
|
155
155
|
|
156
|
-
|
157
|
-
|
156
|
+
max_lines = SimpleCov::Formatter::Console.max_lines
|
157
|
+
if max_lines > 0 && group_str.size > max_lines then
|
158
|
+
# Show at most N missing groups of lines
|
158
159
|
group_str = group_str[0, SimpleCov::Formatter::Console.max_lines] << "..."
|
159
160
|
end
|
160
161
|
|
data/simplecov-console.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: simplecov-console 0.9.
|
5
|
+
# stub: simplecov-console 0.9.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "simplecov-console".freeze
|
9
|
-
s.version = "0.9.
|
9
|
+
s.version = "0.9.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Chetan Sarva".freeze]
|
14
|
-
s.date = "2021-01
|
14
|
+
s.date = "2021-02-01"
|
15
15
|
s.description = "Simple console output formatter for SimpleCov".freeze
|
16
16
|
s.email = "chetan@pixelcop.net".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -61,6 +61,10 @@ class TestSimplecovConsole < MiniTest::Test
|
|
61
61
|
Line.new(3), Line.new(5)]
|
62
62
|
expected_result = ["1-3", "..."]
|
63
63
|
assert_equal expected_result, @console.missed(missed_lines)
|
64
|
+
|
65
|
+
SimpleCov::Formatter::Console.max_lines = 3
|
66
|
+
expected_result = ["1-3", "5"]
|
67
|
+
assert_equal expected_result, @console.missed(missed_lines)
|
64
68
|
end
|
65
69
|
|
66
70
|
def test_table_output
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplecov-console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chetan Sarva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|