atk_toolbox 0.0.8 → 0.0.9

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: bada98c2382c3cfa12bb3b99ef52424cfdd3951caab714928c761b82115af496
4
- data.tar.gz: 8a6e02a6237a393d7fec73d700705ed5608e3964ecffe268d1f5cbb29f04233e
3
+ metadata.gz: cf71a4ec9a8b64b85b81d515f6da490a41f2fed6944ad0d4ff476f77785bc3aa
4
+ data.tar.gz: bac3cb07014c0aa0ebeaa92e78e8809113211c2cf7e1959cd8951fffe9c62773
5
5
  SHA512:
6
- metadata.gz: f5ca7f9cbd354b9dc7e2c0f8caed46ea69136279fbfb317666deb0f3763ce2f83f57543268c70ce405eb177797558c613be53150fb4a56be6c4badf3a1bea208
7
- data.tar.gz: 3c2e188f3195c1df296aa0101ff296d8d8adbac557f9b93746db793a52d15fb394b99450050136896243b0409fe93fa75c9b8aa1db865d92101f847f1fc037c5
6
+ metadata.gz: 69aace58db2ad9c9c1f906fb82812a982ed82fa5c9cbdb180f3550b17dc10abf6d8326c2f8070b2ac5d42874935fe8c21cd9fa8d17221b0e3c4f79e52305dcfb
7
+ data.tar.gz: c6fbf127384cd06dd997f44346d3841866963762541705a0cd58ab599b92b2badcc32f9a59f763e98ec42f5b748b86f579d305c8fbdfe94507d282ff7d3a9cfd
data/lib/atk/cmd.rb CHANGED
@@ -10,6 +10,8 @@ def commandline_args()
10
10
  return the_args
11
11
  end
12
12
 
13
+ # TODO: switch to using https://github.com/piotrmurach/tty-command#2-interface
14
+
13
15
  # easy access to the commandline
14
16
  class String
15
17
  # add a - operator to strings that makes it behave like a system() call
@@ -24,6 +26,7 @@ end
24
26
  #
25
27
  # Q&A Functions
26
28
  #
29
+ # TODO: replace these with https://github.com/piotrmurach/tty-prompt
27
30
  def ask_yes_or_no(question)
28
31
  loop do
29
32
  puts question
@@ -0,0 +1,8 @@
1
+ require 'etc'
2
+ HOME = Etc.getpwuid.dir
3
+
4
+ class String
5
+ def |(next_string)
6
+ File.join(self, next_string)
7
+ end
8
+ end
data/lib/atk/os.rb CHANGED
@@ -42,6 +42,8 @@ os_heirarchy = {
42
42
  "android" => {},
43
43
  }
44
44
 
45
+ # TODO: look into using https://github.com/piotrmurach/tty-platform
46
+
45
47
  #
46
48
  # Groups
47
49
  #
@@ -1,3 +1,3 @@
1
1
  module AtkToolbox
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
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.8
4
+ version: 0.0.9
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-06-07 00:00:00.000000000 Z
11
+ date: 2019-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zip
@@ -39,6 +39,7 @@ files:
39
39
  - lib/atk/cmd.rb
40
40
  - lib/atk/default_info.yaml
41
41
  - lib/atk/download.rb
42
+ - lib/atk/extra_file_utils.rb
42
43
  - lib/atk/online.rb
43
44
  - lib/atk/os.rb
44
45
  - lib/atk/output.rb