runfile-tasks 0.5.5 → 0.5.6

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
  SHA256:
3
- metadata.gz: 2a5fad61f13a335cf1230f07c8d9a3f5e9184de8ff31b73c3cf2491c86201c58
4
- data.tar.gz: 8f86100db2424cc7e91c77de8a9246901725b6892d94ca69a52576d99db3b708
3
+ metadata.gz: c5050140d45af54d102dbd550900e5e9bb19de5b3d58fff5fcc066520039864e
4
+ data.tar.gz: d97a46a1ed16c4003373fbde904c804bc50c5aca93d82e268a38f7204e741774
5
5
  SHA512:
6
- metadata.gz: 56fb6589a54059c054e532f398e7626852d29302e50656d208e39b3de8a26d896fc062156679daf559592de1d3467daf4cb3ace37e4f345ae9872d303f4e8db7
7
- data.tar.gz: 56915a3b25bd9e6eb8262f624f28aedc434e0dfa72f651017734399cddec43e67a42412a8d9bb1740652234d611e17ea364dcf6d1b059b278fd9037454f4720c
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
- usage opts[:action] == :global ? "[NAME] [TAG]" : "#{opts[:action]} [NAME] [TAG]"
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 = args['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
@@ -1,3 +1,3 @@
1
1
  module RunfileTasks
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  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.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-05-15 00:00:00.000000000 Z
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.3
72
+ rubygems_version: 3.3.26
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Runfile tasks collection