atk_toolbox 0.0.121 → 0.0.124

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 486e40ea53588f25d606994917e695d9cb5c28c6b66171692002211503abcf1a
4
- data.tar.gz: a2ebbc47d856d2490d3182f925e1a59f46057123a1201c6571736eb4bbf52089
3
+ metadata.gz: 8c587820c85d4cb00282cd60f5ecac5e4d1b60650d3a382f3636ab1047439231
4
+ data.tar.gz: 0b261ba2505b5f9fe28bf58c7142f3dc0b829a6df329c5faa577fd246a52e58c
5
5
  SHA512:
6
- metadata.gz: 6bd7358207fe430594a350aebb6e72ed6feb8f46730aa1bb11437e53a5c4ce8c814c00281cbd417ef471dde1597146eac66f0c4110d0f21b5f0bcb6479ba16c4
7
- data.tar.gz: e2a48ce5e1beeec37e233b9fa1fde40af50b0419a2c433f3adaf8b6f40f3c9ddcd51a016d5c0d5c160ad7f7c62a713ad3cfefc23643f53ce0713fa730837780f
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 "=============================="
@@ -149,7 +149,7 @@ class Info
149
149
  rescue => exception
150
150
  # if no version, then don't worry about parsing
151
151
  end
152
- if nil != version
152
+ if version.is_a?(Version)
153
153
  begin
154
154
  if version <= Version.new("1.0.0")
155
155
  self.parser_version1(@data)
@@ -1,3 +1,3 @@
1
1
  module AtkToolbox
2
- VERSION = '0.0.121'
2
+ VERSION = '0.0.124'
3
3
  end
@@ -16,6 +16,8 @@ end
16
16
  #
17
17
  Gem.post_install do
18
18
  post_version = Atk.version
19
- require_relative './update_handler.rb'
20
- Atk.migrate(pre_version, post_version)
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.121
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
@@ -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