lib/ayadn.rb in ayadn-1.8.2 vs lib/ayadn.rb in ayadn-2.0

- old
+ new

@@ -1,13 +1,12 @@ # encoding: utf-8 require_relative 'ayadn/version' -%w{rest_client json thor rainbow/ext/string terminal-table yaml logger daybreak fileutils io/console unicode_utils/char_type readline}.each { |r| require "#{r}" } - -# winPlatforms = ['mswin', 'mingw', 'mingw_18', 'mingw_19', 'mingw_20', 'mingw32'] -# case Gem::Platform.local.os -# when *winPlatforms -# require 'win32console' -# require 'pstore' -# end +begin + %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}" } +rescue LoadError => e + puts "\nAYADN: Error while loading Gems\n\n" + puts "RUBY: #{e}\n\n" + exit +end require_relative 'ayadn/app'