k_director 0.13.0 → 0.15.0

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: 0645035ffbb7e6e30736af97a519db598dd647447a6b6786ad36eb95c204cd6c
4
- data.tar.gz: a7b8f8fe828b920f23334f5924c788b3795200be39b29668ce302b6754ed0ddf
3
+ metadata.gz: 49077a969ebb0b0f64b065c71fb565e5f907fd020bd699da29bb33422822c91e
4
+ data.tar.gz: b109f121363f1d1ef156af1068cf18c6c2d78e3905705a406c630d3e6e53743b
5
5
  SHA512:
6
- metadata.gz: 5b275862af73871cde31be688c7e93a5e5fb9fd030fc1b05a6caaee66f152ec6cabec2695f23e29378ae68a48ce53023c4fd485eb45951bfe508a9cfee550db6
7
- data.tar.gz: 6005f09b2a060177da0c5378d9638d42cae1b97e932d97ed220147a658ee9b2907bae4d3715017923247587309baf230212a81b69fc5ccc6e6feee495c49b432
6
+ metadata.gz: 5d429aca8a8aa79ed6395339f4350244896342a91d707f5a3fb2fd8dd061782b316388b914d6d2087d0f822a54c1c00efe1f6c12c1a8620cb0354fa72ac6e395
7
+ data.tar.gz: de65eb053b7ca8f8bf0cd742209e1f4cfdcb282b04c589dd0ff7d63ee7d9f11eac731c6e70ef09488437c20cac832988abaf233c9cf9f1ad217662d9ce5e250b
data/.builders/boot.rb CHANGED
@@ -68,4 +68,4 @@ resource_manager
68
68
  .glob('generators/**/*.rb')
69
69
  resource_manager.add_resources
70
70
 
71
- KManager.fire_actions(:load_content, :register_document, :load_document)
71
+ KManager.boot
data/docs/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## [0.14.1](https://github.com/klueless-io/k_director/compare/v0.14.0...v0.14.1) (2022-03-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * handle case where base_director does not use a builder with .dom ([a1e868c](https://github.com/klueless-io/k_director/commit/a1e868c14bc0e331494e428b77113691c88efd16))
7
+
8
+ # [0.14.0](https://github.com/klueless-io/k_director/compare/v0.13.0...v0.14.0) (2022-02-27)
9
+
10
+
11
+ ### Features
12
+
13
+ * update ready for DrawioDSL ([ee5fc75](https://github.com/klueless-io/k_director/commit/ee5fc757c6983b307adcb6bf5e7eb0a887a83afc))
14
+
15
+ # [0.13.0](https://github.com/klueless-io/k_director/compare/v0.12.1...v0.13.0) (2022-02-11)
16
+
17
+
18
+ ### Features
19
+
20
+ * dom builder set method now uses value: and will support hashes as a value ([24145a1](https://github.com/klueless-io/k_director/commit/24145a15d03b9670a605846b5c1dcb4635bb374d))
21
+
1
22
  ## [0.12.1](https://github.com/klueless-io/k_director/compare/v0.12.0...v0.12.1) (2022-02-11)
2
23
 
3
24
 
@@ -18,15 +18,15 @@ module KDirector
18
18
  new(k_builder, builder, **opts)
19
19
  end
20
20
 
21
+ def default_builder_type(type)
22
+ @builder_type = type
23
+ end
24
+
21
25
  def builder_type
22
26
  return @builder_type if defined? @builder_type
23
27
 
24
28
  @builder_type = KDirector::Builders::ActionsBuilder
25
29
  end
26
-
27
- def default_builder_type(type)
28
- @builder_type = type
29
- end
30
30
  end
31
31
 
32
32
  attr_reader :builder
@@ -58,7 +58,9 @@ module KDirector
58
58
  end
59
59
 
60
60
  def dom
61
- builder.dom
61
+ return builder.dom if defined?(builder.dom)
62
+
63
+ nil
62
64
  end
63
65
 
64
66
  def typed_dom
@@ -158,6 +160,24 @@ module KDirector
158
160
  # rubocop:enable Naming/AccessorMethodName
159
161
  alias cd set_current_folder_action
160
162
 
163
+ # Add content to the clipboard
164
+ #
165
+ # @option opts [String] :content Supply the content that you want to write to the file
166
+ # @option opts [String] :template Supply the template that you want to write to the file, template will be processed ('nobody') From address
167
+ # @option opts [String] :content_file File with content, file location is based on where the program is running
168
+ # @option opts [String] :template_file File with handlebars templated content that will be transformed, file location is based on the configured template_path
169
+ #
170
+ # Extra options will be used as data for templates, e.g
171
+ # @option opts [String] :to Recipient email
172
+ # @option opts [String] :body The email's body
173
+ def add_clipboard(**opts)
174
+ # RUN (not handle), current folder effects subsequent actions and so it needs to be executed straight away.
175
+ run_action(k_builder.add_clipboard_action(**opts))
176
+
177
+ self
178
+ end
179
+ alias clipboard_copy add_clipboard
180
+
161
181
  # Run a command using shell, this is useful with command line tools
162
182
  def run_command(command)
163
183
  handle_action(k_builder.run_command_action(command))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KDirector
4
- VERSION = '0.13.0'
4
+ VERSION = '0.15.0'
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "k_director",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "k_director",
9
- "version": "0.13.0",
9
+ "version": "0.15.0",
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.13.0",
3
+ "version": "0.15.0",
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.13.0
4
+ version: 0.15.0
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-02-11 00:00:00.000000000 Z
11
+ date: 2022-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: k_config