raykit 0.0.410 → 0.0.413

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: ed5d476eb1b2a4f738e1529f476454f0c60369b92b992b5bdb6e46f38e4432dd
4
- data.tar.gz: a20a5f7f21e6204faf29a37dd857ef8917a0024de811a86c97c739a1b86da4c4
3
+ metadata.gz: c80920bdacf73e47e03c2c21000dca436fe19cabdb9a9136e8c5661fa548d85b
4
+ data.tar.gz: 2b8305db3c13dfa56b40ded98118e7a7878ee42e55d73cc34ef82f59fef7c31c
5
5
  SHA512:
6
- metadata.gz: 28ac7fc71c1a027e943fe58c98b4467562601e954da4b1a3458a1ab9818f945df0680714ea4c0876d10265f3d0a6e7c1521e2fd2369854d44eac8e5b6d08bd71
7
- data.tar.gz: 2f1953a4763a6481717c1d5c4234c6fc14c65eadfc0cc5ebc5d8ea35f5636a2d3b92714f530899cbf7469b82df7b4308572c036dbbbd27c89bf9bd391c78bb56
6
+ metadata.gz: 67dd3b1cf22be2087d3a810433411fbf8136841d3c20793d69e00aa5fee5569fa727d826d1ef88d637639deff5384a7dc1ad457a729b17c601b8727c6f30611a
7
+ data.tar.gz: dafecff8cc99a28c248e69e365a9b49d26e566b982f1fc8b2e09b244c01254b25fc1677ee5eaf09f264cbe13c88f5de644e6f2c952e27ffb3630c013aaaf539e
@@ -264,6 +264,14 @@ module Raykit
264
264
  self
265
265
  end
266
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
+
267
275
  def to_hash
268
276
  hash = {}
269
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(command)
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.410
4
+ version: 0.0.413
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