raykit 0.0.419 → 0.0.421
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -1
- data/lib/raykit/msbuild.rb +13 -2
- data/lib/raykit.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08950e670073b00324fc3b72e3ad590596f5a0d6464e9c08ae3443cb86c5fdbd'
|
4
|
+
data.tar.gz: f8e3cd51b4781af195e7b0da3ce956f058f1274c6c6e37c78ad68c4edd959fbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b524750ccec43008b4a3a4871fcfbc5157295c3a0a82a496efdd36fcccada919e98cf7cd575151a5cd92befda1d354d63cbb0a63aae1c5f55db5675d20758614
|
7
|
+
data.tar.gz: 89fa69af1d61a7698e519b56fb241ef4e6e3fcf74c594a209bbfadddd825691879c40aff1b73ff9c3860133f9addca2ebaf72a9a06ecfd9ed870ab9d67d7f15d
|
data/README.md
CHANGED
@@ -5,4 +5,17 @@ ruby gem supporting rake ci/cd tasks
|
|
5
5
|
## raykit console application
|
6
6
|
|
7
7
|
# TODO
|
8
|
-
- consider using https://github.com/tj/terminal-table to display name value pairs
|
8
|
+
- consider using https://github.com/tj/terminal-table to display name value pairs
|
9
|
+
|
10
|
+
```secrets.txt
|
11
|
+
{"test":"abc123XYZ"}
|
12
|
+
```
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
ENV['RAYKIT_SECRETS_PATH'] = SOME_VALID_FILENAME
|
16
|
+
if (SECRETS.has_key?("test"))
|
17
|
+
puts "found SECRETS[\"test\"]"
|
18
|
+
else
|
19
|
+
puts "did not find SECRETS[\"test\"]"
|
20
|
+
end
|
21
|
+
```
|
data/lib/raykit/msbuild.rb
CHANGED
@@ -5,6 +5,19 @@ module Raykit
|
|
5
5
|
def self.fix_msbuild_path
|
6
6
|
# if msbuild in not in the current path,
|
7
7
|
# attempt to modify the path such that is it
|
8
|
+
has_msbuild = false
|
9
|
+
begin
|
10
|
+
cmd = Raykit::Command.new("msbuild --version").run
|
11
|
+
has_msbuild = true if (cmd.exitstatus != 0)
|
12
|
+
rescue
|
13
|
+
has_msbuild = false
|
14
|
+
end
|
15
|
+
if (!has_msbuild)
|
16
|
+
if (Dir.exists?(msbuild_path))
|
17
|
+
puts " added #{msbuild_path} to PATH for msbuild"
|
18
|
+
ENV["PATH"] = ENV["PATH"] + ";#{msbuild_path}"
|
19
|
+
end
|
20
|
+
end
|
8
21
|
end
|
9
22
|
|
10
23
|
# C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin
|
@@ -20,8 +33,6 @@ module Raykit
|
|
20
33
|
path = "#{prog_path}#{relative_path}"
|
21
34
|
return path if Dir.exist?(path)
|
22
35
|
end
|
23
|
-
#path = "C:/Program Files (x86)/Microsoft Visual Studio/#{relative_path}"
|
24
|
-
#return path if Dir.exist?(path)
|
25
36
|
end
|
26
37
|
""
|
27
38
|
end
|
data/lib/raykit.rb
CHANGED
@@ -19,6 +19,8 @@ GIT_DIRECTORY = Raykit::Git::Directory.new(Rake.application.original_dir)
|
|
19
19
|
NUGET_DIR = Raykit::Environment::get_dev_dir("nuget")
|
20
20
|
PUBLISH_DIR = Raykit::Environment::get_dev_dir("publish")
|
21
21
|
|
22
|
+
Raykit::MsBuild::fix_msbuild_path
|
23
|
+
|
22
24
|
# include Raykit::TopLevel to make run method accessible from the global scope
|
23
25
|
module Raykit
|
24
26
|
module TopLevel
|
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.421
|
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-
|
11
|
+
date: 2022-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.3.7
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: ruby gem to support rake ci/cd tasks
|