k_builder 0.0.74 → 0.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba7eb819303b0c16a00de3d75a74276acbe7813d205a8b380395156b375977ed
4
- data.tar.gz: 37fdae6f2e90fbe8f26f368a0565a8916f6911e2fa5696a4d7973f662397a27a
3
+ metadata.gz: a432a388ce390634de8eb468c6039363fbab90a2989d33ac2b8220c2760bdfb2
4
+ data.tar.gz: 7dc8058c7ec98d683fc337f39d5bb4bce706f6cfb2b27d5adeed370d783a57fb
5
5
  SHA512:
6
- metadata.gz: 4dbb5a5c8322b7d79331fc542f39d01ed6ac6540937468b59b89e95d34a3104b452bac4578f4862435e1e727081c53df5e031e9a0429ac34c13d178c5c43ead2
7
- data.tar.gz: 8f86d00742b9d61bc3938a135535317688e098edc0f362e837dd2a958cfa8ae6c546d92c8d0ad5a94f499f6352e96cefe28f6d0215b07f13e13a0c9339a0e8fa
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
- KBuilder.configure do |config|
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
- KBuilder.configure do |config|
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(KBuilder.configuration.to_hash)
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KBuilder
4
- VERSION = '0.0.74'
4
+ VERSION = '0.0.75'
5
5
  end
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.74
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-02-05 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: handlebars-helpers