def load_gem(spec)
      load_path = spec.name.gsub('-', '/')
      require load_path

      unless @loaded.include? load_path
        @loaded << load_path
        klass = path_to_class(load_path)
        @log.debug("Loading plugin #{klass} from '#{load_path}'")
        plugins.push plugin_get(klass)
      end
      nil
    end
def load_gem(spec)
      load_path = spec.name.gsub('-', '/')
      require load_path

      unless @loaded.include? load_path
        @loaded << load_path
        klass = path_to_class(load_path)
        @log.debug("Loading plugin #{klass} from '#{load_path}'")
        plugins.push plugin_get(klass)
      end
      nil
    end
Helper function to load a plugin from a gem specification

 @param [Gem::Specification] spec