advance 0.4.8 → 0.4.10

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: 0dff13c708f480234a0e209cd4cedcfff790f180894447681a064e7973211412
4
- data.tar.gz: c27f9f4a5f20c1748df540106286cdad9fc6581cef7d26426dec3275ed671b2f
3
+ metadata.gz: 0b0306aaac120b4fe21e3152a03d020cecf5857b2087e73518a994ff7906b2f7
4
+ data.tar.gz: 890c13a999ab88173e3931cdcd759215b072b47fbad12fac42511a96af5a3239
5
5
  SHA512:
6
- metadata.gz: c2f4b67acf76dc75dbcc93724bdb05f60738ce1a6b16779d7f2ffed6f3bfe1759c4fea05ff726af83be0f6bec77f1888ecfd6214758d3efece44f30fdbe9d4f6
7
- data.tar.gz: aae16995c3cc409f4f51ad6bf53dae7cdfa4f834355f8debc87af806a87fbbf0548b58fae9c486da08de250c8c2e2047254a52ab6ccd98b89ecd9e4338ab0146
6
+ metadata.gz: 2c22b737e9a0104ebd6bbbae1bab4f02f5e3d2ae8d05f67e64fc60c933ee4f1e2270a6d742432170554b8c9c35e2959b723835b5a854155e53c477d4e2ca1bb9
7
+ data.tar.gz: 438c8dba215246ec3bb2e706dad88a079d031560db25c51ed16838a7110ce503540f6ae3e7a2494456070b0c1c1fc6f42358dad319991370c51a89d1e96fca51
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- advance (0.4.8)
4
+ advance (0.4.10)
5
5
  team_effort
6
6
 
7
7
  GEM
@@ -240,7 +240,7 @@ module Advance
240
240
  work_in_sub_dir(new_dir_name) do
241
241
  do_command command, env_is?("ADVANCE_VERBOSE_LOGGING", false)
242
242
  end
243
- do_command_wo_log "rm #{file_path}" if !env_is?("ADVANCE_SAVE_HISTORY", true)
243
+ do_command_wo_log("rm #{file_path}", false) if !env_is?("ADVANCE_SAVE_HISTORY", true)
244
244
  rescue
245
245
  puts "%%%% error while processing >>#{file_path}<<"
246
246
  raise
@@ -313,16 +313,20 @@ module Advance
313
313
  puts "#{YELLOW}#{command}#{RESET} " if feedback
314
314
  start_time = Time.now
315
315
  stdout, stderr, status = Open3.capture3(command)
316
- elapsed_time = Time.now - start_time
317
- File.open("log", "w") do |f|
318
- f.puts "%%% command: >#{command}<"
319
- f.puts "%%% returned status: >#{status}<"
320
- f.puts "%%% elapsed time: #{elapsed_time} seconds"
321
- f.puts "%%% stdout:"
322
- f.puts stdout
323
- f.puts "%%% stderr:"
324
- f.puts stderr
316
+
317
+ if env_is?("ADVANCE_LOG_FILES", true)
318
+ elapsed_time = Time.now - start_time
319
+ File.open("log", "w") do |f|
320
+ f.puts "%%% command: >#{command}<"
321
+ f.puts "%%% returned status: >#{status}<"
322
+ f.puts "%%% elapsed time: #{elapsed_time} seconds"
323
+ f.puts "%%% stdout:"
324
+ f.puts stdout
325
+ f.puts "%%% stderr:"
326
+ f.puts stderr
327
+ end
325
328
  end
329
+
326
330
  if !status.success?
327
331
  raise "step #{$step} failed with #{status}\n#{stderr}"
328
332
  end
@@ -1,3 +1,3 @@
1
1
  module Advance
2
- VERSION = "0.4.8"
2
+ VERSION = "0.4.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: advance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - janemacfarlane