k_director 0.16.3 → 0.16.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/CHANGELOG.md +8 -0
- data/lib/k_director/directors/base_director.rb +22 -2
- data/lib/k_director/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb59e884dd83b02dae824a1d3874066ac2065c7cc8dda441315b07d1efebd80e
|
4
|
+
data.tar.gz: d85819122407467f137e34c98e0554ba68e0f2808d7fe11834dd9eb1f442fee1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 027c2b5cbe5e0e69e8b53990506ab4ab4b7f5a7c544b9721c6df65c54cad649e3537d6a009bba3142c07a1eecfe2373aab1119def2e3ddac73aabb4da270e838
|
7
|
+
data.tar.gz: 93f38039451479e4c2a6814bb74ccdef9674e365f0f6ace4d0fda4f6cced7e871b7262b5d8dd1350ce344a7bdbcbf005841d441d56a99a83b430bb24862a272a
|
data/docs/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## [0.16.3](https://github.com/klueless-io/k_director/compare/v0.16.2...v0.16.3) (2022-07-08)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* add json_dom support ([03d0b5e](https://github.com/klueless-io/k_director/commit/03d0b5e2de6b4f37780416acd4c72bd2ea9b2eb6))
|
7
|
+
* add json_dom support ([ef623b9](https://github.com/klueless-io/k_director/commit/ef623b913122314618dce195e4050594c802f3ad))
|
8
|
+
|
1
9
|
## [0.16.2](https://github.com/klueless-io/k_director/compare/v0.16.1...v0.16.2) (2022-07-08)
|
2
10
|
|
3
11
|
|
@@ -27,12 +27,31 @@ module KDirector
|
|
27
27
|
|
28
28
|
@builder_type = KDirector::Builders::ActionsBuilder
|
29
29
|
end
|
30
|
+
|
31
|
+
# valid values %i[skip write compare]
|
32
|
+
def default_on_exist(on_exist)
|
33
|
+
@on_exist = on_exist
|
34
|
+
end
|
35
|
+
|
36
|
+
def on_exist
|
37
|
+
@on_exist ||= :skip
|
38
|
+
end
|
39
|
+
|
40
|
+
# valid values %i[queue execute]
|
41
|
+
def default_on_action(on_action)
|
42
|
+
@on_action = on_action
|
43
|
+
end
|
44
|
+
|
45
|
+
def on_action
|
46
|
+
@on_action ||= :queue
|
47
|
+
end
|
30
48
|
end
|
31
49
|
|
32
50
|
attr_reader :builder
|
33
51
|
attr_reader :k_builder
|
34
52
|
attr_reader :options
|
35
53
|
|
54
|
+
# rubocop:disable Metrics/AbcSize
|
36
55
|
def initialize(k_builder, builder, **opts)
|
37
56
|
@k_builder = k_builder
|
38
57
|
@builder = builder
|
@@ -40,10 +59,11 @@ module KDirector
|
|
40
59
|
|
41
60
|
@options.director_name ||= default_director_name
|
42
61
|
@options.template_base_folder ||= default_template_base_folder
|
43
|
-
@options.on_exist ||=
|
44
|
-
@options.on_action ||=
|
62
|
+
@options.on_exist ||= self.class.on_exist # %i[skip write compare]
|
63
|
+
@options.on_action ||= self.class.on_action # %i[queue execute]
|
45
64
|
@options.active = true unless defined?(@options.active)
|
46
65
|
end
|
66
|
+
# rubocop:enable Metrics/AbcSize
|
47
67
|
|
48
68
|
def data(name = nil, **opts)
|
49
69
|
KDirector::Directors::Data.new(self, name, **opts)
|
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.16.
|
3
|
+
"version": "0.16.4",
|
4
4
|
"lockfileVersion": 2,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "k_director",
|
9
|
-
"version": "0.16.
|
9
|
+
"version": "0.16.4",
|
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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: k_director
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: k_config
|