runfile-tasks 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/runfile-tasks/testing/rspec.rb +6 -2
- data/lib/runfile-tasks/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5050140d45af54d102dbd550900e5e9bb19de5b3d58fff5fcc066520039864e
|
4
|
+
data.tar.gz: d97a46a1ed16c4003373fbde904c804bc50c5aca93d82e268a38f7204e741774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0378520edc27c5a4d9a7475171ab36c31ad23610ad973dec5aad33670868e62a8b2bb503a889eb587fe1ddf6005d0b04595c74eb269a6a8719c8f0834aadfb5
|
7
|
+
data.tar.gz: 3094c461c01e4622d9699f7a9e0d545214bcbc9b154187e978e198e8633906a472da06e069b32edf7dddb3e20b50aff51590ed1c97c459f838c07015dc15bafe
|
@@ -14,11 +14,14 @@ module RunfileTasks
|
|
14
14
|
command: 'rspec'
|
15
15
|
}.merge opts
|
16
16
|
|
17
|
-
|
17
|
+
usage_text = "[NAME] [TAG] [--next]"
|
18
|
+
usage opts[:action] == :global ? usage_text : "#{opts[:action]} #{usage_text}"
|
18
19
|
help "Run all specs or a single spec file matching a regex. You can provide a tag to run only specific tests. If you wish to provide a tag only, without a file pattern, simply prefix the tag with a colon, like 'run spec :focus'"
|
20
|
+
option "-n --next", "Run with --next-failure"
|
19
21
|
action opts[:action].to_sym do |args|
|
20
22
|
file = args['NAME']
|
21
|
-
tag
|
23
|
+
tag = args['TAG']
|
24
|
+
next_failure = args['--next']
|
22
25
|
|
23
26
|
if file and file[0] == ':'
|
24
27
|
tag = file
|
@@ -39,6 +42,7 @@ module RunfileTasks
|
|
39
42
|
cmd = "#{opts[:command]}"
|
40
43
|
end
|
41
44
|
cmd = "#{cmd} --tag #{tag}" if tag
|
45
|
+
cmd = "#{cmd} --next-failure" if next_failure
|
42
46
|
puts "g`Running:` p`#{cmd}`".in_color
|
43
47
|
exec cmd
|
44
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runfile-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: runfile
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.3.
|
72
|
+
rubygems_version: 3.3.26
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Runfile tasks collection
|