vidar 1.4.0 → 1.4.1

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: b09b655bc0059808f6e0373ebcf7e2e70b99d0cb9935e1e882cb63f609e2550d
4
- data.tar.gz: 1fc818361e0ac1d324bc0077bce17036999264657f50f1a3274b366dd16b6ce5
3
+ metadata.gz: c3d537f85d8832eee399a795a023d6d1ec8d7c755742028bfebdc284faf1a73a
4
+ data.tar.gz: 9b9402f61125844939c73fdf1106a8e3b7b06d98a2445627bcc73ce3bed419bc
5
5
  SHA512:
6
- metadata.gz: 7bdf349a69e3d83d1baa584bcd648adfb3cd2de1e34382577514f0436ef08fdd2e8884956ab77df450ba6af441e91a12b0a70dd3f3baaa20919e2d97cbfec3e8
7
- data.tar.gz: 43bb2ff9ed08d64344412cb8e06a43c2ef61445e109fdcf09412472339110073071b30516ebfc3c8bb8a0535f7bfc2d802465b59fd034206dadc7e5de46bc15b
6
+ metadata.gz: f52e9983f88d1158cf00e3f1343f1fe8b21947766dd81ad59d0853c5fc1393f2d8f849d0de66239a431ef58a799b323269706cb8f9af3887e630cd9fef21d4e5
7
+ data.tar.gz: ddc33975a9aebebc95b22096fda74a683faf3225517d27c1739a024d7eaa6f81fa77afceeba3b28c64b55aef285c38fda188c9b31bea256489ddaa1394405459
data/.bundler-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.27
@@ -3,9 +3,14 @@ version: 1
3
3
  update_configs:
4
4
  - package_manager: "ruby:bundler"
5
5
  directory: "/"
6
- update_schedule: "monthly"
6
+ update_schedule: "daily"
7
7
  commit_message:
8
8
  prefix: "[dependabot]"
9
9
  allowed_updates:
10
10
  - match:
11
- update_type: "all"
11
+ dependency_type: "all"
12
+ update_type: "security"
13
+ automerged_updates:
14
+ - match:
15
+ dependency_type: "all"
16
+ update_type: "security:patch"
@@ -1,18 +1,6 @@
1
- ## Description
1
+ ## Description, motivation and context
2
2
  <!--- Describe your changes in detail -->
3
-
4
- ## Related issue(s)
5
- <!--- GH issue number -->
6
-
7
- ## Motivation and Context
8
3
  <!--- Why is this change required? What problem does it solve? -->
9
- <!--- If it fixes an open issue, please link to the issue here. -->
10
4
 
11
- ## How Has This Been Tested?
12
- <!--- Please describe in detail how you tested your changes. -->
13
-
14
- ## Screenshots (if appropriate):
15
- <!--- Please add any screenshots of the feature. -->
16
-
17
- ## Related PRs
18
- <!--- Please add links to any related PRs (backend, component packages, etc). -->
5
+ ## Related issue(s) or PR(s)
6
+ <!--- GH issue number -->
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  steps:
14
14
  - name: automerge
15
- uses: "pascalgn/automerge-action@v0.11.0"
15
+ uses: "pascalgn/automerge-action@v0.12.0"
16
16
  env:
17
17
  GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
18
18
  MERGE_METHOD: squash
@@ -0,0 +1,28 @@
1
+ name: Ruby CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version: ['2.7', '3.0']
15
+
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Ruby
19
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
20
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
21
+ # uses: ruby/setup-ruby@v1
22
+ uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
23
+ with:
24
+ ruby-version: ${{ matrix.ruby-version }}
25
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26
+
27
+ - name: Run tests
28
+ run: bundle exec rake ci
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # CHANGELOG
2
+
3
+ ## 1.4.0 - 2020-12-14
4
+
5
+ - make `default_branch` to be auto-detected
6
+ from `main` and `master`, so it works with [the new github convention]) https://github.blog/changelog/2020-10-01-the-default-branch-for-newly-created-repositories-is-now-main)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vidar (1.4.0)
4
+ vidar (1.4.1)
5
5
  colorize
6
6
  faraday
7
7
  thor (~> 1.0)
@@ -9,71 +9,88 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- addressable (2.7.0)
12
+ addressable (2.8.0)
13
13
  public_suffix (>= 2.0.2, < 5.0)
14
- ast (2.4.1)
15
- awesome_print (1.8.0)
14
+ ast (2.4.2)
15
+ awesome_print (1.9.2)
16
16
  coderay (1.1.3)
17
17
  colorize (0.8.1)
18
- crack (0.4.4)
18
+ crack (0.4.5)
19
+ rexml
19
20
  diff-lcs (1.4.4)
20
- faraday (1.1.0)
21
+ faraday (1.8.0)
22
+ faraday-em_http (~> 1.0)
23
+ faraday-em_synchrony (~> 1.0)
24
+ faraday-excon (~> 1.1)
25
+ faraday-httpclient (~> 1.0.1)
26
+ faraday-net_http (~> 1.0)
27
+ faraday-net_http_persistent (~> 1.1)
28
+ faraday-patron (~> 1.0)
29
+ faraday-rack (~> 1.0)
21
30
  multipart-post (>= 1.2, < 3)
22
- ruby2_keywords
31
+ ruby2_keywords (>= 0.0.4)
32
+ faraday-em_http (1.0.0)
33
+ faraday-em_synchrony (1.0.0)
34
+ faraday-excon (1.1.0)
35
+ faraday-httpclient (1.0.1)
36
+ faraday-net_http (1.0.1)
37
+ faraday-net_http_persistent (1.2.0)
38
+ faraday-patron (1.0.0)
39
+ faraday-rack (1.0.0)
23
40
  hashdiff (1.0.1)
24
41
  method_source (1.0.0)
25
42
  multipart-post (2.1.1)
26
- parallel (1.20.1)
27
- parser (2.7.2.0)
43
+ parallel (1.21.0)
44
+ parser (3.0.2.0)
28
45
  ast (~> 2.4.1)
29
- pry (0.13.1)
46
+ pry (0.14.1)
30
47
  coderay (~> 1.1)
31
48
  method_source (~> 1.0)
32
49
  public_suffix (4.0.6)
33
50
  rainbow (3.0.0)
34
- rake (13.0.1)
35
- regexp_parser (2.0.0)
36
- rexml (3.2.4)
51
+ rake (13.0.6)
52
+ regexp_parser (2.1.1)
53
+ rexml (3.2.5)
37
54
  rspec (3.10.0)
38
55
  rspec-core (~> 3.10.0)
39
56
  rspec-expectations (~> 3.10.0)
40
57
  rspec-mocks (~> 3.10.0)
41
- rspec-core (3.10.0)
58
+ rspec-core (3.10.1)
42
59
  rspec-support (~> 3.10.0)
43
- rspec-expectations (3.10.0)
60
+ rspec-expectations (3.10.1)
44
61
  diff-lcs (>= 1.2.0, < 2.0)
45
62
  rspec-support (~> 3.10.0)
46
- rspec-mocks (3.10.0)
63
+ rspec-mocks (3.10.2)
47
64
  diff-lcs (>= 1.2.0, < 2.0)
48
65
  rspec-support (~> 3.10.0)
49
- rspec-support (3.10.0)
50
- rubocop (1.6.1)
66
+ rspec-support (3.10.2)
67
+ rubocop (1.22.0)
51
68
  parallel (~> 1.10)
52
- parser (>= 2.7.1.5)
69
+ parser (>= 3.0.0.0)
53
70
  rainbow (>= 2.2.2, < 4.0)
54
71
  regexp_parser (>= 1.8, < 3.0)
55
72
  rexml
56
- rubocop-ast (>= 1.2.0, < 2.0)
73
+ rubocop-ast (>= 1.12.0, < 2.0)
57
74
  ruby-progressbar (~> 1.7)
58
- unicode-display_width (>= 1.4.0, < 2.0)
59
- rubocop-ast (1.3.0)
60
- parser (>= 2.7.1.5)
61
- rubocop-rake (0.5.1)
62
- rubocop
63
- rubocop-rspec (2.0.1)
75
+ unicode-display_width (>= 1.4.0, < 3.0)
76
+ rubocop-ast (1.12.0)
77
+ parser (>= 3.0.1.1)
78
+ rubocop-rake (0.6.0)
64
79
  rubocop (~> 1.0)
65
- rubocop-ast (>= 1.1.0)
66
- ruby-progressbar (1.10.1)
67
- ruby2_keywords (0.0.2)
68
- thor (1.0.1)
69
- unicode-display_width (1.7.0)
70
- webmock (3.10.0)
71
- addressable (>= 2.3.6)
80
+ rubocop-rspec (2.5.0)
81
+ rubocop (~> 1.19)
82
+ ruby-progressbar (1.11.0)
83
+ ruby2_keywords (0.0.5)
84
+ thor (1.1.0)
85
+ unicode-display_width (2.1.0)
86
+ webmock (3.14.0)
87
+ addressable (>= 2.8.0)
72
88
  crack (>= 0.3.2)
73
89
  hashdiff (>= 0.4.0, < 2.0.0)
74
90
 
75
91
  PLATFORMS
76
- ruby
92
+ x86_64-darwin-20
93
+ x86_64-linux
77
94
 
78
95
  DEPENDENCIES
79
96
  awesome_print
@@ -88,4 +105,4 @@ DEPENDENCIES
88
105
  webmock
89
106
 
90
107
  BUNDLED WITH
91
- 2.1.4
108
+ 2.2.28
data/Rakefile CHANGED
@@ -5,4 +5,5 @@ require 'rubocop/rake_task'
5
5
  RSpec::Core::RakeTask.new(:spec)
6
6
  RuboCop::RakeTask.new
7
7
 
8
+ task ci: %i[spec rubocop]
8
9
  task default: %i[spec rubocop:auto_correct]
data/lib/vidar/cli.rb CHANGED
@@ -158,7 +158,7 @@ module Vidar
158
158
  else
159
159
  Log.info "Available containers:"
160
160
  containers.each(&:print)
161
- container = containers.first
161
+ container = containers.detect { c.name == 'console' } || containers.last
162
162
 
163
163
  Log.info "Running #{options[:command]} in #{container.pod_name}"
164
164
  Run.kubectl("exec -it #{container.pod_name} -- #{options[:command]}")
@@ -1,6 +1,6 @@
1
1
  module Vidar
2
2
  class Interpolation
3
- INTERPOLATION_PATTERN = /\{\{(\w+)\}\}/.freeze
3
+ INTERPOLATION_PATTERN = /\{\{(\w+)\}\}/
4
4
 
5
5
  class << self
6
6
  def call(string, getter)
@@ -24,7 +24,7 @@ module Vidar
24
24
 
25
25
  def data
26
26
  {
27
- "version": revision
27
+ version: revision
28
28
  }
29
29
  end
30
30
  end
@@ -57,13 +57,13 @@ module Vidar
57
57
  def data(message:, color:)
58
58
  text = [message].flatten.compact.join("\n")
59
59
  {
60
- "attachments": [
60
+ attachments: [
61
61
  {
62
- "title": github,
63
- "title_link": github_url,
64
- "color": color,
65
- "text": text,
66
- "fallback": text,
62
+ title: github,
63
+ title_link: github_url,
64
+ color: color,
65
+ text: text,
66
+ fallback: text,
67
67
  }
68
68
  ]
69
69
  }
data/lib/vidar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vidar
2
- VERSION = '1.4.0'.freeze
2
+ VERSION = '1.4.1'.freeze
3
3
  end
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.4.0
4
+ version: 1.4.1
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: 2020-12-14 00:00:00.000000000 Z
12
+ date: 2021-09-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize
@@ -188,6 +188,7 @@ executables:
188
188
  extensions: []
189
189
  extra_rdoc_files: []
190
190
  files:
191
+ - ".bundler-version"
191
192
  - ".dependabot/config.yml"
192
193
  - ".github/ISSUE_TEMPLATE/bug_report.md"
193
194
  - ".github/ISSUE_TEMPLATE/config.yml"
@@ -195,9 +196,10 @@ files:
195
196
  - ".github/PULL_REQUEST_TEMPLATE.md"
196
197
  - ".github/workflows/auto-approve.yml"
197
198
  - ".github/workflows/auto-merge.yml"
199
+ - ".github/workflows/ci.yml"
198
200
  - ".gitignore"
199
201
  - ".rspec"
200
- - ".travis.yml"
202
+ - CHANGELOG.md
201
203
  - Gemfile
202
204
  - Gemfile.lock
203
205
  - LICENSE
@@ -240,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
242
  - !ruby/object:Gem::Version
241
243
  version: '0'
242
244
  requirements: []
243
- rubygems_version: 3.1.4
245
+ rubygems_version: 3.2.23
244
246
  signing_key:
245
247
  specification_version: 4
246
248
  summary: K8s deployment tools based on thor
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.6
7
- - 2.7
8
- before_install: gem install bundler
9
- script:
10
- - bundle exec rake spec
11
- - bundle exec rake rubocop