raykit 0.0.355 → 0.0.358

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: 96c8c452acacbbf24b902cdc0cb3cd92f0fc721f7943ca9bcee8ff9e677d32a7
4
- data.tar.gz: bfabf4afdfefe171f2439c1d472d024f286ad881d1682e5928ee35a7261f37c1
3
+ metadata.gz: 23529e714f83532e1e4ff1da5fe6d35a1712d10ba9d17e3aa23e48d1ed8aaeb9
4
+ data.tar.gz: a41ffbf448ca4994bcef5688bb27a50a391bf7263bf84441b199f93455819518
5
5
  SHA512:
6
- metadata.gz: 876b22fd0ca5fda5b9c043728dea408dc3c16a9ce4493b9ddc49735177d5df54d4212ab5e792ca910d9fea8a37eb77e0cd4db5035f53cf74c367e540e5a67335
7
- data.tar.gz: 1c846ff397d12ace2a2714b8a6f7c55ea8f69d02a4baecaedd05cde06b7f1f48e4b4562e953de16e34ad9fb2fd451f1dc0b1f9275ff9ffbdf581b46839baaa0e
6
+ metadata.gz: 6d97d02c94292fecf94c6e098bf1a39bbbc9c332b785f2579cfabef226297a433fe2440fc0624b90a8ff7780fc88049d3b6006f7c08b93ace83869335309ee2d
7
+ data.tar.gz: 1892a79dfe5733bb8f56bef4e931a94545b0c7cf4adafe47a64eb922b0798133c9d26b196433b774587a271dc943b6edda5174b94cd88b77ea719fc6b7b07058
@@ -36,8 +36,8 @@ module Raykit
36
36
  def self.get_dev_dir(name)
37
37
  dir = Pathname.new("#{Environment.root_dir}/#{name}")
38
38
  dir.mkpath
39
- if(dir.to_s.include?("https:") || dir.to_s.include?("http:"))
40
- dir.to_s.gsub("https://", ".").gsub("http://",".").gsub("//", "/")
39
+ if (dir.to_s.include?("https:") || dir.to_s.include?("http:"))
40
+ dir.to_s.gsub("https://", ".").gsub("http://", ".").gsub("//", "/")
41
41
  else
42
42
  dir
43
43
  end
@@ -10,7 +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
+ "2022/Professional/Msbuild/Current/Bin",
14
14
  "2019/Enterprise/MSBuild/Current/Bin",
15
15
  "2019/Professional/MSBuild/Current/Bin",
16
16
  "2019/Community/MSBuild/Current/Bin",
@@ -0,0 +1,13 @@
1
+ module Raykit
2
+ class NUnit
3
+ def self.nunit3console_path(version)
4
+ # C:\Users\lparslow\.nuget\packages\nunit.consolerunner\3.15.0\tools
5
+ path="#{Environment.home_dir}/.nuget/packages/nunit.consolerunner/#{version}/tools"
6
+ if Dir.exists?(path)
7
+ path
8
+ else
9
+ ""
10
+ end
11
+ end
12
+ end
13
+ end
@@ -294,15 +294,11 @@ module Raykit
294
294
  if !cmd.exitstatus.nil? && cmd.exitstatus.zero?
295
295
  else
296
296
  # display error details
297
- #puts cmd.output
297
+ puts cmd.output
298
+ $stderr.puts cmd.error
298
299
  if quit_on_failure
299
- abort cmd.error
300
- else
301
- puts cmd.error
300
+ abort
302
301
  end
303
-
304
- #puts
305
- #abort "#{Rainbow(elapsed_str).red.bright} #{Rainbow(cmd.command).white}" if quit_on_failure
306
302
  end
307
303
  cmd.save
308
304
  cmd
data/lib/raykit/zip.rb CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  require "zip"
3
2
 
4
3
  module Raykit
@@ -54,7 +53,7 @@ module Raykit
54
53
  #f.puts(fr.read)
55
54
  fr.close()
56
55
  f.close()
57
- count=count+1
56
+ count = count + 1
58
57
  }
59
58
  end
60
59
  zipfile.close
data/lib/raykit.rb CHANGED
@@ -24,6 +24,7 @@ module Raykit
24
24
  end
25
25
  end
26
26
 
27
+ RAYKIT_GLOBALS=true
27
28
  if defined?(RAYKIT_GLOBALS)
28
29
  def run(command, quit_on_failure = true)
29
30
  Raykit::TopLevel.run(command, quit_on_failure)
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.355
4
+ version: 0.0.358
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-04-04 00:00:00.000000000 Z
11
+ date: 2022-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,6 +107,7 @@ files:
107
107
  - lib/raykit/logging.rb
108
108
  - lib/raykit/msbuild.rb
109
109
  - lib/raykit/nugetpackage.rb
110
+ - lib/raykit/nunit.rb
110
111
  - lib/raykit/project.rb
111
112
  - lib/raykit/rake.rb
112
113
  - lib/raykit/runner.rb