atk_toolbox 0.0.147 → 0.0.148
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/atk/atk_info.rb +5 -1
- data/lib/atk/console.rb +6 -4
- data/lib/atk_toolbox/version.rb +1 -1
- metadata +26 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2ef80e16df596fae11f5ea313ae4b4afd0285a1bc135658507b938f9d6cc54f
|
4
|
+
data.tar.gz: b56eaac7e7a1a68a400d40afe7fde07b539355aa9f98b59c98c920f01994c8ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adbca59652831fbeeb6e3a3c0a17886bbe4e301ca93a237788edd86479e7891753c7f935028c1ede02dacf66a0abaa59e0ad5d6d252f0d5001581183750638ad
|
7
|
+
data.tar.gz: ee3d50bc9cf2b9270c8ea21833ae7aa7a82fe4b3ba415ff0e9763d67fa9115c907dc524255b990e3633e3f316efc458dabecc0d008ccc1a553445f1221110db0
|
data/lib/atk/atk_info.rb
CHANGED
@@ -33,7 +33,11 @@ class AtkPaths
|
|
33
33
|
end
|
34
34
|
return ruby_path
|
35
35
|
when 'gem'
|
36
|
-
|
36
|
+
gem_path = AtkPaths["ruby"].sub(/\/ruby$/,"\/gem")
|
37
|
+
if FS.file?(gem_path)
|
38
|
+
return gem_path
|
39
|
+
end
|
40
|
+
# FUTURE: this should eventually have better error handling
|
37
41
|
return OS.path_for_executable("gem")
|
38
42
|
when 'repos'
|
39
43
|
return HOME/"atk"/"repos"
|
data/lib/atk/console.rb
CHANGED
@@ -3,10 +3,12 @@ require_relative "../console_colors.rb"
|
|
3
3
|
require_relative "./remove_indent.rb"
|
4
4
|
|
5
5
|
# easy access to the commandline
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
module Atk
|
7
|
+
refine String do
|
8
|
+
# add a - operator to strings that makes it behave like a system() call
|
9
|
+
def -@
|
10
|
+
return system(self)
|
11
|
+
end
|
10
12
|
end
|
11
13
|
end
|
12
14
|
|
data/lib/atk_toolbox/version.rb
CHANGED
metadata
CHANGED
@@ -1,35 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atk_toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.148
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Hykin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-prompt
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.19.0
|
20
|
-
- - "
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 0.19.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.19.0
|
27
30
|
- - ">="
|
28
31
|
- !ruby/object:Gem::Version
|
29
32
|
version: 0.19.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: ruby2_keywords
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
30
37
|
- - "~>"
|
31
38
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
39
|
+
version: 0.0.2
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.0.2
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 0.0.2
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.0.2
|
33
53
|
description: ''
|
34
54
|
email: jeff.hykin@gmail.com
|
35
55
|
executables: []
|
@@ -73,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
93
|
- !ruby/object:Gem::Version
|
74
94
|
version: '0'
|
75
95
|
requirements: []
|
76
|
-
rubygems_version: 3.
|
96
|
+
rubygems_version: 3.1.2
|
77
97
|
signing_key:
|
78
98
|
specification_version: 4
|
79
99
|
summary: The Ruby gem for all the standard tools ATK uses internally
|