single_cov 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/single_cov/version.rb +1 -1
- data/lib/single_cov.rb +13 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ebf2f818f1b5ac6cbca8abbc8a8b0a54c06be81
|
4
|
+
data.tar.gz: f5a77b1adaef9c03177ea177bf6239021722188f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f95df1082b4afa1b9bc854c3f903685a705a9e7a38edd05ba760fc5d484e573689243555d7e29ad2b146625c756609cd7628703c4bfa0556c4cd9e1109df8c5a
|
7
|
+
data.tar.gz: 3684c08111d533b362c3d08c83e5854b5e3335c2792cf3d2c8b39e8d5bf0a234d062c9e2c97742f3a91e5782e2186c46aeba7b7c3ac9f7c6cb4a9b1ee32730f1
|
data/lib/single_cov/version.rb
CHANGED
data/lib/single_cov.rb
CHANGED
@@ -129,10 +129,21 @@ module SingleCov
|
|
129
129
|
end
|
130
130
|
|
131
131
|
# do not record or verify when only running selected tests since it would be missing data
|
132
|
-
# either via option or via rails test runner which takes file:line
|
133
132
|
def minitest_running_subset_of_tests?
|
133
|
+
# via direct option (ruby test.rb -n /foo/)
|
134
134
|
(ARGV & ['-n', '--name', '-l', '--line']).any? ||
|
135
|
-
|
135
|
+
|
136
|
+
# via testrbl or mtest or rails with direct line number (mtest test.rb:123)
|
137
|
+
(ARGV.first =~ /:\d+\Z/) ||
|
138
|
+
|
139
|
+
# via rails test which preloads mintest, removes ARGV and fills options
|
140
|
+
(
|
141
|
+
defined?(Minitest) &&
|
142
|
+
defined?(Minitest.reporter) &&
|
143
|
+
Minitest.reporter &&
|
144
|
+
(reporter = Minitest.reporter.reporters.first) &&
|
145
|
+
reporter.options[:filter]
|
146
|
+
)
|
136
147
|
end
|
137
148
|
|
138
149
|
def rspec_running_subset_of_tests?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: single_cov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: michael@grosser.it
|
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
39
|
version: '0'
|
40
40
|
requirements: []
|
41
41
|
rubyforge_project:
|
42
|
-
rubygems_version: 2.
|
42
|
+
rubygems_version: 2.5.1
|
43
43
|
signing_key:
|
44
44
|
specification_version: 4
|
45
45
|
summary: Actionable code coverage.
|