drakkon 0.0.5 → 0.0.6

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: 2f93944a6ec3d58f641a41490ed9a05b52d05ddd28e11fca835949f21f01a847
4
- data.tar.gz: 8ed5dcc916fb187d53287e4214e85c69ff75f03d280352700ad820291400e7c7
3
+ metadata.gz: 8b7f65a972668a6beb610ed53da219fb9cfaeff4b553b105ccc9836b8bfcd03b
4
+ data.tar.gz: addbf0433116e2fd71948ddd31076412aa29b34b35f25c2058ce61c02ce54373
5
5
  SHA512:
6
- metadata.gz: 1f80b6e046076851612faffb476f02eff00a3fc462f3e66155de7192d85fea52a9ddcddcf92e16f9cdd3df49d7760d9f23351a543a7c7f14b79ad0e1977f205d
7
- data.tar.gz: 41eeab774c6ec15e5a6b4c5d5d022f4cd70435862d36b33716328883912c87573a99f3c6120154875332ded8780ac185e7576b4ccd0afa5542d3113c374ef64d
6
+ metadata.gz: cb1462dcc9c6ea1991f5fe9e205e30248d831729f4d6e6aa6d3a8156fba30bac4ca9d5fecd974777d61b8e5bfe2f38902b8271f8ef0f75dc880956ce7ee0165a
7
+ data.tar.gz: 1d27fdfa3c6df857e49d73111b2b4ca94e159d26facee57af6aeecae84f11b9dde8ba255fc5507bba8df7949f12ed57b9f01db71d2ff3f59c530e29f5db40db8
data/lib/drakkon/init.rb CHANGED
@@ -15,6 +15,11 @@ module Drakkon
15
15
  end
16
16
 
17
17
  def self.run!
18
+ unless Hub.version_installed?
19
+ LogBot.warn('Init', 'No Drakkon Versions Installed, Run `drakkon install <dragonruby.zip>` first!')
20
+ exit(1)
21
+ end
22
+
18
23
  exit if prompt.no?("Init Drakkon here? #{Dir.pwd.pastel(:yellow)}")
19
24
  LogBot.info('Init', 'Start')
20
25
  settings
@@ -45,6 +45,10 @@ module Drakkon
45
45
  config.versions
46
46
  end
47
47
 
48
+ def self.version_installed?
49
+ versions.any?
50
+ end
51
+
48
52
  def self.version_latest
49
53
  list = versions.map { |v| v.split('.').map(&:to_i) }
50
54
  latest = list.sort.reverse.max
@@ -1,3 +1,3 @@
1
1
  module Drakkon
2
- VERSION = '0.0.5'.freeze
2
+ VERSION = '0.0.6'.freeze
3
3
  end
@@ -26,7 +26,7 @@ module Drakkon
26
26
  value ||= '' # Empty Start
27
27
 
28
28
  loop do
29
- line = reader.read_line(readline_notch, value:)
29
+ line = reader.read_line(readline_notch, value: value)
30
30
  value = '' # Remove Afterwards
31
31
 
32
32
  if reader.breaker
@@ -17,7 +17,7 @@ module Drakkon
17
17
  details = {
18
18
  **data,
19
19
  **config,
20
- source:
20
+ source: source
21
21
  }
22
22
 
23
23
  Hub.config.skeletons[name] = details
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drakkon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davin Walker