raykit 0.0.383 → 0.0.386

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: b34bcd101a1b49102fb38240c82cdd09ca3193789f1d88311bc7abba30aac863
4
- data.tar.gz: e17169d04531720df713e5bd9e187b8fe0c69e26df7ff3bf0b670ebbfa840243
3
+ metadata.gz: 1da58419ce9241c1c998edff6b3ce3b442e81d178abfe1ea5c0ad3d9ba2f4025
4
+ data.tar.gz: 561c8366933b6a1ddef0b6cd9d5b81f68faf6fbaa67a9ee0ebe81e0aa84bb49d
5
5
  SHA512:
6
- metadata.gz: a974d93f7957a69fbe2e5ca7d74e7701504c73878b2c363f67bb717bc3ce60204aa2231d93a5f9cfa5aae8e495fa6cad3802eda99f0a6a505de16812367384a3
7
- data.tar.gz: 20635a7231a86a2ffbf3e2eb1b009405ca48854ae4d1799c1458ef364763148c2f6c1ff72eb228827726eacee5a43bc6d18737f8b36fb7590b06b38911aa5eec
6
+ metadata.gz: e2eea61a60852c93666a6bdacd475f62a478c2257cda7340e7bb239607737f8e01acbe4257ad680beb62a2c289a206e00fbbf95ec305d29a02af47424959d2a5
7
+ data.tar.gz: 7ff7429d6e742410ca3d5d4deb7880da26dbad640a6aa4e13df5c23340bd088c44dc6367f9e641d55fab659e5cf3e6e8e3c6ba769f889accde714b32294606a9
@@ -63,6 +63,7 @@ module Raykit
63
63
  @output, @error, process_status = Open3.capture3(@command)
64
64
  @exitstatus = process_status.exitstatus
65
65
  else
66
+ # =================================================
66
67
  #puts "@timeout is #{@timeout}"
67
68
  Open3.popen3(@command, chdir: @directory) do |_stdin, stdout, stderr, thread|
68
69
  tick = 1
@@ -92,6 +93,8 @@ module Raykit
92
93
  @exitstatus = thread.value.exitstatus
93
94
  end
94
95
  end
96
+
97
+ # =================================================
95
98
  end
96
99
  @elapsed = timer.elapsed
97
100
  if @logging_enabled
@@ -187,7 +190,7 @@ module Raykit
187
190
  symbol = Rainbow(error.encode("utf-8")).red if @exitstatus != 0
188
191
  cmd = "#{Rainbow(SECRETS.hide(@command)).yellow}"
189
192
  if show_directory
190
- puts "#{symbol} #{cmd} " + Rainbow("#{elapsed_str}").cyan #(#{@directory},#{elapsed_str})"
193
+ puts "#{symbol} #{cmd} " + Rainbow("#{elapsed_str}").cyan
191
194
  puts Rainbow(" #{@directory}").cyan
192
195
  else
193
196
  puts "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} (#{elapsed_str})"
@@ -202,6 +205,7 @@ module Raykit
202
205
  end
203
206
 
204
207
  def details
208
+ puts "exit_code: " + @exitstatus.to_s
205
209
  if @output.length > 0
206
210
  @output.lines.each do |line|
207
211
  puts " " + line
@@ -8,7 +8,7 @@ module Raykit
8
8
  Dir.chdir(source_dir) do
9
9
  run("candle #{File.basename(wxs_file)}")
10
10
  run("light #{name}.wixobj")
11
- FileUtils.cp("#{wxs_basename}.msi", msi_filename)
11
+ FileUtils.cp("#{name}.msi", msi_filename)
12
12
  raise "#{msi_filename} does not exist" if !File.exists?(msi_filename)
13
13
  File.delete("#{name}.wixobj")
14
14
  end
@@ -294,8 +294,9 @@ module Raykit
294
294
  if !cmd.exitstatus.nil? && cmd.exitstatus.zero?
295
295
  else
296
296
  # display error details
297
- puts cmd.output
298
- $stderr.puts cmd.error
297
+ cmd.details
298
+ #puts cmd.output
299
+ #$stderr.puts cmd.error
299
300
  if quit_on_failure
300
301
  abort
301
302
  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.383
4
+ version: 0.0.386
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-06-08 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler