raykit 0.0.336 → 0.0.340

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: b03842d2be8f57742457a9ae90a8bf49109473cb50ae6cac2a5a370f7dd0d3a0
4
- data.tar.gz: e0b134595356ca20d90d2cafe75173b2a83346ef8896f99e508b1aa78617056f
3
+ metadata.gz: c6ad500914ef414166d9a0203d1adeddea7f7f55557098d5ad6fa462284f9d5b
4
+ data.tar.gz: 7ed97d368ca4a19d4f206f8fab4461b97a3abae629f468be2ac52a85a31e8d18
5
5
  SHA512:
6
- metadata.gz: 81af1b1b429127c57650474d3c0bb12c9b86d3fcb7e435de5cb079437c64d135e75f4c85a3b913a5c839b68416239a95b9e40f3d8ca4bf49cca26e9a8a97f2c0
7
- data.tar.gz: '08dce4b19155755a979628a2240af131d9c398123ee2ec60ca8d6687333414a734f62801d9c599f20c4312db25e3b9e528ba4406d1f9f9b8db7051b2c9a70575'
6
+ metadata.gz: 2e34ebd3e6d8f2622b33c32361c3cc0f18b19503bbc4a73f5e124cc2f4f26ba1d4d128488ccd59bbc2c17520b0ffdd15bc3d3464676aebac6d610e7dc3804f6d
7
+ data.tar.gz: 425319fe938ee848190aab869f97cafa559526350c32dda2cd9fd026eea603e306876006ff74c066dd8d515d694a35dec2eeed3730b0abbf7b6582905ee2c3be
@@ -185,8 +185,10 @@ module Raykit
185
185
  error = "\u0058"
186
186
  symbol = Rainbow(checkmark.encode("utf-8")).green
187
187
  symbol = Rainbow(error.encode("utf-8")).red if @exitstatus != 0
188
+ cmd = "#{Rainbow(SECRETS.hide(@command)).yellow}"
188
189
  if show_directory
189
- puts "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} (#{@directory},#{elapsed_str})"
190
+ puts "#{symbol} #{cmd} " + Rainbow("#{elapsed_str}").cyan #(#{@directory},#{elapsed_str})"
191
+ puts Rainbow(" #{@directory}").cyan
190
192
  else
191
193
  puts "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} (#{elapsed_str})"
192
194
  end
@@ -36,11 +36,11 @@ module Raykit
36
36
  def self.get_dev_dir(name)
37
37
  dir = Pathname.new("#{Environment.root_dir}/#{name}")
38
38
  dir.mkpath
39
- dir.to_s.gsub("//", "/")
39
+ dir.to_s.gsub("://", ".").gsub("//", "/")
40
40
  end
41
41
 
42
42
  def self.get_work_dir(url)
43
- "#{Raykit::Environment.get_dev_dir("work")}/#{url.gsub("://", "/").gsub(".git", "")}"
43
+ "#{Raykit::Environment.get_dev_dir("work")}/#{url.gsub("://", ".").gsub(".git", "")}"
44
44
  end
45
45
 
46
46
  # Get the size of a directory and its contents
data/lib/raykit/log.rb CHANGED
@@ -43,5 +43,9 @@ module Raykit
43
43
  def self.start_task(task_name)
44
44
  puts Rainbow(": #{task_name}").blue.bright
45
45
  end
46
+
47
+ def self.show_value(name,value)
48
+ puts " " + Rainbow(name).cyan + " " + Rainbow("#{value}").white.bold
49
+ end
46
50
  end
47
51
  end
@@ -2,6 +2,11 @@
2
2
 
3
3
  module Raykit
4
4
  class MsBuild
5
+ def self.fix_msbuild_path
6
+ # if msbuild in not in the current path,
7
+ # attempt to modify the path such that is it
8
+ end
9
+
5
10
  # C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Current\Bin
6
11
  def self.msbuild_path
7
12
  ["2022/Community/Msbuild/Current/Bin",
@@ -284,7 +284,7 @@ module Raykit
284
284
 
285
285
  def run(command, quit_on_failure = true)
286
286
  if command.is_a?(Array)
287
- command.each { |subcommand| run(subcommand, quit_on_failure, success_log_level) }
287
+ command.each { |subcommand| run(subcommand, quit_on_failure) }
288
288
  else
289
289
  cmd = Command.new(command).set_timeout(0).run
290
290
  cmd.summary
data/lib/raykit.rb CHANGED
@@ -28,7 +28,12 @@ if defined?(RAYKIT_GLOBALS)
28
28
  def run(command, quit_on_failure = true)
29
29
  Raykit::TopLevel.run(command, quit_on_failure)
30
30
  end
31
+
31
32
  def start_task(task_name)
32
33
  Raykit::Log.start_task(task_name)
33
34
  end
35
+
36
+ def show_value(name,value)
37
+ Raykit::Log.show_value(name,value)
38
+ end
34
39
  end
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.336
4
+ version: 0.0.340
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-01-18 00:00:00.000000000 Z
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.2.15
128
+ rubygems_version: 3.2.22
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: ruby gem to support rake ci/cd tasks