raykit 0.0.393 → 0.0.396

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: 3ed8ea62a100da502d4d7672b9544d4fe4431f1708d753652be4f51959c7e67e
4
- data.tar.gz: 3285ef894669b24bc50a1ccfc548482353072f82b32aa790fa4918a231717ca2
3
+ metadata.gz: 48a71dd6e3d03cdcb2c31f313ab389582adbf53a5f21eaa5fa48d855fca53fb7
4
+ data.tar.gz: 7c21f2018f8bff499ae5e04f9035557346ffc434708cd3047efc4ff3775cd712
5
5
  SHA512:
6
- metadata.gz: 61bfd942a697cbcd46d84da92419bef5bf2774e16458fdacde63cfbb473eac9fb498dbe39a362163e705cb63648936e937e1daf81a38e188173054bac54bbd69
7
- data.tar.gz: eee22b3eeefaf2549e83f6c40183f62019cfcf1af98fba54dbaa00956d3eb8421c4a81d30ae6a38f289addc4c1b5430fb04850e6fe5e084e19248da562967874
6
+ metadata.gz: ab1bd5534253f8178c9cee15c130b39340b15160f044f01eef30e6d0415b1a83b80f255451cbc6f2195bd78319971dd8038c769634de098c526ef112b5ae074d
7
+ data.tar.gz: a89ea7c2485a7bf28766d99e15c380dc9c88053d7e84e5dc50725389eebb434cb578dd3baae691e319e9642325eca788eae868dde2219bb82a5fa0cce9566d5b
@@ -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
@@ -145,9 +145,9 @@ module Raykit
145
145
  run("git clone #{url} #{make_dir}")
146
146
  cmd = 0
147
147
  Dir.chdir(make_dir) do
148
- #run("git tag").details
149
148
  run("git reset --hard #{commit_id}")
150
- cmd = run(command).details
149
+ FileUtils.rm_rf(".git")
150
+ cmd = run(command).details_on_failure
151
151
  end
152
152
  FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
153
153
  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.393
4
+ version: 0.0.396
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