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 +4 -4
- data/lib/raykit/git/repository.rb +12 -0
- data/lib/raykit/nunit.rb +13 -0
- data/lib/raykit/project.rb +2 -7
- data/lib/raykit.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b72802c7ec5a1b0f892e79a2c51dfbf8f805579fd0172664863b2e43988dee2b
|
4
|
+
data.tar.gz: ba6c23059ccd6acd00451c0b43a9e8f34fcdc65bd31b9530bbae2dc542e1b3cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/raykit/nunit.rb
ADDED
@@ -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
|
data/lib/raykit/project.rb
CHANGED
@@ -294,16 +294,11 @@ module Raykit
|
|
294
294
|
if !cmd.exitstatus.nil? && cmd.exitstatus.zero?
|
295
295
|
else
|
296
296
|
# display error details
|
297
|
-
|
297
|
+
puts cmd.output
|
298
298
|
$stderr.puts cmd.error
|
299
299
|
if quit_on_failure
|
300
|
-
abort
|
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
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.
|
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-
|
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
|