minitest-tagz 1.1.0 → 1.2.0

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: ae273911ca71a1549e9a3d7b8878559cf51035d2
4
- data.tar.gz: 9b0e9c6a9e336d7aca78a884622dcfaf1be5dda2
3
+ metadata.gz: 68552faddcbeae61654950da52867dd85e02897e
4
+ data.tar.gz: cf7ed2aede4f83c066de76ee72869a762d5e88e8
5
5
  SHA512:
6
- metadata.gz: 413b067f5f444b4a38ae58a1c69130beb7c8b2949547de989d04ae2e88f2184091155d74de282638d86a3dfb08d712c75ab9d11c85fef6cffff1e809a9f24c92
7
- data.tar.gz: 219c6782f038990ad77bcabbfb630d1d266114b328f9d0e40951c27472c75cab4514322a50325276512c69846c9068e3d30251722bc77b6425a8641bb5b33014
6
+ metadata.gz: 72e56e2db89004cb8b1bb75b74c27fd69831a38e2b106d200af3b5d648ae6d7f1750942c35664251012410b31992f39951dc10adbefb653328e8067462c9d6d9
7
+ data.tar.gz: 60caf289b8c4c1d3e20cad76f3277d55f3590a860f988d79448c115529e9df5b943d0915f04f578470b359f86cdfc5f252fe5add131134a249de762ea569847c
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Tagz
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
data/lib/minitest/tagz.rb CHANGED
@@ -39,7 +39,7 @@ module Minitest
39
39
  end
40
40
  end
41
41
  if should_skip_filter
42
- puts "Couldn't find any runnables with the given tag, running all runnables"
42
+ puts "Couldn't find any runnables with the given tag, running all runnables" if Tags.log_if_no_match?
43
43
  return super
44
44
  end
45
45
  end
@@ -190,17 +190,20 @@ module Minitest
190
190
 
191
191
  # Main extensions to Minitest
192
192
  class << self
193
- attr_accessor :chosen_tags, :run_all_if_no_match
193
+ attr_accessor :chosen_tags, :run_all_if_no_match, :log_if_no_match
194
194
 
195
195
  alias :run_all_if_no_match? :run_all_if_no_match
196
+ alias :log_if_no_match? :log_if_no_match
196
197
 
197
198
  # Create a master TagSet that you wish to test. You only
198
199
  # want to run tests with tags in this set
199
200
  # @param [Enumerable<Symbol>] tags - a list of tags you want to test
200
201
  # @param [Boolean] run_all_if_no_match - will run all tests if no tests are found with the tag
201
- def choose_tags(*tags, run_all_if_no_match: false)
202
+ # @param [Boolean] log_if_no_match - puts if no match specs found
203
+ def choose_tags(*tags, log_if_no_match: false, run_all_if_no_match: false)
202
204
  @chosen_tags = tags.map(&:to_sym)
203
205
  @run_all_if_no_match = run_all_if_no_match
206
+ @log_if_no_match = log_if_no_match
204
207
  end
205
208
 
206
209
  def declare_tag_assignment(owner, pending_tags)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-tagz
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Bodah
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-14 00:00:00.000000000 Z
11
+ date: 2015-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest