raykit 0.0.419 → 0.0.421

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: f086babde861261986c7d8e1816ace849aad926e58754dd383ff4f065af190da
4
- data.tar.gz: a7dad061f75d52167a2a9de3185ffb18ea92136d214ea911c306153481d80843
3
+ metadata.gz: '08950e670073b00324fc3b72e3ad590596f5a0d6464e9c08ae3443cb86c5fdbd'
4
+ data.tar.gz: f8e3cd51b4781af195e7b0da3ce956f058f1274c6c6e37c78ad68c4edd959fbd
5
5
  SHA512:
6
- metadata.gz: 0c91df7579cbb5e4c522ffd01e35870575d3d4b7b6d781e9a48ddabc377a144dd4b8099edbbdce85bdcc62ad1d6956267884a545072876a4d870cd516520a8c3
7
- data.tar.gz: e0565b165f6b709a8f9f3518c591b96bf12d552b8d348742a2778ce5bcf99874cb1081eb6b7da68ce55c3cd7406731fbd185e1bd9324e4742b8c43b33436c1b7
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
+ ```
@@ -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.419
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-09-13 00:00:00.000000000 Z
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.2.22
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