{"record":{"id":"ee016b2a7fdb1498","repo":"ruby/rubygems","slug":"34","errorCode":"34","errorMessage":"Downloading #{spec.full_name} revealed dependencies not in the API (#{extra_deps.join(\", \")}).\nRunning `bundle update #{spec.name}` should fix the problem.","messagePattern":"Downloading #(.+?) revealed dependencies not in the API \\(#(.+?)\\)\\.\nRunning `bundle update #(.+?)` should fix the problem\\.","errorType":"exception","errorClass":"Bundler::APIResponseMismatchError","httpStatus":null,"severity":"error","filePath":"lib/bundler/shared_helpers.rb","lineNumber":166,"sourceCode":"      message = \"Multiple gemfiles (gems.rb and Gemfile) detected. \" \\\n                \"Make sure you remove Gemfile and Gemfile.lock since bundler is ignoring them in favor of gems.rb and gems.locked.\"\n      Bundler.ui.warn message\n    end\n\n    def ensure_same_dependencies(spec, old_deps, new_deps)\n      new_deps = new_deps.reject {|d| d.type == :development }\n      old_deps = old_deps.reject {|d| d.type == :development }\n\n      without_type = proc {|d| Gem::Dependency.new(d.name, d.requirements_list.sort) }\n      new_deps.map!(&without_type)\n      old_deps.map!(&without_type)\n\n      extra_deps = new_deps - old_deps\n      return if extra_deps.empty?\n\n      Bundler.ui.debug \"#{spec.full_name} from #{spec.remote} has corrupted API dependencies\" \\\n        \" (was expecting #{old_deps.map(&:to_s)}, but the real spec has #{new_deps.map(&:to_s)})\"\n      raise APIResponseMismatchError,\n        \"Downloading #{spec.full_name} revealed dependencies not in the API (#{extra_deps.join(\", \")}).\" \\\n        \"\\nRunning `bundle update #{spec.name}` should fix the problem.\"\n    end\n\n    def pretty_dependency(dep)\n      msg = String.new(dep.name)\n      msg << \" (#{dep.requirement})\" unless dep.requirement == Gem::Requirement.default\n\n      if dep.is_a?(Bundler::Dependency)\n        platform_string = dep.platforms.join(\", \")\n        msg << \" \" << platform_string if !platform_string.empty? && platform_string != Gem::Platform::RUBY\n      end\n\n      msg\n    end\n\n    def md5_available?\n      return @md5_available if defined?(@md5_available)","sourceCodeStart":148,"sourceCodeEnd":184,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/shared_helpers.rb#L148-L184","documentation":"Error \"Downloading #{spec.full_name} revealed dependencies not in the API (#{extra_deps.join(\", \")}).\nRunning `bundle update #{spec.name}` should fix the problem.\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/shared_helpers.rb:166 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"}