raykit 0.0.498 → 0.0.500
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 +4 -4
- data/lib/raykit/command.rb +6 -6
- data/lib/raykit/configuration.rb +3 -1
- data/lib/raykit/console.rb +12 -3
- data/lib/raykit/git/repository.rb +18 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b2a3e1c22735ebdacb0d6e65529afda2553beb7e3035c015b894523ec839fc3
|
4
|
+
data.tar.gz: a70d5d46c87f1eb517020af2e59f0e3efd3fde472d9aed2a6d9d63be769680a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5062b8fff78d1a0c5321afa51f6171cff9aa77e344dbbf6be70119d2ba502934156c671600dc4ca526ba2962d19f14d75331fb13c8ddb7d283877cb58ebcbe8
|
7
|
+
data.tar.gz: 7713d9d0f5a112b570ed6eee588e8d491ed9a075ea7747ea5a8695d24c115233fccbfdd88341748134b898848c8490d76892c5e2f4892327959cb21dbbf58e56
|
data/lib/raykit/command.rb
CHANGED
@@ -346,12 +346,12 @@ module Raykit
|
|
346
346
|
symbol = Rainbow(checkmark.encode("utf-8")).green
|
347
347
|
symbol = Rainbow(error.encode("utf-8")).red if @exitstatus != 0
|
348
348
|
cmd = "#{Rainbow(SECRETS.hide(@command)).yellow}"
|
349
|
-
if !@exitstatus.zero?
|
350
|
-
|
351
|
-
|
352
|
-
else
|
353
|
-
|
354
|
-
end
|
349
|
+
#if !@exitstatus.zero?
|
350
|
+
s += "#{symbol} #{cmd} " + Rainbow("#{elapsed_str}").cyan
|
351
|
+
s += Rainbow(" #{@directory}").white + " "
|
352
|
+
#else
|
353
|
+
# s += "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} " + Rainbow("#{elapsed_str}").cyan
|
354
|
+
#end
|
355
355
|
|
356
356
|
if !@exitstatus.zero?
|
357
357
|
if @output.length > 0
|
data/lib/raykit/configuration.rb
CHANGED
@@ -13,7 +13,9 @@ module Raykit
|
|
13
13
|
load_configuration
|
14
14
|
else
|
15
15
|
set_default_configuration
|
16
|
-
|
16
|
+
if (!Dir.exist?(CONFIG_DIR))
|
17
|
+
save_configuration # Save the default configuration if no configuration file exists.
|
18
|
+
end
|
17
19
|
end
|
18
20
|
end
|
19
21
|
|
data/lib/raykit/console.rb
CHANGED
@@ -137,13 +137,22 @@ module Raykit
|
|
137
137
|
errors = []
|
138
138
|
puts "work: found #{work_repositories.length} matching urls"
|
139
139
|
work_repositories.each do |url|
|
140
|
-
|
141
|
-
puts " "
|
142
|
-
|
140
|
+
default_command = "rake default"
|
141
|
+
puts "work: #{url} #{default_command}"
|
142
|
+
repo = Raykit::Git::Repository.new(url)
|
143
|
+
cmd = repo.work default_command
|
144
|
+
puts cmd.to_s
|
145
|
+
#exitstatus = work_url(url)
|
146
|
+
#puts " " if @opts.verbose?
|
147
|
+
#return exitstatus if @opts[:stop] && exitstatus != 0
|
143
148
|
end
|
144
149
|
0
|
145
150
|
end
|
146
151
|
|
152
|
+
#puts "\nwork \"rake default\""
|
153
|
+
#cmd = repo.work "rake default"
|
154
|
+
#puts cmd.to_s
|
155
|
+
|
147
156
|
def work_url(url)
|
148
157
|
return 0 if url == "https://gitlab.com/lou-parslow/raykit.git"
|
149
158
|
|
@@ -271,8 +271,25 @@ module Raykit
|
|
271
271
|
end # def self.backup
|
272
272
|
|
273
273
|
def to_s
|
274
|
-
"
|
274
|
+
"Name: #{short_name}\nUrl: #{@url}\nRelative Path: #{relative_path}"
|
275
275
|
end # def to_s
|
276
|
+
|
277
|
+
def to_table
|
278
|
+
#max_name_width = 10
|
279
|
+
#max_value_width = 10
|
280
|
+
#header = " =".ljust(max_name_width + max_value_width + 5, "=")
|
281
|
+
header = "==Repository=="
|
282
|
+
table = header
|
283
|
+
table += "\n" + to_table_row("Name", short_name)
|
284
|
+
table += "\n" + to_table_row("Url", @url)
|
285
|
+
table
|
286
|
+
end # def to_table
|
287
|
+
|
288
|
+
def to_table_row(name, value)
|
289
|
+
max_name_width = 10
|
290
|
+
max_value_width = 30
|
291
|
+
Rainbow(name.rjust(max_name_width, " ")).cyan + " | " + Rainbow(value).white.bold
|
292
|
+
end
|
276
293
|
end # class Repository
|
277
294
|
end # module Git
|
278
295
|
end # module Raykit
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.500
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
|
-
rubygems_version: 3.4.
|
151
|
+
rubygems_version: 3.4.20
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: ruby gem to support rake ci/cd tasks
|