raykit 0.0.394 → 0.0.397

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: 423f13972fb0cca803412014494c77e7a1796f66b66e9435bc7d95c5299739e0
4
- data.tar.gz: bf009bd3b3428cc478f45e6e11427fefa4b48b8e6a8cdecd567564a8dbfb59b5
3
+ metadata.gz: b43924fe8e041e486bb2f38dedb619135cc43461db5ea3e633964422ffa734bb
4
+ data.tar.gz: ef79ee90906b8733fd63e31b47924498a5a382e446bbdc3b0a9e0c0bba759cec
5
5
  SHA512:
6
- metadata.gz: 29ec3ee454b9787bcc02cf4421409256704fe1f3d8310d77f5a1ac2fd2e636ae426f2d7276aa9f92cf0d74fa3a54eff2e1323d2f2bb03d3d3b0800c1e45f11a0
7
- data.tar.gz: 9ee193a50f8d5bbc7841eb09f64f2f92d121a6f49a63eb42bdfaf30faa4e1cf90911f6f682d1c5aca08566d5404f1cddbeee09274ca6da6cdec07b6093a7b9c9
6
+ metadata.gz: 1c6a2d58eaea4cfeaccd23f2b1769c93052dbe4b3b943869ce0c9d97400127506b18bddb39b830c96ec6148658737d0659bd0ff60a5840104a3acd75f99d38d0
7
+ data.tar.gz: aace594a79cf30503691ba373d1b9b35d47af3d519deefdc7c0b38099d084843f1d3715e305d916ef765e733991e3c6ae3ef6195e29b62765e5054616b193bad
@@ -73,9 +73,10 @@ module Raykit
73
73
  Kernel.select([stdout, stderr], nil, nil, tick)
74
74
  begin
75
75
  @output << stdout.read_nonblock(BUFFER_SIZE)
76
- @error << stderr.read_nonblock(BUFFER_SIZE)
76
+ #@error << stderr.read_nonblock(BUFFER_SIZE)
77
77
  rescue IO::WaitReadable
78
78
  rescue EOFError
79
+ #puts "rescue block entered"
79
80
  @exitstatus = thread.value.exitstatus
80
81
  until stdout.eof?
81
82
  @output << stdout.read_nonblock(BUFFER_SIZE)
@@ -85,6 +86,21 @@ module Raykit
85
86
  end
86
87
  break
87
88
  end
89
+
90
+ #begin
91
+ # @output << stdout.read_nonblock(BUFFER_SIZE)
92
+ # @error << stderr.read_nonblock(BUFFER_SIZE)
93
+ #rescue IO::WaitReadable
94
+ #rescue EOFError
95
+ # @exitstatus = thread.value.exitstatus
96
+ # until stdout.eof?
97
+ # @output << stdout.read_nonblock(BUFFER_SIZE)
98
+ # end
99
+ # until stderr.eof?
100
+ # @error << stderr.read_nonblock(BUFFER_SIZE)
101
+ # end
102
+ # break
103
+ #end
88
104
  end
89
105
  sleep 1
90
106
  if thread.alive?
@@ -208,6 +224,7 @@ module Raykit
208
224
  if @exitstatus != 0
209
225
  details
210
226
  end
227
+ self
211
228
  end
212
229
 
213
230
  def details
@@ -222,6 +239,7 @@ module Raykit
222
239
  puts " " + line
223
240
  end
224
241
  end
242
+ self
225
243
  end
226
244
 
227
245
  def to_markdown
@@ -147,7 +147,9 @@ module Raykit
147
147
  Dir.chdir(make_dir) do
148
148
  run("git reset --hard #{commit_id}")
149
149
  FileUtils.rm_rf(".git")
150
- cmd = run(command)
150
+ cmd = Raykit::Command.new(command)
151
+ cmd = cmd.run().details_on_failure
152
+ #cmd = run(command).details_on_failure
151
153
  end
152
154
  FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
153
155
  cmd
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.394
4
+ version: 0.0.397
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-07-04 00:00:00.000000000 Z
11
+ date: 2022-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubygems_version: 3.2.22
147
+ rubygems_version: 3.3.7
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: ruby gem to support rake ci/cd tasks