[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-22。"],[[["\u003cp\u003eRuby functions in Cloud Run utilize Bundler to manage dependencies, which can be downloaded during deployment or packaged locally with the function.\u003c/p\u003e\n"],["\u003cp\u003eEach function requires both a \u003ccode\u003eGemfile\u003c/code\u003e listing dependencies, including the \u003ccode\u003efunctions_framework\u003c/code\u003e gem, and a \u003ccode\u003eGemfile.lock\u003c/code\u003e file specifying the exact versions of all transitive dependencies, located in the same directory as the function code.\u003c/p\u003e\n"],["\u003cp\u003eTo install dependencies locally, the \u003ccode\u003ebundle install\u003c/code\u003e command is used, generating a \u003ccode\u003eGemfile.lock\u003c/code\u003e if one does not exist, or the \u003ccode\u003ebundle lock\u003c/code\u003e command to generate one if it does not exist.\u003c/p\u003e\n"],["\u003cp\u003eLocal gems can be packaged by including them in a subdirectory within the function's directory structure, specifying their path in the \u003ccode\u003eGemfile\u003c/code\u003e, useful for private or unavailable dependencies through the public rubygems package manager.\u003c/p\u003e\n"],["\u003cp\u003eWhile Cloud Run installs the \u003ccode\u003efunctions_framework\u003c/code\u003e, it's recommended to include it as an explicit dependency in the \u003ccode\u003eGemfile\u003c/code\u003e for clarity, especially when mirroring \u003ccode\u003efunctions-framework\u003c/code\u003e to a private registry for private dependencies.\u003c/p\u003e\n"]]],[],null,[]]