semaph 0.8.0 → 0.9.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0653a67cbd9a978c6650491d39594eaf22d59b0be26d43bacc7a2f0933d5432c
|
4
|
+
data.tar.gz: 1ffb51d996af36938a6fc8b61e26da3db154161b7c420f31a8570a77545d6e1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7f196dfd55567cbd4621c0b2223b0367020d0c1d104560b108fc03a73846ccb56bbbca248321b0fb0c02c2ad4122c3093fe8280336440a2fc80c555bc191a5a
|
7
|
+
data.tar.gz: 59b468eccf7a64f79d4ea8317df870f24c4d3271d08a3616b992c9994fb4838276865ffc3fc47805795dec5f921323d53864a75c529e4852c9ac3cbe0f4b4ebd
|
data/Gemfile.lock
CHANGED
data/lib/semaph/formatting.rb
CHANGED
@@ -32,12 +32,12 @@ module Semaph
|
|
32
32
|
Workflow.new(project, workflow_response["workflow"])
|
33
33
|
end
|
34
34
|
|
35
|
+
def created
|
36
|
+
Semaph::Formatting.time(created_at)
|
37
|
+
end
|
38
|
+
|
35
39
|
def description
|
36
|
-
[
|
37
|
-
Semaph::Formatting.time(created_at),
|
38
|
-
branch,
|
39
|
-
commit,
|
40
|
-
].join(" ")
|
40
|
+
[created, branch, commit].join(" ")
|
41
41
|
end
|
42
42
|
|
43
43
|
def stop
|
@@ -14,6 +14,7 @@ module Semaph
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def execute(_whatever = nil)
|
17
|
+
puts "Polling #{job_collection.pipeline.workflow.description}:"
|
17
18
|
report_and_reload(15) while job_collection.incomplete.count.positive? && job_collection.failed.count.zero?
|
18
19
|
report_final
|
19
20
|
end
|
@@ -36,7 +37,7 @@ module Semaph
|
|
36
37
|
end
|
37
38
|
|
38
39
|
def report_incomplete
|
39
|
-
base = [nil, elapsed, report_ratio,
|
40
|
+
base = [nil, elapsed, report_ratio, "jobs remaining"].join(" ")
|
40
41
|
erase base
|
41
42
|
end
|
42
43
|
|
@@ -14,10 +14,17 @@ module Semaph
|
|
14
14
|
|
15
15
|
def execute(branch)
|
16
16
|
@workflow_collection.reload
|
17
|
-
@workflow_collection.all.each_with_index do |workflow, index|
|
17
|
+
@workflow_collection.all.slice(0..9).each_with_index do |workflow, index|
|
18
18
|
next unless workflow.branch.include?(branch)
|
19
19
|
|
20
|
-
|
20
|
+
pipelines = workflow.pipeline_collection.reload
|
21
|
+
|
22
|
+
puts [
|
23
|
+
::Semaph::Formatting.index(index + 1),
|
24
|
+
pipelines.last&.icon,
|
25
|
+
::Semaph::Formatting.length(pipelines),
|
26
|
+
workflow.description,
|
27
|
+
].join(" ")
|
21
28
|
end
|
22
29
|
end
|
23
30
|
end
|
data/lib/semaph/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semaph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Ryall
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|