atk_toolbox 0.0.121 → 0.0.124
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/after_gem_update.rb +26 -0
- data/lib/atk/yaml_info_parser.rb +1 -1
- data/lib/atk_toolbox/version.rb +1 -1
- data/lib/rubygems_plugin.rb +4 -2
- metadata +2 -2
- data/lib/update_handler.rb +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c587820c85d4cb00282cd60f5ecac5e4d1b60650d3a382f3636ab1047439231
|
4
|
+
data.tar.gz: 0b261ba2505b5f9fe28bf58c7142f3dc0b829a6df329c5faa577fd246a52e58c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 559793cc4c443e1c7b5ff525514ae130a8470b6278c75fa60cd663bd1f398bb462bc81356c633b51f80feef36657d7d4bb777fab01341ccccedc256f197ca8ed
|
7
|
+
data.tar.gz: 3f1c1192bb6e869e8e09da47fb96f9ed269f6f74ac8c97ab4b30eeb667adec8c8554503efa02e1c32101d32af3fcb3eb37898a777fbe8d8415b30eed004243e4
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'atk_toolbox'
|
2
|
+
|
3
|
+
# helper function
|
4
|
+
download_and_install_command = ->(command) do
|
5
|
+
atk_command_download_path = Atk.temp_path("#{command}.rb")
|
6
|
+
source = "https://raw.githubusercontent.com/aggie-tool-kit/atk-toolbox/master/custom_bin"
|
7
|
+
FS.download("#{source}/#{command}" , to: atk_command_download_path)
|
8
|
+
Console.set_command(command, FS.read(atk_command_download_path))
|
9
|
+
end
|
10
|
+
|
11
|
+
#
|
12
|
+
# overwrite the commands
|
13
|
+
#
|
14
|
+
download_and_install_command["atk"]
|
15
|
+
download_and_install_command["project"]
|
16
|
+
download_and_install_command["_"]
|
17
|
+
|
18
|
+
#
|
19
|
+
# print success
|
20
|
+
#
|
21
|
+
puts ""
|
22
|
+
puts ""
|
23
|
+
puts ""
|
24
|
+
puts "=============================="
|
25
|
+
puts " ATK installed "
|
26
|
+
puts "=============================="
|
data/lib/atk/yaml_info_parser.rb
CHANGED
data/lib/atk_toolbox/version.rb
CHANGED
data/lib/rubygems_plugin.rb
CHANGED
@@ -16,6 +16,8 @@ end
|
|
16
16
|
#
|
17
17
|
Gem.post_install do
|
18
18
|
post_version = Atk.version
|
19
|
-
|
20
|
-
Atk.
|
19
|
+
# download the latest
|
20
|
+
temp_file = Atk.temp_path("update_handler.rb")
|
21
|
+
FS.download("https://raw.githubusercontent.com/aggie-tool-kit/atk-toolbox/master/lib/after_gem_update.rb", to: temp_file)
|
22
|
+
system(Atk.paths["ruby"], temp_file)
|
21
23
|
end
|
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.124
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Hykin
|
@@ -96,6 +96,7 @@ executables: []
|
|
96
96
|
extensions: []
|
97
97
|
extra_rdoc_files: []
|
98
98
|
files:
|
99
|
+
- lib/after_gem_update.rb
|
99
100
|
- lib/atk/atk_info.rb
|
100
101
|
- lib/atk/autocomplete.rb
|
101
102
|
- lib/atk/commands/project.rb
|
@@ -115,7 +116,6 @@ files:
|
|
115
116
|
- lib/atk_toolbox.rb
|
116
117
|
- lib/atk_toolbox/version.rb
|
117
118
|
- lib/rubygems_plugin.rb
|
118
|
-
- lib/update_handler.rb
|
119
119
|
- test/info.yaml
|
120
120
|
- test/main.rb
|
121
121
|
homepage: http://github.com//atk-toolbox
|
data/lib/update_handler.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
module Atk
|
2
|
-
def self.migrate(old_version, new_version)
|
3
|
-
require 'atk_toolbox'
|
4
|
-
|
5
|
-
# helper function
|
6
|
-
download_and_install_command = ->(command) do
|
7
|
-
atk_command_download_path = Atk.temp_path("#{command}.rb")
|
8
|
-
source = "https://raw.githubusercontent.com/aggie-tool-kit/atk-toolbox/master/custom_bin"
|
9
|
-
FS.download("#{source}/#{command}" , to: atk_command_download_path)
|
10
|
-
Console.set_command(command, FS.read(atk_command_download_path))
|
11
|
-
end
|
12
|
-
|
13
|
-
#
|
14
|
-
# overwrite the commands
|
15
|
-
#
|
16
|
-
download_and_install_command["atk"]
|
17
|
-
download_and_install_command["project"]
|
18
|
-
download_and_install_command["_"]
|
19
|
-
|
20
|
-
#
|
21
|
-
# print success
|
22
|
-
#
|
23
|
-
puts ""
|
24
|
-
puts ""
|
25
|
-
puts ""
|
26
|
-
puts "=============================="
|
27
|
-
puts " ATK installed "
|
28
|
-
puts "=============================="
|
29
|
-
end
|
30
|
-
end
|