{"record":{"id":"d433870371f6816e","repo":"ruby/rubygems","slug":"there-are-no-gemspecs-at-expanded-path","errorCode":null,"errorMessage":"There are no gemspecs at #{expanded_path}","messagePattern":"There are no gemspecs at #(.+?)","errorType":"exception","errorClass":"InvalidOption","httpStatus":null,"severity":"error","filePath":"lib/bundler/dsl.rb","lineNumber":91,"sourceCode":"      gemspecs.reject! {|s| s.name != name } if name\n      specs_by_name_and_version = gemspecs.group_by {|s| [s.name, s.version] }\n\n      case specs_by_name_and_version.size\n      when 1\n        specs = specs_by_name_and_version.values.first\n        spec = specs.find {|s| s.installable_on_platform?(Bundler.local_platform) } || specs.first\n\n        @gemspecs << spec\n\n        path path, \"glob\" => glob, \"name\" => spec.name, \"gemspec\" => spec do\n          add_dependency spec.name\n        end\n\n        spec.development_dependencies.each do |dep|\n          add_dependency dep.name, dep.requirement.as_list, \"gemspec_dev_dep\" => true, \"group\" => development_group\n        end\n      when 0\n        raise InvalidOption, \"There are no gemspecs at #{expanded_path}\"\n      else\n        raise InvalidOption, \"There are multiple gemspecs at #{expanded_path}. \" \\\n          \"Please use the :name option to specify which one should be used\"\n      end\n    end\n\n    def gem(name, *args)\n      options = args.last.is_a?(Hash) ? args.pop.dup : {}\n      version = args || [\">= 0\"]\n\n      normalize_options(name, version, options)\n\n      add_dependency(name, version, options)\n    end\n\n    # For usage in Dsl.evaluate, since lockfile is used as part of the Gemfile.\n    def lockfile_path\n      @lockfile","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/dsl.rb#L73-L109","documentation":"Error \"There are no gemspecs at #{expanded_path}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/dsl.rb:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}