class Gem::Specification

def self.find_by_path path

def self.find_by_path path
  path = path.dup.freeze
  spec = @@spec_with_requirable_file[path] ||= (stubs.find { |s|
    s.contains_requirable_file? path
  } || NOT_FOUND)
  spec.to_spec
end