raykit 0.0.419 → 0.0.420
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 +7 -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: 4b72f7a7f55cd4b88f34c77275294fbc9307eae4ed42aaa80dbcde25baa583c3
|
4
|
+
data.tar.gz: 1e797be59039805c9ebc38c85e0b453613ac1c564f6bf627f783bdd0d4b67ea0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0922b78b70f1a3c4adb8860bcdd204a93e6474d27c7eb8d17240915627775d243a99d50692a16116bfd533914302ac50728bc5df4c4aaab5ca9e6e1134027da
|
7
|
+
data.tar.gz: 1ed51bac46c19d95c6f0dbb267e56d9aa56b1c1c6fdcfa2d80de38e89a9102f1ed570350229fe85c19c123526ab73e27cfe5231a598f767b77456888a90490a6
|
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,13 @@ 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
|
+
cmd = Raykit::Command.new("msbuild --version").run
|
9
|
+
if (cmd.exitstatus != 0)
|
10
|
+
if (Dir.exists?(msbuild_path))
|
11
|
+
puts " added #{msbuild_path} to PATH for msbuild"
|
12
|
+
ENV["PATH"] = ENV["PATH"] + ";#{msbuild_path}"
|
13
|
+
end
|
14
|
+
end
|
8
15
|
end
|
9
16
|
|
10
17
|
# C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin
|
@@ -20,8 +27,6 @@ module Raykit
|
|
20
27
|
path = "#{prog_path}#{relative_path}"
|
21
28
|
return path if Dir.exist?(path)
|
22
29
|
end
|
23
|
-
#path = "C:/Program Files (x86)/Microsoft Visual Studio/#{relative_path}"
|
24
|
-
#return path if Dir.exist?(path)
|
25
30
|
end
|
26
31
|
""
|
27
32
|
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.420
|
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
|