raykit 0.0.356 → 0.0.359

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: 970051f5c9d31324b069f975e5e82e848bdb3a2c4979b1d5dcb377140d1423bd
4
- data.tar.gz: b421db4b69c0517e222e5c0e432b59fe245b6e214f9688044c348136b277eb73
3
+ metadata.gz: b72802c7ec5a1b0f892e79a2c51dfbf8f805579fd0172664863b2e43988dee2b
4
+ data.tar.gz: ba6c23059ccd6acd00451c0b43a9e8f34fcdc65bd31b9530bbae2dc542e1b3cf
5
5
  SHA512:
6
- metadata.gz: be8c067cfd59687b092f1f1c892ff618cfb53061c2adfdaf8f98ecaa69618e00641553e029a02705871422599ddebf3597ee8a78a218780b93544a7a9ed8946a
7
- data.tar.gz: 0cf5624255668b456ab3d41230846374d3fa16084eec4689709dad8e7a8e04c10e4fa57ec3dcfadbe63b62ac08d04e1f4bf82178b8ad8cb5ce64835688acd7e4
6
+ metadata.gz: 81bbdc0c10a0a10e32699332e41f877f1a7482b7a2ad9598ecb3d290f9b5eb5b24354b67d0f2487b5c45a0c9cb58babc94701646dbd4f045aa257101cfbaf810
7
+ data.tar.gz: 93c36d88d395acfe38b1c947536f8dbc59936dd24cdf8738c2af8c59f5e5074a9a5a5fced8c0982582eb45dab599e5c7e438dd9f9e1e507f8ba273914baf1a1b
@@ -101,6 +101,18 @@ module Raykit
101
101
  end
102
102
  false
103
103
  end
104
+
105
+ def self.work(url,cmd)
106
+ #Raykit::Git::Repository::work("https://gitlab.com/nuget-cs/roam.git","rake");
107
+ repo = Raykit::Git::Repository.new(url)
108
+ work_dir = repo.get_dev_dir("work")
109
+ show_value "work_dir", "#{work_dir}"
110
+ repo.clone(work_dir) if !Dir.exist?(work_dir)
111
+ Dir.chdir(work_dir) do
112
+ run("git pull")
113
+ run(cmd)
114
+ end
115
+ end
104
116
  end
105
117
  end
106
118
  end
@@ -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.exist?(path)
7
+ path
8
+ else
9
+ ""
10
+ end
11
+ end
12
+ end
13
+ end
@@ -294,16 +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
298
  $stderr.puts cmd.error
299
299
  if quit_on_failure
300
- abort #""#$cmd.error
301
- #else
302
- # $stderr.puts cmd.error
300
+ abort
303
301
  end
304
-
305
- #puts
306
- #abort "#{Rainbow(elapsed_str).red.bright} #{Rainbow(cmd.command).white}" if quit_on_failure
307
302
  end
308
303
  cmd.save
309
304
  cmd
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.356
4
+ version: 0.0.359
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-27 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