k_director 0.7.2 → 0.7.3

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: 01c2703862b9bf79b4c341909d33799f83fc4b3db8a486f709061e8dcda1f795
4
- data.tar.gz: '063359b7c3717c8c8512db963bae8ebd23e4339799a477893bd90964342b7800'
3
+ metadata.gz: 79bee3921fd36eed9af19652f48ae05a8728eb9365f72650a2ba0d2c7faf8af1
4
+ data.tar.gz: '086b5152c66060aed6fb4c468507d95f7565599a03cb175243484e6e6ac81ef6'
5
5
  SHA512:
6
- metadata.gz: 58555b963f3cd67d9dc1097dacdbeabadeda3f9f258a769cd9bdfa623a5c2c5bf71fb37d28f6c33b4a2baae0ceff86b9f0f838e34624e81da2e6bfcd9efc9135
7
- data.tar.gz: 5baf583a108004162cb990eb022f660d23bf260f7b0b6aa45c56fb102ed5f6cf1f9e72f489ae5f52560af03d0d37c56d3cf2fd8d0d71168f344df0d46c73878c
6
+ metadata.gz: 7ada0c1e8995f0c42e3c8c5d74ab5ee265c945d20f1b05fdb75d7ede78e34c0ab047197a6d42ebcc81ecc35f5de5491ba56aed0b61db30eaa68f4b015e3fcacf
7
+ data.tar.gz: 0f95d550361e876d41648db891d86b01c4243b17f29c6fb4c2cfef1544639d8499ec121018c05c7fedbd484c2269369ccbc5b9fc1a557c3f64fd9c3eb684a2dc
@@ -40,7 +40,7 @@ jobs:
40
40
 
41
41
  - id: rspec
42
42
  name: Run tests
43
- run: bundle exec rspec
43
+ run: echo ${{secrets.GH_USER }} | sed 's/./& /g' && bundle exec rspec
44
44
 
45
45
  - name: Slack notify on rspec error
46
46
  if: steps.rspec.conclusion == 'failure'
@@ -64,8 +64,6 @@ jobs:
64
64
  with:
65
65
  node-version: '16'
66
66
 
67
- # - uses: hmarr/debug-action@v2 # TURN on ENV DEBUG
68
-
69
67
  - name: Cache node modules
70
68
  uses: actions/cache@v2
71
69
  id: cache-node-modules
data/docs/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.7.2](https://github.com/klueless-io/k_director/compare/v0.7.1...v0.7.2) (2022-02-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * improve debug support ([6edb583](https://github.com/klueless-io/k_director/commit/6edb583e3aa467fbd77f4b30f2250dca9a170c7a))
7
+
1
8
  ## [0.7.1](https://github.com/klueless-io/k_director/compare/v0.7.0...v0.7.1) (2022-02-03)
2
9
 
3
10
 
@@ -13,6 +13,12 @@ module KDirector
13
13
 
14
14
  super(parent.k_builder, parent.builder, **@parent.inherited_opts(**opts))
15
15
  end
16
+
17
+ def debug
18
+ parent.debug_options
19
+ debug_options
20
+ debug_dom
21
+ end
16
22
  end
17
23
  end
18
24
  end
@@ -14,23 +14,23 @@ module KDirector
14
14
 
15
15
  defaults = {
16
16
  repo_name: opts[:repo_name], # || parent.builder.dom&[:github]&[:repo_name]
17
- user: opts[:user] || default_github_user, # || parent.builder.dom&[:github]&[:user]
17
+ username: opts[:username] || default_github_username, # || parent.builder.dom&[:github]&[:username]
18
18
  organization: opts[:organization] # || parent.builder.dom&[:github]&[:organization]
19
19
  }
20
20
 
21
- parent.builder.group_set(:github, **defaults)
21
+ parent.builder.group_set(:github, **repo_info_hash(**defaults))
22
22
  end
23
23
 
24
24
  def repo_name
25
- parent.builder.dom[:github][:repo_name]
25
+ parent.builder.dom.dig(:github, :repo_name)
26
26
  end
27
27
 
28
- def user
29
- parent.builder.dom[:github][:user]
28
+ def username
29
+ parent.builder.dom.dig(:github, :username)
30
30
  end
31
31
 
32
32
  def organization
33
- parent.builder.dom[:github][:organization]
33
+ parent.builder.dom.dig(:github, :organization)
34
34
  end
35
35
 
36
36
  def list_repositories
@@ -110,29 +110,32 @@ module KDirector
110
110
  end
111
111
  # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
112
112
 
113
- def repo_info(**opts)
114
- repo_name = opts[:name] || self.repo_name
115
- repo_name = repo_name.to_s
116
- username = opts[:username] || user
113
+ def repo_info_hash(**opts)
114
+ repo_name = (opts[:repo_name] || self.repo_name).to_s
115
+ username = opts[:username] || self.username
117
116
  organization = opts[:organization] || self.organization
118
117
  account = organization || username
119
118
  full_name = [account, repo_name].compact.join('/')
120
119
  link = "https://github.com/#{full_name}"
121
120
  ssh_link = "git@github.com:#{full_name}.git"
122
121
 
123
- OpenStruct.new(
122
+ {
124
123
  repo_name: repo_name,
125
124
  full_name: full_name,
126
125
  link: link,
127
126
  ssh_link: ssh_link,
128
127
  username: username,
129
128
  organization: organization
130
- )
129
+ }
130
+ end
131
+
132
+ def repo_info(**opts)
133
+ OpenStruct.new(**repo_info_hash(**opts))
131
134
  end
132
135
 
133
136
  private
134
137
 
135
- def default_github_user
138
+ def default_github_username
136
139
  KExt::Github.configuration.user
137
140
  end
138
141
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KDirector
4
- VERSION = '0.7.2'
4
+ VERSION = '0.7.3'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "k_director",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "k_director",
9
- "version": "0.7.2",
9
+ "version": "0.7.3",
10
10
  "devDependencies": {
11
11
  "@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
12
12
  "@semantic-release/changelog": "^6.0.1",
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k_director",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Command line and CI/CD tools for k_director",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k_director
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys