single_cov 0.3.1 → 0.4.0

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: e87f2583894d4978df0608eb989093aec5758999
4
- data.tar.gz: 1a7658ef4d5d5894f34184d5a161eb1e29dee116
3
+ metadata.gz: e94ba7994d4acf9b1f6cf8a4b047dbf27930fad5
4
+ data.tar.gz: baaf1c8d556e7bf691717735fccef649c7680019
5
5
  SHA512:
6
- metadata.gz: 47b9f404689d38d8fd55d3f72ec1f42d33199b94988d1c4a61fed4cc1627d0d1681bfa67ff3af4291b727f582a8b4bdddb18b4f63137da5dd0758d8d12750a35
7
- data.tar.gz: 56e6707208c86cf014b76f73248354cc1061b19e6cb488cb209fdc6d292f2a13589387f3796e17e738cf766cb79312240c28cb2601514dc870a8cec1548186f5
6
+ metadata.gz: 0f4b3803c75cf6b6aa13fb1522ee4ca502209fe3e2f46446ba4f2c27a42d122324d57f63bec09b68a408f982d8d18cdcf9cd4cd8ffedfc0948a58172e735e72b
7
+ data.tar.gz: be086932ec36cfd1778731cdf96602995049a5a9c5c01868ef51b641818bdebdabeb99bf5b1b5d3ed2176f0101d458b4f525a785726591d327da8aa66fe840ba
data/lib/single_cov.rb CHANGED
@@ -122,8 +122,10 @@ module SingleCov
122
122
  end
123
123
 
124
124
  # do not record or verify when only running selected tests since it would be missing data
125
+ # either via option or via rails test runner which takes file:line
125
126
  def minitest_running_subset_of_tests?
126
- (ARGV & ['-n', '--name', '-l', '--line']).any?
127
+ (ARGV & ['-n', '--name', '-l', '--line']).any? ||
128
+ ARGV.first =~ /:\d+\Z/
127
129
  end
128
130
 
129
131
  def rspec_running_subset_of_tests?
@@ -1,3 +1,3 @@
1
1
  module SingleCov
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.1
4
+ version: 0.4.0
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-05-09 00:00:00.000000000 Z
11
+ date: 2016-05-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: michael@grosser.it