raykit 0.0.414 → 0.0.417

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: a0fd0e143714ba3d1861b2a5477df3c090d4af04291128312d58703517552dbb
4
- data.tar.gz: ce68d0b95084c638a24a05bfbb2fff8199b3759c88cbf8408260780feb8ec1ce
3
+ metadata.gz: 77913a7620aa8486c051c33b19dc45eeaaf251a8ce1414c81dd40ee81e6d43d9
4
+ data.tar.gz: 53145496305bb34cf9c673a37f4d5e9a65a1dfa7e47dbd5d1586ae18675e6240
5
5
  SHA512:
6
- metadata.gz: 3e961640f304b8018a4e5059925bd27e58e9dc5ed22194cc4f7825fd35e59b295bd12cdeb5d88a3bf16360b5308cc0e04f9271cb2e62ef3ad9af22ec847932b4
7
- data.tar.gz: 3465a03d27d14be459e9487b1bfe4c850d837ee7c8f05ebd79239ef2413d02f65b77a724d7be89835639c6475a646d5277a6f16f8255778c1a7fc37119b082b1
6
+ metadata.gz: 3d099b296b730d8de3f6efd892b2987031170517546062135ef94e32afdee222133b9784612e5544254342ed53e92bae7d9719b32066997bad22aa9441e4907b
7
+ data.tar.gz: 1f0436a062c9e41e64762a0a8c760b60c646e83205c901d0e011d42b4689895d5ebbe43ce8ed45031c150e3fea325e98bc2c2f51fa82153f60a71d3c3611d463
@@ -270,6 +270,7 @@ module Raykit
270
270
  f.puts output
271
271
  f.puts error
272
272
  }
273
+ self
273
274
  end
274
275
 
275
276
  def to_hash
data/lib/raykit/log.rb CHANGED
@@ -62,7 +62,9 @@ module Raykit
62
62
  name = nvp[0]
63
63
  value = nvp[1]
64
64
  max_name_width = name.length if (name.length > max_name_width)
65
- max_value_width = value.length if (value.length > max_value_width)
65
+ if (!value.nil?)
66
+ max_value_width = value.length if (value.length > max_value_width)
67
+ end
66
68
  }
67
69
  header = " =".ljust(max_name_width + max_value_width + 5, "=")
68
70
  puts header
data/lib/raykit.rb CHANGED
@@ -42,7 +42,11 @@ if defined?(RAYKIT_GLOBALS)
42
42
  if (File.exists?(artifact))
43
43
  puts " #{artifact} exists"
44
44
  else
45
- run(command)
45
+ cmd = run(command)
46
+ if (cmd.exitstatus != 0)
47
+ File.delete(artifact) if (File.exists?(artifact))
48
+ end
49
+ cmd
46
50
  end
47
51
  end
48
52
 
@@ -50,7 +54,11 @@ if defined?(RAYKIT_GLOBALS)
50
54
  if (File.exists?(artifact))
51
55
  puts " #{artifact} exists"
52
56
  else
53
- run(command).log_to_file(artifact)
57
+ cmd = run(command).log_to_file(artifact)
58
+ if (cmd.exitstatus != 0)
59
+ File.delete(artifact) if (File.exists?(artifact))
60
+ end
61
+ cmd
54
62
  end
55
63
  end
56
64
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.414
4
+ version: 0.0.417
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-30 00:00:00.000000000 Z
11
+ date: 2022-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.3.7
148
+ rubygems_version: 3.2.22
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: ruby gem to support rake ci/cd tasks