Module: SystemChecks

Defined in:
lib/helpers/system_checks.rb

Class Method Summary collapse

Class Method Details

.gem_available?(name) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
6
7
8
9
# File 'lib/helpers/system_checks.rb', line 3

def gem_available?(name)
   Gem::Specification.find_by_name(name)
rescue Gem::LoadError
   false
rescue
   Gem.available?(name)
end