Sha256: 656de1e3e7ca4e2b8d1350e1eec6fdab37ffc51a5edcd7395d9aee9c0b988db6
Contents?: true
Size: 931 Bytes
Versions: 1
Compression:
Stored size: 931 Bytes
Contents
# frozen_string_literal: true # Ruby standard libraries require 'base64' require 'date' require 'drb' require 'erb' require 'fileutils' require 'forwardable' require 'io/console' require 'json' require 'logger' require 'set' require 'singleton' require 'thread' require 'time' require 'zlib' # Gem dependencies require 'thor' # Vedeu is a GUI framework for terminal/console applications written # in Ruby. # module Vedeu extend Forwardable extend self # @param gem_name [String] # @raise [Vedeu::Error::Fatal] When the required gem is not # available. # @return [Boolean] def requires_gem!(gem_name) require gem_name if Gem::Specification.find_by_name(gem_name) true rescue Gem::LoadError raise Vedeu::Error::Fatal, "Vedeu requires '#{gem_name}' for this functionality. " \ "Please add this to your project 'Gemfile' or '*.gemspec'." end end # Vedeu require 'vedeu/all'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.8.8 | lib/vedeu.rb |