k_director 0.14.0 → 0.15.1
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 +21 -0
- data/k_director.gemspec +0 -1
- data/lib/k_director/directors/base_director.rb +26 -5
- data/lib/k_director/version.rb +1 -1
- data/lib/k_director.rb +0 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f93ef6bb2be99f4315eff497391b1de0075fcb5cef3dc8b36357d378b2d8c049
|
4
|
+
data.tar.gz: 58a8809e13eeb425fef937fc7ace610ae23f60be859a8d3801831368553f00a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e90beeb6ab312f33830f23a7142271707dcd763e608c38f529b9680966161a056d257e51e0dc2386e837041dcb8d7672359ae59d3add86ff3a18bf8159d8f63f
|
7
|
+
data.tar.gz: 8cd6e0a6191c8aa62359bcf7e97879ee9fc4f6d7ce02fcd37fe8223a13cd9bc657ae7c1bfee1852d1a4d49d573e16bdffadfa27381b0ba9bca191aa4c25f298d
|
data/docs/CHANGELOG.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
# [0.15.0](https://github.com/klueless-io/k_director/compare/v0.14.1...v0.15.0) (2022-03-05)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* add clipboard action to director ([f5a8e4d](https://github.com/klueless-io/k_director/commit/f5a8e4d20c448630792a8ec13faacaf10e151b21))
|
7
|
+
|
8
|
+
## [0.14.1](https://github.com/klueless-io/k_director/compare/v0.14.0...v0.14.1) (2022-03-01)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* handle case where base_director does not use a builder with .dom ([a1e868c](https://github.com/klueless-io/k_director/commit/a1e868c14bc0e331494e428b77113691c88efd16))
|
14
|
+
|
15
|
+
# [0.14.0](https://github.com/klueless-io/k_director/compare/v0.13.0...v0.14.0) (2022-02-27)
|
16
|
+
|
17
|
+
|
18
|
+
### Features
|
19
|
+
|
20
|
+
* update ready for DrawioDSL ([ee5fc75](https://github.com/klueless-io/k_director/commit/ee5fc757c6983b307adcb6bf5e7eb0a887a83afc))
|
21
|
+
|
1
22
|
# [0.13.0](https://github.com/klueless-io/k_director/compare/v0.12.1...v0.13.0) (2022-02-11)
|
2
23
|
|
3
24
|
|
data/k_director.gemspec
CHANGED
@@ -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,25 @@ 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
|
+
alias clipboard add_clipboard
|
181
|
+
|
161
182
|
# Run a command using shell, this is useful with command line tools
|
162
183
|
def run_command(command)
|
163
184
|
handle_action(k_builder.run_command_action(command))
|
data/lib/k_director/version.rb
CHANGED
data/lib/k_director.rb
CHANGED
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "k_director",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.15.1",
|
4
4
|
"lockfileVersion": 2,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "k_director",
|
9
|
-
"version": "0.
|
9
|
+
"version": "0.15.1",
|
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.
|
4
|
+
version: 0.15.1
|
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-
|
11
|
+
date: 2022-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: k_config
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.0.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: nokogiri
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1.13'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '1.13'
|
97
83
|
description: " KDirector provides domain specific language implementations for
|
98
84
|
code generation\n"
|
99
85
|
email:
|