k_builder 0.0.37 → 0.0.39

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: '094bf462c5d39f6b39aa8df40e75d4623af9c5d1f6594109cb7afb4e9e82bfb2'
4
- data.tar.gz: 4dd0400aa1a64e797c56aacc53d3af7ef4cda66c5aca9bbc32f13aeb1604e481
3
+ metadata.gz: 5c8b5b5e5cc829fc8d5239d970cda55ef650e6d0b6bc5e6474a4d4172bde0661
4
+ data.tar.gz: c326954d805393dc3137c1b37642dfc507337d93319f8fd247bacfcb62d495e4
5
5
  SHA512:
6
- metadata.gz: a6196e9716b5e86f7cbdb5dba23252a5e7c477da329e2aa8a6a9989c59b790be10316130a9286fd6c5041c49d85a10282dc206a52ef5c73ce2ddf66601ad3c72
7
- data.tar.gz: 301407050730841e77aad746a32bf046c636970346c4cda6f158699a571d125617eef1e15159a6495ba81fff19c125e25578a57f84407958a19c12f73f706dea
6
+ metadata.gz: a8def8a344f419a00722f2e0d2c481603fa940e02dab468a8a28251c273f1c8b0d06310cfd496abcad82d331f99efeb4f5c57f0c25462ddb2ca50da2b83008d0
7
+ data.tar.gz: bf23b9b0c8bc4cba10a2f944889210baa0378008779dd4ac935a85d42826c83e12aad1f84c29904fcf96aa0e3c2545baa32cfb7cb2a7a84bbf3c48d67cdb10a7
@@ -125,10 +125,6 @@ module KBuilder
125
125
  end
126
126
  alias cd set_current_folder
127
127
 
128
- def current_folder_key
129
- target_folders.current
130
- end
131
-
132
128
  # Fluent adder for target folder (KBuilder::NamedFolders)
133
129
  def add_target_folder(folder_key, value)
134
130
  target_folders.add(folder_key, value)
@@ -136,16 +132,20 @@ module KBuilder
136
132
  self
137
133
  end
138
134
 
139
- # Get target folder
135
+ def current_folder_key
136
+ target_folders.current
137
+ end
138
+
139
+ # Get target folder by folder_key
140
140
  #
141
- # Defaults to current_target_folder
142
- def get_target_folder(folder_key = current_folder_key)
141
+ # If folder_key not supplied then get the current target folder
142
+ def target_folder(folder_key = current_folder_key)
143
143
  target_folders.get(folder_key)
144
144
  end
145
145
 
146
146
  # Get target file
147
147
  def target_file(file_parts, folder: current_folder_key)
148
- File.join(get_target_folder(folder), file_parts)
148
+ File.join(target_folder(folder), file_parts)
149
149
  end
150
150
 
151
151
  # Template folder & Files
@@ -243,11 +243,11 @@ module KBuilder
243
243
 
244
244
  def run_command(command)
245
245
  # Deep path create if needed
246
- target_folder = get_target_folder
246
+ tf = target_folder
247
247
 
248
- FileUtils.mkdir_p(target_folder)
248
+ FileUtils.mkdir_p(tf)
249
249
 
250
- build_command = "cd #{target_folder} && #{command}"
250
+ build_command = "cd #{tf} && #{command}"
251
251
 
252
252
  puts build_command
253
253
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KBuilder
4
- VERSION = '0.0.37'
4
+ VERSION = '0.0.39'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: k_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.37
4
+ version: 0.0.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys