hybrid_platforms_conductor 33.8.1 → 33.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 825b299003fe2fa6b3ec566bab9e42dcc45a7e320756977398a40ed571affd4a
4
- data.tar.gz: c7fd81b8e969e7f422ef471c1463f92d5a3ffd4f1203f6d9bcbf06dfe7d8b115
3
+ metadata.gz: d6e2a5efb5f9513378cc635387663c365ef3746c5e3adf70c9f8af24d9e00685
4
+ data.tar.gz: aeba22f701dcc095951b1575cc33e05ecd12022b7d8a8c4e558ee6189874d97f
5
5
  SHA512:
6
- metadata.gz: f1fd8c7beb855136184ae08b06e1cef38a155cec4c4d006a96c593ac05d21064eaa2277089f1cf4cf37aec015d93d7726cb8fcc1d6f549f1f36fdd2814096f95
7
- data.tar.gz: f877c9d45503be56bb36ee8cac5745722a9badf69aa614d1e7650cc41a40e943c12b228603c720831ef20cb4df5d56082e068566b5f2bd210ce0d226589722e2
6
+ metadata.gz: '096a224a0337aacb13a20b4113b008ffc62913db6a0207016ebf1fb31660dce248284f5fd2cd1fcb5147de086701cf1a5e63b7604519feaf8cbe230dca8066f0'
7
+ data.tar.gz: fb1dc0a69c3bc5b0f7b2bbb056f4abd068fbb3261efe6b249c2be908d6b5556fa9b13d1a508fa3fb2b2513794e995892d9b4c256fc2ed93064eab4395b378819
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [v33.8.2](https://github.com/sweet-delights/hybrid-platforms-conductor/compare/v33.8.1...v33.8.2) (2021-08-14 21:12:19)
2
+
3
+ ## Global changes
4
+ ### Patches
5
+
6
+ * [[Fix(test_github_ci)] [#95] Make sure the github_ci test does not fail when a repository has no workflow run](https://github.com/sweet-delights/hybrid-platforms-conductor/commit/e805c5b2d7e391c3c5205996fd56dadc14ddec7f)
7
+
8
+ ## Changes for test_github_ci
9
+ ### Patches
10
+
11
+ * [[Fix(test_github_ci)] [#95] Make sure the github_ci test does not fail when a repository has no workflow run](https://github.com/sweet-delights/hybrid-platforms-conductor/commit/e805c5b2d7e391c3c5205996fd56dadc14ddec7f)
12
+
1
13
  # [v33.8.1](https://github.com/sweet-delights/hybrid-platforms-conductor/compare/v33.8.0...v33.8.1) (2021-08-05 17:11:39)
2
14
 
3
15
  ### Patches
@@ -138,22 +138,23 @@ module HybridPlatformsConductor
138
138
  value = Regexp.last_match(2)
139
139
  key = key_str.to_sym
140
140
  # Type-cast some values
141
- case key_str
142
- when 'date'
143
- # Date and time values
144
- # Thu Nov 23 18:43:01 UTC 2017
145
- deploy_info[key] = Time.parse("#{value} UTC")
146
- when 'debug'
147
- # Boolean values
148
- # Yes
149
- deploy_info[key] = (value == 'Yes')
150
- when /^diff_files_.+$/, 'services'
151
- # Array of strings
152
- # my_file.txt, other_file.txt
153
- deploy_info[key] = value.split(', ')
154
- else
155
- deploy_info[key] = value
156
- end
141
+ deploy_info[key] =
142
+ case key_str
143
+ when 'date'
144
+ # Date and time values
145
+ # Thu Nov 23 18:43:01 UTC 2017
146
+ Time.parse("#{value} UTC")
147
+ when 'debug'
148
+ # Boolean values
149
+ # Yes
150
+ value == 'Yes'
151
+ when /^diff_files_.+$/, 'services'
152
+ # Array of strings
153
+ # my_file.txt, other_file.txt
154
+ value.split(', ')
155
+ else
156
+ value
157
+ end
157
158
  else
158
159
  deploy_info[:unknown_lines] = [] unless deploy_info.key?(:unknown_lines)
159
160
  deploy_info[:unknown_lines] << line
@@ -18,10 +18,15 @@ module HybridPlatformsConductor
18
18
  def test
19
19
  for_each_github_repo do |client, repo_info|
20
20
  log_debug "Checking CI for Github repository #{repo_info[:slug]}"
21
- last_status = client.repository_workflow_runs(repo_info[:slug])[:workflow_runs].
21
+ last_run = client.repository_workflow_runs(repo_info[:slug])[:workflow_runs].
22
22
  select { |run| run[:head_branch] == 'master' }.
23
- max_by { |run| run[:created_at] }[:conclusion]
24
- error "Last workflow status for repository #{repo_info[:slug]} is #{last_status}" unless last_status == 'success'
23
+ max_by { |run| run[:created_at] }
24
+ if last_run.nil?
25
+ error "No workflow run found for repository #{repo_info[:slug]}"
26
+ else
27
+ last_status = last_run[:conclusion]
28
+ error "Last workflow status for repository #{repo_info[:slug]} is #{last_status}" unless last_status == 'success'
29
+ end
25
30
  end
26
31
  end
27
32
 
@@ -1,5 +1,5 @@
1
1
  module HybridPlatformsConductor
2
2
 
3
- VERSION = '33.8.1'
3
+ VERSION = '33.8.2'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hybrid_platforms_conductor
3
3
  version: !ruby/object:Gem::Version
4
- version: 33.8.1
4
+ version: 33.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muriel Salvan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-05 00:00:00.000000000 Z
11
+ date: 2021-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: range_operators