Sha256: a717e7f600ca3163f7bb9eea9981cc43463ad97ed75e298a27817b0f6ee962a3

Contents?: true

Size: 415 Bytes

Versions: 3

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

# Backward compatability for gem specification lookup
# @see Gem::SourceIndex
module YARD
  module GemIndex
    module_function

    def find_all_by_name(*args)
      if defined?(Gem::Specification) && Gem::Specification.respond_to?(:find_all_by_name)
        Gem::Specification.find_all_by_name(*args)
      else
        Gem.source_index.find_name(*args)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.7/lib/yard/gem_index.rb
yard-0.9.7 lib/yard/gem_index.rb
yard-0.9.6 lib/yard/gem_index.rb