drakkon 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/bin/drakkon +1 -3
  3. data/lib/drakkon/build.rb +1 -1
  4. data/lib/drakkon/cli.rb +1 -1
  5. data/lib/drakkon/gem/bundle.rb +1 -1
  6. data/lib/drakkon/gem/cli.rb +1 -1
  7. data/lib/drakkon/gem/configure.rb +1 -1
  8. data/lib/drakkon/gem/helpers/general.rb +1 -1
  9. data/lib/drakkon/gem/install.rb +1 -1
  10. data/lib/drakkon/init.rb +1 -1
  11. data/lib/drakkon/lib/images/biggest.rb +1 -1
  12. data/lib/drakkon/lib/images/blur.rb +1 -1
  13. data/lib/drakkon/lib/images/bulk_rename.rb +1 -1
  14. data/lib/drakkon/lib/images/canvas.rb +1 -1
  15. data/lib/drakkon/lib/images/cli.rb +1 -1
  16. data/lib/drakkon/lib/images/desaturate.rb +1 -1
  17. data/lib/drakkon/lib/images/flip_flop.rb +1 -1
  18. data/lib/drakkon/lib/images/gif.rb +1 -1
  19. data/lib/drakkon/lib/images/list.rb +1 -1
  20. data/lib/drakkon/lib/images/modulate.rb +1 -1
  21. data/lib/drakkon/lib/images/resize.rb +1 -1
  22. data/lib/drakkon/lib/images/roll.rb +1 -1
  23. data/lib/drakkon/lib/images/rotate.rb +1 -1
  24. data/lib/drakkon/lib/images/scale.rb +1 -1
  25. data/lib/drakkon/lib/images/sepia.rb +1 -1
  26. data/lib/drakkon/lib/images/shift.rb +1 -1
  27. data/lib/drakkon/lib/images/split.rb +1 -1
  28. data/lib/drakkon/lib/images/spritesheet.rb +1 -1
  29. data/lib/drakkon/lib/images/trim.rb +1 -1
  30. data/lib/drakkon/lib/images/white.rb +1 -1
  31. data/lib/drakkon/lib/settings.rb +1 -1
  32. data/lib/drakkon/lib/version.rb +13 -2
  33. data/lib/drakkon/release.rb +1 -1
  34. data/lib/drakkon/run/helpers.rb +1 -1
  35. data/lib/drakkon/setup.rb +1 -1
  36. data/lib/drakkon/skeleton/cli.rb +1 -1
  37. data/lib/drakkon/skeleton/deploy.rb +1 -1
  38. data/lib/drakkon/skeleton/helpers/general.rb +1 -1
  39. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe3b0f0a63a77864c2d03aef71e713d3200108e461f828507cc93ddf2813e2d9
4
- data.tar.gz: 7377e89e87729eba3a86d116964838863020be2bc5f863a8d89ace95262a742a
3
+ metadata.gz: a5db163c25c83f46bb36aa080c194bf96a20b75b68802462996e194a4aac0819
4
+ data.tar.gz: 75739e556e865e0cd8ede19028fb011614fe7fc4f48240368b5974ca9994e80a
5
5
  SHA512:
6
- metadata.gz: 9da3704ab83a2ca35cb0bf61502339580b8895a8a13008d271e5969a99da945a37000ef684507d8933cea3bdda837cb06fdd5a9ae2d0db6e3b6a403fb1cf8b49
7
- data.tar.gz: c5e4ac342e42a7ca6498987430b9311df618033c7fa50f0ad92cbf020a8bd1cdf3871e434631c733c6f66faded93664c9092b0548ce44d68a5269ce2d1649e9f
6
+ metadata.gz: 72563b36c206af8ec5d8021ffd22365c257ddb4157468e1df56875597ef55a9ab3f43254709d159a481cb3eecf7000a84b1d9dfc571400b063b790b2713c2be6
7
+ data.tar.gz: 324f45ccb596f4de69fbb438fe71ddfdae195bd4622063cbeba95237e7abb8a00081164e6738e76db6899538f34ff9ed34093452bc40b1d5c981981e614f769a
data/bin/drakkon CHANGED
@@ -2,13 +2,11 @@
2
2
 
3
3
  require 'drakkon'
4
4
 
5
- # Signal.trap('INT') { exit }
6
-
7
5
  flair = <<~FLAIR
8
6
  _______________________________________
9
7
  | ___ ____ ____ _ _ _ _ ____ __ _ |
10
8
  | |__> |--< |--| |-:_ |-:_ [__] | \\| |
11
- |_______________________________________|
9
+ |______________________________#{Drakkon::VERSION.ljust(9, '_')}|
12
10
  FLAIR
13
11
 
14
12
  puts flair.pastel(:bright_red)
data/lib/drakkon/build.rb CHANGED
@@ -117,7 +117,7 @@ module Drakkon
117
117
  end
118
118
 
119
119
  def self.prompt
120
- TTY::Prompt.new(active_color: :cyan)
120
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
121
121
  end
122
122
 
123
123
  #=======================================================
data/lib/drakkon/cli.rb CHANGED
@@ -34,7 +34,7 @@ module Drakkon
34
34
  end
35
35
 
36
36
  def self.prompt
37
- TTY::Prompt.new(active_color: :cyan)
37
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
38
38
  end
39
39
 
40
40
  def self.console
@@ -102,7 +102,7 @@ module Drakkon
102
102
  end
103
103
 
104
104
  def self.prompt
105
- TTY::Prompt.new(active_color: :cyan)
105
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
106
106
  end
107
107
 
108
108
  def self.digest
@@ -27,7 +27,7 @@ module Drakkon
27
27
  end
28
28
 
29
29
  def self.prompt
30
- TTY::Prompt.new(active_color: :cyan)
30
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
31
31
  end
32
32
 
33
33
  def self.menu
@@ -63,7 +63,7 @@ module Drakkon
63
63
  end
64
64
 
65
65
  def self.prompt
66
- TTY::Prompt.new(active_color: :cyan)
66
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
67
67
  end
68
68
 
69
69
  #=======================================================
@@ -3,7 +3,7 @@ module Drakkon
3
3
  # General Helpers for Gem Class
4
4
  module GemHelpers
5
5
  def prompt
6
- TTY::Prompt.new(active_color: :cyan)
6
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
7
7
  end
8
8
 
9
9
  def read_config
@@ -14,7 +14,7 @@ module Drakkon
14
14
  end
15
15
 
16
16
  def self.prompt
17
- TTY::Prompt.new(active_color: :cyan)
17
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
18
18
  end
19
19
 
20
20
  #=======================================================
data/lib/drakkon/init.rb CHANGED
@@ -76,7 +76,7 @@ module Drakkon
76
76
  end
77
77
 
78
78
  def self.prompt
79
- TTY::Prompt.new(active_color: :cyan)
79
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
80
80
  end
81
81
 
82
82
  #=======================================================
@@ -34,7 +34,7 @@ module Drakkon
34
34
  end
35
35
 
36
36
  def self.prompt
37
- TTY::Prompt.new(active_color: :cyan)
37
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
38
38
  end
39
39
  # =========================================================
40
40
  end
@@ -67,7 +67,7 @@ module Drakkon
67
67
  end
68
68
 
69
69
  def self.prompt
70
- TTY::Prompt.new(active_color: :cyan)
70
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
71
71
  end
72
72
  # =========================================================
73
73
  end
@@ -77,7 +77,7 @@ module Drakkon
77
77
  end
78
78
 
79
79
  def self.prompt
80
- TTY::Prompt.new(active_color: :cyan)
80
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
81
81
  end
82
82
  # =========================================================
83
83
  end
@@ -65,7 +65,7 @@ module Drakkon
65
65
  end
66
66
 
67
67
  def self.prompt
68
- TTY::Prompt.new(active_color: :cyan)
68
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
69
69
  end
70
70
  # =========================================================
71
71
  end
@@ -69,7 +69,7 @@ module Drakkon
69
69
  end
70
70
 
71
71
  def self.prompt
72
- TTY::Prompt.new(active_color: :cyan)
72
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
73
73
  end
74
74
  # =========================================================
75
75
  end
@@ -49,7 +49,7 @@ module Drakkon
49
49
  end
50
50
 
51
51
  def self.prompt
52
- TTY::Prompt.new(active_color: :cyan)
52
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
53
53
  end
54
54
  # =========================================================
55
55
  end
@@ -67,7 +67,7 @@ module Drakkon
67
67
  end
68
68
 
69
69
  def self.prompt
70
- TTY::Prompt.new(active_color: :cyan)
70
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
71
71
  end
72
72
  # =========================================================
73
73
  end
@@ -52,7 +52,7 @@ module Drakkon
52
52
  end
53
53
 
54
54
  def self.prompt
55
- TTY::Prompt.new(active_color: :cyan)
55
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
56
56
  end
57
57
  # =========================================================
58
58
  end
@@ -47,7 +47,7 @@ module Drakkon
47
47
  end
48
48
 
49
49
  def self.prompt
50
- TTY::Prompt.new(active_color: :cyan)
50
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
51
51
  end
52
52
  # =========================================================
53
53
  end
@@ -60,7 +60,7 @@ module Drakkon
60
60
  end
61
61
 
62
62
  def self.prompt
63
- TTY::Prompt.new(active_color: :cyan)
63
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
64
64
  end
65
65
  # =========================================================
66
66
  end
@@ -74,7 +74,7 @@ module Drakkon
74
74
  end
75
75
 
76
76
  def self.prompt
77
- TTY::Prompt.new(active_color: :cyan)
77
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
78
78
  end
79
79
  # =========================================================
80
80
  end
@@ -59,7 +59,7 @@ module Drakkon
59
59
  end
60
60
 
61
61
  def self.prompt
62
- TTY::Prompt.new(active_color: :cyan)
62
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
63
63
  end
64
64
  # =========================================================
65
65
  end
@@ -51,7 +51,7 @@ module Drakkon
51
51
  end
52
52
 
53
53
  def self.prompt
54
- TTY::Prompt.new(active_color: :cyan)
54
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
55
55
  end
56
56
  # =========================================================
57
57
  end
@@ -77,7 +77,7 @@ module Drakkon
77
77
  end
78
78
 
79
79
  def self.prompt
80
- TTY::Prompt.new(active_color: :cyan)
80
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
81
81
  end
82
82
  # =========================================================
83
83
  end
@@ -55,7 +55,7 @@ module Drakkon
55
55
  end
56
56
 
57
57
  def self.prompt
58
- TTY::Prompt.new(active_color: :cyan)
58
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
59
59
  end
60
60
  # =========================================================
61
61
  end
@@ -80,7 +80,7 @@ module Drakkon
80
80
  end
81
81
 
82
82
  def self.prompt
83
- TTY::Prompt.new(active_color: :cyan)
83
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
84
84
  end
85
85
  # =========================================================
86
86
  end
@@ -84,7 +84,7 @@ module Drakkon
84
84
  end
85
85
 
86
86
  def self.prompt
87
- TTY::Prompt.new(active_color: :cyan)
87
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
88
88
  end
89
89
  # =========================================================
90
90
  end
@@ -76,7 +76,7 @@ module Drakkon
76
76
  end
77
77
 
78
78
  def self.prompt
79
- TTY::Prompt.new(active_color: :cyan)
79
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
80
80
  end
81
81
  # =========================================================
82
82
  end
@@ -47,7 +47,7 @@ module Drakkon
47
47
  end
48
48
 
49
49
  def self.prompt
50
- TTY::Prompt.new(active_color: :cyan)
50
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
51
51
  end
52
52
  # =========================================================
53
53
  end
@@ -47,7 +47,7 @@ module Drakkon
47
47
  end
48
48
 
49
49
  def self.prompt
50
- TTY::Prompt.new(active_color: :cyan)
50
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
51
51
  end
52
52
  # =========================================================
53
53
  end
@@ -20,7 +20,7 @@ module Drakkon
20
20
  end
21
21
 
22
22
  def self.prompt
23
- TTY::Prompt.new(active_color: :cyan)
23
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
24
24
  end
25
25
 
26
26
  def self.version
@@ -20,8 +20,19 @@ module Drakkon
20
20
 
21
21
  # General Run
22
22
  def self.install!(raw)
23
+ # Safety if nothing provided
24
+ if raw.nil? || raw.empty?
25
+ LogBot.fatal('Version', 'No Zip Provided!')
26
+ file = prompt.ask('Full path to DragonRuby Zip?')
27
+ unless File.exist?(file)
28
+ LogBot.fatal('Version', 'Not able to find zip!')
29
+ exit(1)
30
+ end
31
+ raw = [file]
32
+ end
33
+
23
34
  zip = raw.first
24
- if File.extname(zip) != '.zip'
35
+ if zip.nil? || File.extname(zip) != '.zip'
25
36
  LogBot.fatal('Version', "Invalid Argument! Must be a zip file! '#{zip}'")
26
37
  exit(1)
27
38
  end
@@ -70,7 +81,7 @@ module Drakkon
70
81
  end
71
82
 
72
83
  def self.prompt
73
- TTY::Prompt.new(active_color: :cyan)
84
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
74
85
  end
75
86
 
76
87
  #=======================================================
@@ -1,3 +1,3 @@
1
1
  module Drakkon
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
@@ -51,7 +51,7 @@ module Drakkon
51
51
  end
52
52
 
53
53
  def self.prompt
54
- TTY::Prompt.new(active_color: :cyan)
54
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
55
55
  end
56
56
 
57
57
  #=======================================================
data/lib/drakkon/setup.rb CHANGED
@@ -14,7 +14,7 @@ module Drakkon
14
14
  end
15
15
 
16
16
  def self.prompt
17
- TTY::Prompt.new(active_color: :cyan)
17
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
18
18
  end
19
19
 
20
20
  def self.basic_directories
@@ -27,7 +27,7 @@ module Drakkon
27
27
  end
28
28
 
29
29
  def self.prompt
30
- TTY::Prompt.new(active_color: :cyan)
30
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
31
31
  end
32
32
 
33
33
  def self.menu
@@ -95,7 +95,7 @@ module Drakkon
95
95
  end
96
96
 
97
97
  def self.prompt
98
- TTY::Prompt.new(active_color: :cyan)
98
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
99
99
  end
100
100
 
101
101
  #=======================================================
@@ -3,7 +3,7 @@ module Drakkon
3
3
  # General Helpers for Gem Class
4
4
  module InstallHelpers
5
5
  def prompt
6
- TTY::Prompt.new(active_color: :cyan)
6
+ TTY::Prompt.new(active_color: :cyan, interrupt: :exit)
7
7
  end
8
8
 
9
9
  def read_config
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drakkon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davin Walker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-06 00:00:00.000000000 Z
11
+ date: 2024-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faker
@@ -288,7 +288,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
288
288
  requirements:
289
289
  - - ">="
290
290
  - !ruby/object:Gem::Version
291
- version: '3.1'
291
+ version: '3.0'
292
292
  required_rubygems_version: !ruby/object:Gem::Requirement
293
293
  requirements:
294
294
  - - ">="