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 +4 -4
- data/lib/raykit/command.rb +11 -2
- data/lib/raykit/log.rb +3 -11
- data/lib/raykit/project.rb +1 -1
- data/lib/raykit.rb +8 -0
- 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: '09ad0c5e17f7ed926b4f2b4b9775c31bb061344c3f4490dcddecafc5fc834048'
|
4
|
+
data.tar.gz: 14e8599a69c31681007ca35bb8960c2048af5eaae63e7455844499fc15686e0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09d9ee17eb3848f70c7dddc62a409f1b2e1fa6100fa481ed2ee99ceaf6b8e68c37a8d143b9bb6180e3388249c62ee4e75c4be3431b52e262ab2d45d243f4d51f'
|
7
|
+
data.tar.gz: 73caf82f49b08d3fd90456ccf49bc9250e1670593a8939aaa29dc12d08cdf96fdbaed80e1f0302ae7d94415115f1cf5dc8432ef07a4060fe172316b2854dde17
|
data/lib/raykit/command.rb
CHANGED
@@ -204,7 +204,7 @@ module Raykit
|
|
204
204
|
"#{format("%.0f", elapsed)}s"
|
205
205
|
end
|
206
206
|
|
207
|
-
def summary(show_directory =
|
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 =
|
59
|
-
max_value_width =
|
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 >
|
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
|
data/lib/raykit/project.rb
CHANGED
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.
|
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-
|
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.
|
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
|