kuber_kit 0.6.1 → 0.6.2

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: 03c60b8fd02854d59ccad27ac3e512b726049d55f87f41d9c0ac0256344705ba
4
- data.tar.gz: e60f2f47da61e2b5c3942878c19c863c2537bd5a6513476bb4a26aea81259674
3
+ metadata.gz: b9436f738b564585856ce6daa51aae3b55eeb0b33e68710c6d8be4b8a9cfa465
4
+ data.tar.gz: 12ed77727bfb8af6d719576e2676e5f3d12d9d5ab1b9a69b77c3804f4e64e175
5
5
  SHA512:
6
- metadata.gz: 85bfd81c3419a8a44960c89e9e31d06a4775aa143141fdc8da8f46ea207d60a2be53310213a5cc96cf1fe034097c13f09d10256a72d0535bb6ee363d0a12c987
7
- data.tar.gz: 7182215530a9ee4908e4e483c578764c3bbc63f4d510c89b68bf8a2cb15a5e41bf714eb553b1497ad2236af4e585feb0e6aa810b00bb8e0f3b3ff1357e9717bf
6
+ metadata.gz: 31b571193f5130591b1f2bcfc73e42bb01bb5285beffbab26909e4ebccc765bc161b73897cc3d46e70ed2bc5975e445e02e6a0855493bb8ecad19f7b638d8685
7
+ data.tar.gz: 306aa5f9f87e075abc9fa65884ae211b9235039950dc1985c2f789d85b518f72d46a44c67def3f8af134b7cb1e6fc023b8755dd509f28721fa412bba3fa982ab
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ **0.6.2**
2
+ - Added an ability to return build vars as a hash value.
3
+ - Skip local artifacts while updating configuration, it sometimes produce an error
4
+
1
5
  **0.6.1**
2
6
  - Improve performance of artifacts update by updating in threads.
3
7
  - Added an ability to define default services
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kuber_kit (0.6.1)
4
+ kuber_kit (0.6.2)
5
5
  cli-ui
6
6
  contracts-lite
7
7
  dry-auto_inject (~> 0.7.0)
@@ -101,8 +101,12 @@ class KuberKit::Actions::ConfigurationLoader
101
101
  def update_artifacts(artifacts)
102
102
  return unless artifacts.any?
103
103
 
104
+ # Skip local artifacts, they sometimes produce error in CLI::UI::SpinGroup task,
105
+ # because the task is executed too quickly
106
+ not_local_artifacts = artifacts.reject{ |a| a.is_a?(KuberKit::Core::Artifacts::Local) }
107
+
104
108
  artifact_task_group = ui.create_task_group
105
- artifacts.each do |artifact|
109
+ not_local_artifacts.each do |artifact|
106
110
  artifact_task_group.add("Updating #{artifact.name.to_s.yellow}") do |task|
107
111
  artifact_updater.update(local_shell, artifact)
108
112
  task.update_title("Updated #{artifact.name.to_s.green}")
@@ -23,6 +23,14 @@ class KuberKit::Core::ContextHelper::ContextVars
23
23
  value
24
24
  end
25
25
 
26
+ def to_h
27
+ if @context_vars.is_a?(Hash)
28
+ return @context_vars
29
+ else
30
+ return {value: @context_vars}
31
+ end
32
+ end
33
+
26
34
  private
27
35
 
28
36
  def format_arg(name)
@@ -1,3 +1,3 @@
1
1
  module KuberKit
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuber_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iskander Khaziev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-20 00:00:00.000000000 Z
11
+ date: 2021-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: contracts-lite