atk_toolbox 0.0.30 → 0.0.31
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 +4 -4
- data/lib/atk/set_command.rb +6 -9
- data/lib/atk_toolbox/version.rb +1 -1
- metadata +1 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83fe1f43fb1c6cc4f8299b1ecca71ac1cbe09c03c24394d4426c216d933e944c
|
4
|
+
data.tar.gz: 7fba98d04e3f533fb7b8681ce215d216a7e0170e4ce7e7351597fa8fb6fbde4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76184fe54054db1e72629f27cdc60b099e34e57ee91f4a82577654500bfe563d8f98e5725b1874f009185097d90ff06f8e441861013f1cba0e77f8b8f68e9f70
|
7
|
+
data.tar.gz: 12f7eb7d64988e9f63885f15af52d69f117fd1ac38c504606f59f76daa23e4f970ae62073f63a75739ebc791a31bfd8159c875ed1ba50d21605b389f823e5d1b
|
data/lib/atk/set_command.rb
CHANGED
@@ -15,14 +15,11 @@ def set_command(name, code)
|
|
15
15
|
system("sudo", "chmod", "o+x", exec_path)
|
16
16
|
elsif OS.is?("windows")
|
17
17
|
username = `powershell -command "echo $env:UserName"`.chomp
|
18
|
-
exec_path = "C:\\Users\\#{username}\\AppData\\local\\Microsoft\\WindowsApps\\#{name}
|
19
|
-
|
20
|
-
#
|
21
|
-
|
22
|
-
#
|
23
|
-
IO.write(
|
24
|
-
system("orca", local_place ,"--no-dep-run")
|
25
|
-
temp_exe_file = local_place.gsub(/\.rb$/, "") + ".exe"
|
26
|
-
FileUtils.move(temp_exe_file, exec_path)
|
18
|
+
exec_path = "C:\\Users\\#{username}\\AppData\\local\\Microsoft\\WindowsApps\\#{name}"
|
19
|
+
|
20
|
+
# create the code
|
21
|
+
IO.write(exec_path+".rb", code)
|
22
|
+
# create an executable to call the code
|
23
|
+
IO.write(exec_path+".bat", "ruby \".\\#{name}\" %*")
|
27
24
|
end
|
28
25
|
end
|
data/lib/atk_toolbox/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Hykin
|
@@ -70,26 +70,6 @@ dependencies:
|
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: 0.9.2
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: ocra
|
75
|
-
requirement: !ruby/object:Gem::Requirement
|
76
|
-
requirements:
|
77
|
-
- - "~>"
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: 1.3.10
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 1.3.10
|
83
|
-
type: :runtime
|
84
|
-
prerelease: false
|
85
|
-
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 1.3.10
|
90
|
-
- - ">="
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: 1.3.10
|
93
73
|
description: ''
|
94
74
|
email: jeff.hykin@gmail.com
|
95
75
|
executables: []
|