Module: Syshare

Defined in:
lib/syshare.rb,
lib/syshare/version.rb,
lib/syshare/boot/dalli.rb,
lib/syshare/boot/redis.rb,
lib/syshare/components.rb

Defined Under Namespace

Modules: Components, Types Classes: Error

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.require_gem(gem_name) ⇒ Object



10
11
12
13
14
15
# File 'lib/syshare.rb', line 10

def self.require_gem(gem_name)
  require gem_name
rescue LoadError => e
  warn "The #{gem_name} gem is not available. Please add it to your Gemfile and run bundle install"
  raise e
end