k_builder 0.0.74 → 0.0.75
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/USAGE.md +2 -2
- data/lib/k_builder/base_builder.rb +11 -1
- data/lib/k_builder/version.rb +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: a432a388ce390634de8eb468c6039363fbab90a2989d33ac2b8220c2760bdfb2
|
4
|
+
data.tar.gz: 7dc8058c7ec98d683fc337f39d5bb4bce706f6cfb2b27d5adeed370d783a57fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26ad9ec1140503a8acabe33c7cf8f0daa57e53592d51e475b244b76c5fea344c9baac5239d59d20257c2fae0a0df25b980bd9bcd1d2c2a17324dc0384647bf27
|
7
|
+
data.tar.gz: bc01fae9a9e40e5ef62de671e3afcd6955db116a34fc2230e5f1c3899789be37170d82e358c44fd509c86f04672c7c60b2089bd7f1d677f7c707011bcdda188b
|
data/README.md
CHANGED
@@ -50,7 +50,7 @@ Check out usage.md for more details
|
|
50
50
|
```ruby
|
51
51
|
usecases_folder = File.join(Dir.getwd, 'spec', 'usecases')
|
52
52
|
|
53
|
-
|
53
|
+
KConfig.configure do |config|
|
54
54
|
config.template_folder = File.join(usecases_folder, '.app_template')
|
55
55
|
config.global_template_folder = File.join(usecases_folder, '.global_template')
|
56
56
|
config.target_folder = File.join(usecases_folder, '.output')
|
data/USAGE.md
CHANGED
@@ -13,13 +13,13 @@ Print the configuration
|
|
13
13
|
```ruby
|
14
14
|
usecases_folder = File.join(Dir.getwd, 'spec', 'usecases')
|
15
15
|
|
16
|
-
|
16
|
+
KConfig.configure do |config|
|
17
17
|
config.template_folder = File.join(usecases_folder, '.app_template')
|
18
18
|
config.global_template_folder = File.join(usecases_folder, '.global_template')
|
19
19
|
config.target_folder = File.join(usecases_folder, '.output')
|
20
20
|
end
|
21
21
|
|
22
|
-
puts JSON.pretty_generate(
|
22
|
+
puts JSON.pretty_generate(KConfig.configuration.to_hash)
|
23
23
|
```
|
24
24
|
|
25
25
|
```javascript
|
@@ -175,9 +175,11 @@ module KBuilder
|
|
175
175
|
def run_action(action)
|
176
176
|
case action[:action]
|
177
177
|
when :add_file
|
178
|
-
add_file(action[:file], action[:opts])
|
178
|
+
add_file(action[:file], **action[:opts])
|
179
179
|
when :delete_file
|
180
180
|
delete_file(action[:file], action[:opts])
|
181
|
+
when :add_clipboard
|
182
|
+
add_clipboard(action[:opts])
|
181
183
|
when :vscode
|
182
184
|
vscode(action[:file_parts], action[:opts])
|
183
185
|
when :browse
|
@@ -267,6 +269,14 @@ module KBuilder
|
|
267
269
|
end
|
268
270
|
alias clipboard_copy add_clipboard
|
269
271
|
|
272
|
+
def add_clipboard_action(**opts)
|
273
|
+
{
|
274
|
+
action: :add_clipboard,
|
275
|
+
played: false,
|
276
|
+
opts: opts
|
277
|
+
}
|
278
|
+
end
|
279
|
+
|
270
280
|
def vscode_action(*file_parts, folder_key: current_folder_key, file: nil)
|
271
281
|
{
|
272
282
|
action: :vscode,
|
data/lib/k_builder/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: k_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.75
|
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: handlebars-helpers
|