raykit 0.0.409 → 0.0.412

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: d8f7e52c9cc62476d6ecd1aed0414d1d720d0f54448de9a1f9c9cd943a2f70be
4
- data.tar.gz: 29d78403fddda4990324221d261b8bdd8f95a38c3ec88dc9a8469cca916edab0
3
+ metadata.gz: '09ad0c5e17f7ed926b4f2b4b9775c31bb061344c3f4490dcddecafc5fc834048'
4
+ data.tar.gz: 14e8599a69c31681007ca35bb8960c2048af5eaae63e7455844499fc15686e0a
5
5
  SHA512:
6
- metadata.gz: c438f5bbddb73398b6ee47adefb8a232c95d537bf8018e40e37560737ba5c35103579b9cb3bc6d52d3f4aa5a718604c87c7c388d35fe6f8aa2edfaa37f8a5115
7
- data.tar.gz: 0f6154bcc6ce9dfb1ff9f44f6c92fd3f5913174c1a0843b3ec649d94156dad10f12ca3f2b3b43abdb4656322ef496a1c238047f01c976d83e54cb6dd04988377
6
+ metadata.gz: '09d9ee17eb3848f70c7dddc62a409f1b2e1fa6100fa481ed2ee99ceaf6b8e68c37a8d143b9bb6180e3388249c62ee4e75c4be3431b52e262ab2d45d243f4d51f'
7
+ data.tar.gz: 73caf82f49b08d3fd90456ccf49bc9250e1670593a8939aaa29dc12d08cdf96fdbaed80e1f0302ae7d94415115f1cf5dc8432ef07a4060fe172316b2854dde17
@@ -204,7 +204,7 @@ module Raykit
204
204
  "#{format("%.0f", elapsed)}s"
205
205
  end
206
206
 
207
- def summary(show_directory = true)
207
+ def summary(show_directory = false)
208
208
  checkmark = "\u2713"
209
209
  # warning="\u26A0"
210
210
  error = "\u0058"
@@ -215,7 +215,8 @@ module Raykit
215
215
  puts "#{symbol} #{cmd} " + Rainbow("#{elapsed_str}").cyan
216
216
  puts Rainbow(" #{@directory}").cyan
217
217
  else
218
- puts "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} (#{elapsed_str})"
218
+ puts "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} " + Rainbow("#{elapsed_str}").cyan
219
+ #puts "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} (#{elapsed_str})"
219
220
  end
220
221
  self
221
222
  end
@@ -263,6 +264,14 @@ module Raykit
263
264
  self
264
265
  end
265
266
 
267
+ def log_to_file(filename)
268
+ File.delete(filename) if File.exists?(filename)
269
+ File.open(filename, "w") { |f|
270
+ f.puts output
271
+ f.puts error
272
+ }
273
+ end
274
+
266
275
  def to_hash
267
276
  hash = {}
268
277
  hash[:command] = @command
data/lib/raykit/log.rb CHANGED
@@ -55,14 +55,14 @@ module Raykit
55
55
  end
56
56
 
57
57
  def self.show_table(symbols)
58
- max_name_width = 10
59
- max_value_width = 10
58
+ max_name_width = 0
59
+ max_value_width = 0
60
60
  symbols.each { |s|
61
61
  nvp = name_value_pair(s, binding)
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_name_width)
65
+ max_value_width = value.length if (value.length > max_value_width)
66
66
  }
67
67
  header = " =".ljust(max_name_width + max_value_width + 5, "=")
68
68
  puts header
@@ -76,11 +76,3 @@ module Raykit
76
76
  end
77
77
  end
78
78
  end
79
-
80
- #def show(symbol)
81
- # show_binding(symbol, binding)
82
- #end
83
-
84
- #def show_binding(symbol, the_binding)
85
- # show_value symbol.to_s, eval(symbol.to_s, the_binding)
86
- #end
@@ -245,7 +245,7 @@ module Raykit
245
245
  end
246
246
 
247
247
  def commit_message_filename
248
- warn "[DEPRECATION] 'commit_message_filename' is deprectated."
248
+ warn "[DEPRECATION] 'commit_message_filename' is deprecated."
249
249
  @commit_message_filename
250
250
  end
251
251
 
data/lib/raykit.rb CHANGED
@@ -38,6 +38,14 @@ if defined?(RAYKIT_GLOBALS)
38
38
  Raykit::TopLevel.run(command, false)
39
39
  end
40
40
 
41
+ def make(artifact, command)
42
+ if (File.exists?(artifact))
43
+ puts " #{artifact} exists"
44
+ else
45
+ run("conan create . -pr:b=vs2022_x86_Release -pr:h=vs2022_x86_Release")
46
+ end
47
+ end
48
+
41
49
  def start_task(task_name)
42
50
  Raykit::Log.start_task(task_name)
43
51
  end
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.409
4
+ version: 0.0.412
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-26 00:00:00.000000000 Z
11
+ date: 2022-08-30 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.2.22
148
+ rubygems_version: 3.3.7
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: ruby gem to support rake ci/cd tasks