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 +4 -4
- data/.github/workflows/main.yml +1 -3
- data/docs/CHANGELOG.md +7 -0
- data/lib/k_director/directors/child_director.rb +6 -0
- data/lib/k_director/dsls/children/github.rb +16 -13
- data/lib/k_director/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz: '
|
3
|
+
metadata.gz: 79bee3921fd36eed9af19652f48ae05a8728eb9365f72650a2ba0d2c7faf8af1
|
4
|
+
data.tar.gz: '086b5152c66060aed6fb4c468507d95f7565599a03cb175243484e6e6ac81ef6'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ada0c1e8995f0c42e3c8c5d74ab5ee265c945d20f1b05fdb75d7ede78e34c0ab047197a6d42ebcc81ecc35f5de5491ba56aed0b61db30eaa68f4b015e3fcacf
|
7
|
+
data.tar.gz: 0f95d550361e876d41648db891d86b01c4243b17f29c6fb4c2cfef1544639d8499ec121018c05c7fedbd484c2269369ccbc5b9fc1a557c3f64fd9c3eb684a2dc
|
data/.github/workflows/main.yml
CHANGED
@@ -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
|
|
@@ -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
|
-
|
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
|
25
|
+
parent.builder.dom.dig(:github, :repo_name)
|
26
26
|
end
|
27
27
|
|
28
|
-
def
|
29
|
-
parent.builder.dom
|
28
|
+
def username
|
29
|
+
parent.builder.dom.dig(:github, :username)
|
30
30
|
end
|
31
31
|
|
32
32
|
def organization
|
33
|
-
parent.builder.dom
|
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
|
114
|
-
repo_name = opts[:
|
115
|
-
|
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
|
-
|
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
|
138
|
+
def default_github_username
|
136
139
|
KExt::Github.configuration.user
|
137
140
|
end
|
138
141
|
|
data/lib/k_director/version.rb
CHANGED
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "k_director",
|
3
|
-
"version": "0.7.
|
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.
|
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