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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53e09ddabf887642808fed3d5a33e25845827501
4
- data.tar.gz: ee00ac77e62ec5847c265cd93cf38f2bcd41cd29
3
+ metadata.gz: 1ebf2f818f1b5ac6cbca8abbc8a8b0a54c06be81
4
+ data.tar.gz: f5a77b1adaef9c03177ea177bf6239021722188f
5
5
  SHA512:
6
- metadata.gz: 087078526dd36889a765fe731cb5729c3769e37c4c7f8dd0ae4cb8ace375303368f799018995cd535c28fb417f992ad96634b8caeb7c11956cc64573af22603a
7
- data.tar.gz: 8761d06030bd7f63463112e6b9a86b71a3169e2e930e3d2e30dd084786f669aad53a6a4eea182fe7e63952747010a81ef57ac9f024afca6dca91788301be61d6
6
+ metadata.gz: f95df1082b4afa1b9bc854c3f903685a705a9e7a38edd05ba760fc5d484e573689243555d7e29ad2b146625c756609cd7628703c4bfa0556c4cd9e1109df8c5a
7
+ data.tar.gz: 3684c08111d533b362c3d08c83e5854b5e3335c2792cf3d2c8b39e8d5bf0a234d062c9e2c97742f3a91e5782e2186c46aeba7b7c3ac9f7c6cb4a9b1ee32730f1
@@ -1,3 +1,3 @@
1
1
  module SingleCov
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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
- ARGV.first =~ /:\d+\Z/
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.1
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-06-23 00:00:00.000000000 Z
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.4.5.1
42
+ rubygems_version: 2.5.1
43
43
  signing_key:
44
44
  specification_version: 4
45
45
  summary: Actionable code coverage.