vidar 1.9.3 → 1.10.0

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: 1c7daa1e068c23277c471c47d2876c9557b00baef603235d893564ed43f1d7f9
4
- data.tar.gz: 3b08484e8f10902153ece3615660c5c5c1edfe25452a4cdaaaf72db5f0145191
3
+ metadata.gz: 837a79fe42926308748fbfeb816fdfd9b65bc4f13baefb499cbca936ac668f8f
4
+ data.tar.gz: 9bd7ba8776bb814eef39e909464ddf91027cb2c4f9b4b9caea04a247e17aa6cd
5
5
  SHA512:
6
- metadata.gz: a51ce45925f510602e9b23f9192cc269f4ab7064bc8afc2d6de92d3c5d9162a19b5dec35eaefecff1309738ad6600ce9945dbdfa096306fb4df9444446ef1934
7
- data.tar.gz: e53d39ba5bf7f473438123fa3147dd00d8b1c9711dd125fbbe1d2c17f9da7a5a5ef6ecf8152618f6355a101d9ccde6f7f37cd7b3afb57b205c8ef19db3e524ee
6
+ metadata.gz: 153146b937497d0d0f2496f18aa4da97d4437e244a1e68018740366539f20f6543921de10012aa8fb3774251a174be235b10b9e22e83a224cb2ca01b2942449e
7
+ data.tar.gz: 670e654205cd66abb504d3bcf6cd928a6f3fc7c7ff90f2493b865b075097c47ac5fc94f3af5fd7c4361f9cb8ebad83701dd5f5cff7c6a8d2c5ca70e130dd3802
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.4.21
1
+ 2.5.6
@@ -1,19 +1,15 @@
1
- version: 1
1
+ version: 2
2
2
 
3
- update_configs:
4
- - package_manager: "ruby:bundler"
3
+ updates:
4
+ - package-ecosystem: "bundler"
5
5
  directory: "/"
6
- update_schedule: "daily"
7
- commit_message:
6
+ schedule:
7
+ interval: "weekly"
8
+ day: "monday"
9
+ time: "08:00"
10
+ timezone: "UTC"
11
+ commit-message:
8
12
  prefix: "[dependabot]"
9
- allowed_updates:
10
- - match:
11
- dependency_type: "all"
12
- update_type: "security"
13
- automerged_updates:
14
- - match:
15
- dependency_type: "all"
16
- update_type: "security:patch"
17
13
  labels:
18
14
  - "automerge"
19
15
  - "dependencies"
@@ -8,6 +8,6 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
10
  - uses: hmarr/auto-approve-action@v3
11
- if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev' || contains(toJson(github), 'HOTFIX-AUTO-APPROVE')
11
+ if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev' || contains(github.event.pull_request.labels.*.name, 'HOTFIX-AUTO-APPROVE') || contains(github.event.pull_request.labels.*.name, 'dependencies')
12
12
  with:
13
13
  github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -15,10 +15,10 @@ jobs:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
17
  - name: automerge-dependencies
18
- uses: pascalgn/automerge-action@v0.15.6
18
+ uses: pascalgn/automerge-action@v0.16.2
19
19
  env:
20
20
  GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
21
21
  MERGE_METHOD: squash
22
22
  MERGE_DELETE_BRANCH: true
23
- MERGE_LABELS: dependencies
23
+ MERGE_LABELS: "dependencies,!automerge blocked"
24
24
  MERGE_REMOVE_LABELS: ""
@@ -15,7 +15,7 @@ jobs:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
17
  - name: automerge
18
- uses: pascalgn/automerge-action@v0.15.6
18
+ uses: pascalgn/automerge-action@v0.16.2
19
19
  env:
20
20
  GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
21
21
  MERGE_METHOD: squash
@@ -7,7 +7,7 @@ on:
7
7
  branches: [ main ]
8
8
 
9
9
  jobs:
10
- test:
10
+ ci_tests_ruby:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vidar (1.9.3)
4
+ vidar (1.10.0)
5
5
  colorize
6
6
  faraday
7
7
  thor (~> 1.0)
@@ -13,25 +13,28 @@ GEM
13
13
  public_suffix (>= 2.0.2, < 6.0)
14
14
  ast (2.4.2)
15
15
  awesome_print (1.9.2)
16
- base64 (0.2.0)
16
+ bigdecimal (3.1.6)
17
17
  coderay (1.1.3)
18
18
  colorize (1.1.0)
19
- crack (0.4.5)
19
+ crack (1.0.0)
20
+ bigdecimal
20
21
  rexml
21
- diff-lcs (1.5.0)
22
- faraday (2.7.12)
23
- base64
24
- faraday-net_http (>= 2.0, < 3.1)
25
- ruby2_keywords (>= 0.0.4)
26
- faraday-net_http (3.0.2)
27
- hashdiff (1.0.1)
22
+ diff-lcs (1.5.1)
23
+ faraday (2.9.0)
24
+ faraday-net_http (>= 2.0, < 3.2)
25
+ faraday-net_http (3.1.0)
26
+ net-http
27
+ hashdiff (1.1.0)
28
28
  json (2.7.1)
29
29
  language_server-protocol (3.17.0.3)
30
30
  method_source (1.0.0)
31
- parallel (1.23.0)
32
- parser (3.2.2.4)
31
+ net-http (0.4.1)
32
+ uri
33
+ parallel (1.24.0)
34
+ parser (3.3.0.5)
33
35
  ast (~> 2.4.1)
34
36
  racc
37
+ prism (0.24.0)
35
38
  pry (0.14.2)
36
39
  coderay (~> 1.1)
37
40
  method_source (~> 1.0)
@@ -39,49 +42,50 @@ GEM
39
42
  racc (1.7.3)
40
43
  rainbow (3.1.1)
41
44
  rake (13.1.0)
42
- regexp_parser (2.8.3)
45
+ regexp_parser (2.9.0)
43
46
  rexml (3.2.6)
44
- rspec (3.12.0)
45
- rspec-core (~> 3.12.0)
46
- rspec-expectations (~> 3.12.0)
47
- rspec-mocks (~> 3.12.0)
48
- rspec-core (3.12.2)
49
- rspec-support (~> 3.12.0)
50
- rspec-expectations (3.12.3)
47
+ rspec (3.13.0)
48
+ rspec-core (~> 3.13.0)
49
+ rspec-expectations (~> 3.13.0)
50
+ rspec-mocks (~> 3.13.0)
51
+ rspec-core (3.13.0)
52
+ rspec-support (~> 3.13.0)
53
+ rspec-expectations (3.13.0)
51
54
  diff-lcs (>= 1.2.0, < 2.0)
52
- rspec-support (~> 3.12.0)
53
- rspec-mocks (3.12.6)
55
+ rspec-support (~> 3.13.0)
56
+ rspec-mocks (3.13.0)
54
57
  diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.12.0)
56
- rspec-support (3.12.1)
57
- rubocop (1.59.0)
58
+ rspec-support (~> 3.13.0)
59
+ rspec-support (3.13.1)
60
+ rubocop (1.61.0)
58
61
  json (~> 2.3)
59
62
  language_server-protocol (>= 3.17.0)
60
63
  parallel (~> 1.10)
61
- parser (>= 3.2.2.4)
64
+ parser (>= 3.3.0.2)
62
65
  rainbow (>= 2.2.2, < 4.0)
63
66
  regexp_parser (>= 1.8, < 3.0)
64
67
  rexml (>= 3.2.5, < 4.0)
65
68
  rubocop-ast (>= 1.30.0, < 2.0)
66
69
  ruby-progressbar (~> 1.7)
67
70
  unicode-display_width (>= 2.4.0, < 3.0)
68
- rubocop-ast (1.30.0)
69
- parser (>= 3.2.1.0)
70
- rubocop-capybara (2.19.0)
71
+ rubocop-ast (1.31.0)
72
+ parser (>= 3.3.0.4)
73
+ prism (>= 0.24.0)
74
+ rubocop-capybara (2.20.0)
75
+ rubocop (~> 1.41)
76
+ rubocop-factory_bot (2.25.1)
71
77
  rubocop (~> 1.41)
72
- rubocop-factory_bot (2.24.0)
73
- rubocop (~> 1.33)
74
78
  rubocop-rake (0.6.0)
75
79
  rubocop (~> 1.0)
76
- rubocop-rspec (2.25.0)
80
+ rubocop-rspec (2.26.1)
77
81
  rubocop (~> 1.40)
78
82
  rubocop-capybara (~> 2.17)
79
83
  rubocop-factory_bot (~> 2.22)
80
84
  ruby-progressbar (1.13.0)
81
- ruby2_keywords (0.0.5)
82
- thor (1.3.0)
85
+ thor (1.3.1)
83
86
  unicode-display_width (2.5.0)
84
- webmock (3.19.1)
87
+ uri (0.13.0)
88
+ webmock (3.23.0)
85
89
  addressable (>= 2.8.0)
86
90
  crack (>= 0.3.2)
87
91
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -102,4 +106,4 @@ DEPENDENCIES
102
106
  webmock
103
107
 
104
108
  BUNDLED WITH
105
- 2.4.22
109
+ 2.5.6
data/lib/vidar/cli.rb CHANGED
@@ -42,12 +42,18 @@ module Vidar
42
42
  end
43
43
 
44
44
  desc "build", "Build docker stages"
45
+ option :target, required: false
45
46
  def build
46
- Log.info "Building #{Config.get!(:base_stage_name)} image"
47
- Run.docker_compose "build #{Config.get!(:base_stage_name)}"
47
+ if options[:target]
48
+ Log.info "Building #{options[:target]} image"
49
+ Run.docker_compose "build #{options[:target]}"
50
+ else
51
+ Log.info "Building #{Config.get!(:base_stage_name)} image"
52
+ Run.docker_compose "build #{Config.get!(:base_stage_name)}"
48
53
 
49
- Log.info "Building #{Config.get!(:release_stage_name)} image"
50
- Run.docker_compose "build #{Config.get!(:release_stage_name)}"
54
+ Log.info "Building #{Config.get!(:release_stage_name)} image"
55
+ Run.docker_compose "build #{Config.get!(:release_stage_name)}"
56
+ end
51
57
  end
52
58
 
53
59
  desc "cache", "Caches intermediate docker stages"
@@ -51,7 +51,7 @@ module Vidar
51
51
  end
52
52
 
53
53
  def pod_set
54
- @pod_set = K8s::PodSet.new(namespace: namespace, filter: filter)
54
+ @pod_set = K8s::PodSet.new(namespace:, filter:)
55
55
  end
56
56
  end
57
57
  end
@@ -34,7 +34,7 @@ module Vidar
34
34
  ":fire: <!channel>",
35
35
  build_link
36
36
  ]
37
- perform_with data(message: message, color: failure_color)
37
+ perform_with data(message:, color: failure_color)
38
38
  end
39
39
 
40
40
  def success
@@ -42,11 +42,11 @@ module Vidar
42
42
  "Successful deploy of #{github_link} to #{deploy_link}.",
43
43
  build_link
44
44
  ]
45
- perform_with data(message: message, color: success_color)
45
+ perform_with data(message:, color: success_color)
46
46
  end
47
47
 
48
48
  def deliver(message:, color: default_color)
49
- perform_with data(message: message, color: color)
49
+ perform_with data(message:, color:)
50
50
  end
51
51
 
52
52
  def perform_with(data)
@@ -71,8 +71,8 @@ module Vidar
71
71
  {
72
72
  title: github,
73
73
  title_link: github_url,
74
- color: color,
75
- text: text,
74
+ color:,
75
+ text:,
76
76
  fallback: text,
77
77
  }
78
78
  ]
data/lib/vidar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vidar
2
- VERSION = '1.9.3'.freeze
2
+ VERSION = '1.10.0'.freeze
3
3
  end
data/vidar.gemspec CHANGED
@@ -17,6 +17,8 @@ Gem::Specification.new do |spec|
17
17
  spec.metadata['changelog_uri'] = 'https://github.com/RenoFi/vidar/blob/master/CHANGELOG.md'
18
18
  spec.metadata['rubygems_mfa_required'] = 'true'
19
19
 
20
+ spec.required_ruby_version = Gem::Requirement.new('>= 3.1.0')
21
+
20
22
  spec.files = Dir.chdir(__dir__) do
21
23
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
22
24
  end
@@ -24,8 +26,6 @@ Gem::Specification.new do |spec|
24
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
27
  spec.require_paths = ['lib']
26
28
 
27
- spec.required_ruby_version = '>= 3.0'
28
-
29
29
  spec.add_dependency 'colorize'
30
30
  spec.add_dependency 'faraday'
31
31
  spec.add_dependency 'thor', '~> 1.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.3
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-12-11 00:00:00.000000000 Z
12
+ date: 2024-02-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize
@@ -112,14 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - ">="
114
114
  - !ruby/object:Gem::Version
115
- version: '3.0'
115
+ version: 3.1.0
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubygems_version: 3.4.22
122
+ rubygems_version: 3.5.3
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: K8s deployment tools based on thor