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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0711b8c959091c912cdcf08d94ad24c6d04b2e05347ec449bb7bf190aa21e2f
4
- data.tar.gz: f0e31338f498bf020920b86ff45b3d3fa39f3a2fe6385c5827ecc79b13700d0d
3
+ metadata.gz: fb59e884dd83b02dae824a1d3874066ac2065c7cc8dda441315b07d1efebd80e
4
+ data.tar.gz: d85819122407467f137e34c98e0554ba68e0f2808d7fe11834dd9eb1f442fee1
5
5
  SHA512:
6
- metadata.gz: 5df0491a12b2087e6166cc710c7138c4a5fa1de08e20e54c429c24d06d2ecf37e10d6656447b5d01fb3b18c04a09bb45f1e7df8d795eceef1e7232c5d9522e94
7
- data.tar.gz: 8b41eea66201a19b647e839cb5656587f14a6d3278404d75eccc2c4bc9256cfaba950c82473d19094ca27cb950951f590c7edc6d2dc1331d349c80c403d4123a
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 ||= :skip # %i[skip write compare]
44
- @options.on_action ||= :queue # %i[queue execute]
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KDirector
4
- VERSION = '0.16.3'
4
+ VERSION = '0.16.4'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "k_director",
3
- "version": "0.16.3",
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.3",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k_director",
3
- "version": "0.16.3",
3
+ "version": "0.16.4",
4
4
  "description": "Command line and CI/CD tools for k_director",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
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.3
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-08 00:00:00.000000000 Z
11
+ date: 2022-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: k_config