atk_toolbox 0.0.91 → 0.0.92

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: b162529ce7d1285867d07af38c3142755747ce18e63a228e316d3e1f215bcc81
4
- data.tar.gz: c7d40ba78d1d2e8153b299e50588a361e9d8026efa0a845728969a74414b5282
3
+ metadata.gz: ab4bb6eb3be9d2f1df126dd10ff09f6307615e9592dce0d8948f7073aa18f326
4
+ data.tar.gz: 8b54c29248adc5fd2b69cb6d5155b8abbc0c62fdec23662e845fa83716f505a1
5
5
  SHA512:
6
- metadata.gz: dff4854c25700f833f7899be9efb8662d2362dc99cb5c845a43b50c122c4f8a508a35c7099cb34bf4d37f769080c218822a6b932cfa886d60f1bcfd3ba6f2e6e
7
- data.tar.gz: 28449fb8802cef9c283b5ee475dc2c60860bc19ec2216ac060f575f2fe9863346cf60b17622336b83c9d4604775878f956643db80070b2889356fedd80556d8f
6
+ metadata.gz: 127e75d7d7bdeaf28fcbb16cceb97e1df9cc0781d515015e63708de8afdd6940e9b82d0b13bb8908315647ab1038922e48dc46a1f45d1510e9d93a17d8b9da9d
7
+ data.tar.gz: e8097cb7e2a64f1535b0664508e3a512a1bc377a8c7dde14c3250cc4fa9638366906660a680f354ebb819e881a72554ae81c3025046f63e29bceae78d9192c03
@@ -143,10 +143,12 @@ module ATK
143
143
  sleep 1
144
144
  if setup_command.is_a?(Code)
145
145
  setup_command.run(arguments)
146
- else
147
- command_and_args = setup_command.split(/ */)
148
- console_args = command_and_args.concat(*arguments)
149
- system(*console_args)
146
+ else
147
+ safe_arguments = arguments.map do |each|
148
+ "'"+Console.single_quote_escape(each)+"'"
149
+ end
150
+ console_line = setup_command+' '+(safe_arguments.join(' '))
151
+ system(console_line)
150
152
  end
151
153
  end
152
154
  end
@@ -61,6 +61,10 @@ class TTY::Prompt
61
61
  def has_command(name_of_executable)
62
62
  return Console.path_for(name_of_executable) != ''
63
63
  end
64
+
65
+ def single_quote_escape(string)
66
+ string.gsub(/'/, "'\"'\"'")
67
+ end
64
68
  end
65
69
 
66
70
  Console = TTY::Prompt.new
@@ -230,7 +230,8 @@ class Info
230
230
  raise <<-HEREDOC.remove_indent
231
231
 
232
232
 
233
- When opening the info.yaml file, the (using_atk_version) was listed as: #{@@data['(using_atk_version)']}
233
+ When opening the info.yaml file in '#{self.folder}'
234
+ the (using_atk_version) was listed as: #{@@data['(using_atk_version)'].inspect}
234
235
  The version of atk_toolbox you have installed is only capable of handling version 1.0
235
236
  either atk_toolbox needs to be changed, or the (using_atk_version) version needs to be changed.
236
237
  HEREDOC
@@ -318,6 +319,8 @@ class Info
318
319
  if FS.file?(path)
319
320
  return FS.join(*folders)
320
321
  end
322
+ # go up the folders
323
+ folders.pop()
321
324
  end
322
325
  end
323
326
 
@@ -1,3 +1,3 @@
1
1
  module AtkToolbox
2
- VERSION = '0.0.91'
2
+ VERSION = '0.0.92'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atk_toolbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.91
4
+ version: 0.0.92
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Hykin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-17 00:00:00.000000000 Z
11
+ date: 2019-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zip