runfile-tasks 0.5.4 → 0.5.6

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
  SHA256:
3
- metadata.gz: 34ce3da6faaa2115da6a60aef9d21d2e2f7b9ab0ffd83450f618bb90931bb2a2
4
- data.tar.gz: a83f6488be48514933b7d24e8b5b1c8c1743b62dc17627176432e572a2913486
3
+ metadata.gz: c5050140d45af54d102dbd550900e5e9bb19de5b3d58fff5fcc066520039864e
4
+ data.tar.gz: d97a46a1ed16c4003373fbde904c804bc50c5aca93d82e268a38f7204e741774
5
5
  SHA512:
6
- metadata.gz: 75245b3e4dc36ee84bd65ad5c4c8c56e24366fe51bcdeeb7bdf9b4f2a277c5e463d6e71fd96f8d044c72433fd739b6b5fe85e6691324604edb7cb70569b99b44
7
- data.tar.gz: f1fdafb4231b39e03d66bd5017d8f1e3d6c05adb75dbaae5f82aa33580be938953312848f426fb7153c05414e1e580afb1d67419048f309d044eb8ee7f310125
6
+ metadata.gz: a0378520edc27c5a4d9a7475171ab36c31ad23610ad973dec5aad33670868e62a8b2bb503a889eb587fe1ddf6005d0b04595c74eb269a6a8719c8f0834aadfb5
7
+ data.tar.gz: 3094c461c01e4622d9699f7a9e0d545214bcbc9b154187e978e198e8633906a472da06e069b32edf7dddb3e20b50aff51590ed1c97c459f838c07015dc15bafe
@@ -1 +1 @@
1
- require 'runfile-tasks/docker/docker'
1
+ require 'runfile-tasks/docker/docker'
@@ -35,7 +35,7 @@ module RunfileTasks
35
35
  puts "r`FAIL: docker version is #{docker_version}, expected #{image_version}`".in_color
36
36
  exit 1
37
37
  else
38
- puts "g`PASS: docker version is #{docker_version}`"
38
+ puts "g`PASS: docker version is #{docker_version}`".in_color
39
39
  end
40
40
  end
41
41
 
@@ -49,6 +49,8 @@ module RunfileTasks
49
49
  action :push, :p do |args|
50
50
  puts "g`Pushing docker image #{image_name}`".in_color
51
51
  system "docker push #{image_name}"
52
+
53
+ puts "g`Pushing docker image #{image_name}:#{image_version}`".in_color
52
54
  system "docker push #{image_name}:#{image_version}"
53
55
  end
54
56
 
@@ -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.4"
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.4
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