lib/ayadn.rb in ayadn-2.0.4 vs lib/ayadn.rb in ayadn-2.0.5

- old
+ new

@@ -1,14 +1,17 @@ # encoding: utf-8 -require_relative 'ayadn/version' begin + require_relative 'ayadn/version' %w{rest_client json thor rainbow/ext/string terminal-table yaml logger fileutils io/console unicode_utils/char_type readline amalgalite fast_cache}.each { |r| require "#{r}" } + Rainbow.enabled = true + require_relative 'ayadn/app' rescue LoadError => e puts "\nAYADN: Error while loading Gems\n\n" puts "RUBY: #{e}\n\n" exit +rescue Interrupt + puts "\nExit: stopped by user while launching\n\n" + exit end -Rainbow.enabled = true -require_relative 'ayadn/app'