ruby/rubygems · error · Gem::Exception
Unable to find '#{name}'
Error message
Unable to find '#{name}' What it means
Error "Unable to find '#{name}'" thrown in ruby/rubygems.
Source
Thrown at lib/rubygems/source/specific_file.rb:36
@path = ::File.expand_path(file)
@package = Gem::Package.new @path
@spec = @package.spec
@name = @spec.name_tuple
end
##
# The Gem::Specification extracted from this .gem.
attr_reader :spec
def load_specs(*a) # :nodoc:
[@name]
end
def fetch_spec(name) # :nodoc:
return @spec if name == @name
raise Gem::Exception, "Unable to find '#{name}'"
end
def download(spec, dir = nil) # :nodoc:
return @path if spec == @spec
raise Gem::Exception, "Unable to download '#{spec.full_name}'"
end
def pretty_print(q) # :nodoc:
q.object_group(self) do
q.group 2, "[SpecificFile:", "]" do
q.breakable
q.text @path
end
end
end
##
# Orders this source against +other+.View on GitHub (pinned to 86cbb817a3)
Solutions
- Check the path/name passed to the specific-file source; the file does not exist
When it happens
Trigger: Thrown at lib/rubygems/source/specific_file.rb:36 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruby/rubygems@86cbb817a3 (2026-08-23).
Data as JSON: /api/errors/5ff92d0634b692ff.
Report an issue: GitHub.