raykit 0.0.349 → 0.0.352

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e09dbb3d47878b91993973f35bcdfa4a4822f20cb8247819f4b86e9744085e5
4
- data.tar.gz: 7227c1158ad3262cd33d3806153e40df38387650236c342d921412d211d1cd42
3
+ metadata.gz: 84c294e06095640a9c67d4b98633907cf4dbb03d0f5bb9a521f7609045542fa7
4
+ data.tar.gz: a36aa4be6042e998937805cdfa1fd68b3e90e9249481d6070710d4c6330a7bee
5
5
  SHA512:
6
- metadata.gz: fa1d4cdc546a89bad6ab1dae3212c12c20987630ec491dadd681b49d8b73b8fcc68926a4b03bdb36a72d89e7bc440c73e65978a76f42355cf948a4400f8df68f
7
- data.tar.gz: 0dc249431cf251ced19ea6612cd9271ca37d98f7346d3f50c9b347c2484c43f939ff5f6b1eb5048d73911e39b822e47848e3c1e58e75777921a13447508c3c1f
6
+ metadata.gz: 3eb7d185740c2b2ed5329158615f14ecf3f9921b4a4c1ed66700290c04d460a78933e823320face47d6328e20b6851dbc0d14697086bc98868278667cc8875c2
7
+ data.tar.gz: ffd783e2598d1eb313bbab87e9247732da6d5964365b719c0ff7b53eb13281945fb307950a92c9e7fe8d8e2c9c78814b46918fa48a70e95cb7b23513fe54ea5d
@@ -63,7 +63,7 @@ module Raykit
63
63
  @output, @error, process_status = Open3.capture3(@command)
64
64
  @exitstatus = process_status.exitstatus
65
65
  else
66
- puts "@timeout is #{@timeout}"
66
+ #puts "@timeout is #{@timeout}"
67
67
  Open3.popen3(@command, chdir: @directory) do |_stdin, stdout, stderr, thread|
68
68
  tick = 1
69
69
  pid = thread.pid
@@ -10,6 +10,7 @@ module Raykit
10
10
  # C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin
11
11
  def self.msbuild_path
12
12
  ["2022/Community/Msbuild/Current/Bin",
13
+ "2022/Professional/Msbuild/Current/Bin",
13
14
  "2019/Enterprise/MSBuild/Current/Bin",
14
15
  "2019/Professional/MSBuild/Current/Bin",
15
16
  "2019/Community/MSBuild/Current/Bin",
@@ -6,7 +6,7 @@ RAKE_DIRECTORY = Rake.application.original_dir
6
6
 
7
7
  module Raykit
8
8
  class Project
9
- attr_accessor :name, :timer, :verbose, :target
9
+ attr_accessor :name, :timer, :verbose, :target, :timeout
10
10
 
11
11
  @directory
12
12
  @version
@@ -18,6 +18,7 @@ module Raykit
18
18
  # @commit_message_filename
19
19
 
20
20
  def initialize
21
+ @timeout = 1000 * 60 * 15
21
22
  @verbose = false
22
23
  @timer = Raykit::Timer.new
23
24
  @remote = ""
@@ -286,14 +287,14 @@ module Raykit
286
287
  if command.is_a?(Array)
287
288
  command.each { |subcommand| run(subcommand, quit_on_failure) }
288
289
  else
289
- cmd = Command.new(command).set_timeout(0).run
290
+ cmd = Command.new(command).set_timeout(@timeout).run
290
291
  cmd.summary
291
292
  cmd.save
292
293
  elapsed_str = Timer.get_elapsed_str(cmd.elapsed, 0)
293
294
  if !cmd.exitstatus.nil? && cmd.exitstatus.zero?
294
295
  else
295
296
  # display error details
296
- puts cmd.output
297
+ #puts cmd.output
297
298
  puts cmd.error
298
299
  puts
299
300
  abort "#{Rainbow(elapsed_str).red.bright} #{Rainbow(cmd.command).white}" if quit_on_failure
data/lib/raykit/vstest.rb CHANGED
@@ -3,7 +3,8 @@
3
3
  module Raykit
4
4
  class VsTest
5
5
  def self.vstest_path
6
- ["2019/Community/Common7/IDE/CommonExtensions/Microsoft",
6
+ ["2022/Community/Common7/IDE/CommonExtensions/Microsoft/TestWindow",
7
+ "2019/Community/Common7/IDE/CommonExtensions/Microsoft",
7
8
  "2019/Professional/Common7/IDE/Extensions/TestPlatform",
8
9
  "2019/Community/Common7/IDE/Extensions",
9
10
  "2019/Community/Common7/IDE/Extensions/TestPlatform",
data/lib/raykit/zip.rb CHANGED
@@ -51,14 +51,14 @@ module Raykit
51
51
  files_to_archive.each do |file|
52
52
  zipfile.get_output_stream(file) { |f|
53
53
  fr = ::File.open("#{@source_dir}/#{file}", "rb")
54
- f.puts(fr.read)
54
+ #f.puts(fr.read)
55
55
  fr.close()
56
56
  f.close()
57
57
  count=count+1
58
58
  }
59
59
  end
60
60
  zipfile.close
61
- puts " added " << count.to_s << " files to " << @filename
61
+ puts " added " << count << " files to " << @filename
62
62
  }
63
63
  end
64
64
  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.349
4
+ version: 0.0.352
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-03-09 00:00:00.000000000 Z
11
+ date: 2022-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.9'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubyzip
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.3'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.3'
69
83
  description: supports common ci/cd development tasks
70
84
  email: lou.parslow@gmail.com
71
85
  executables:
@@ -125,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
139
  - !ruby/object:Gem::Version
126
140
  version: '0'
127
141
  requirements: []
128
- rubygems_version: 3.2.22
142
+ rubygems_version: 3.3.7
129
143
  signing_key:
130
144
  specification_version: 4
131
145
  summary: ruby gem to support rake ci/cd tasks