{"id":15048315,"url":"https://github.com/github/gem-builder","last_synced_at":"2025-10-04T10:30:42.324Z","repository":{"id":445016,"uuid":"67489","full_name":"github/gem-builder","owner":"github","description":"The scripts used to build RubyGems on GitHub","archived":true,"fork":false,"pushed_at":"2015-02-15T07:51:11.000Z","size":123,"stargazers_count":27,"open_issues_count":0,"forks_count":15,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-09-30T00:41:02.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security.rb","support":null}},"created_at":"2008-10-24T22:29:32.000Z","updated_at":"2024-07-31T03:21:53.000Z","dependencies_parsed_at":"2022-07-07T23:30:38.379Z","dependency_job_id":null,"html_url":"https://github.com/github/gem-builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fgem-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fgem-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fgem-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fgem-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/gem-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235237996,"owners_count":18958030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T21:10:41.567Z","updated_at":"2025-10-04T10:30:37.017Z","avatar_url":"https://github.com/github.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"NOTE: This repository is no longer supported or updated by GitHub. If you wish to continue to develop this code yourself, we recommend you fork it.\n\nGitHub's Gem Evaler\n-------------------\n\nHelp make GitHub's gem build process more secure and robust!\n\nThere are two components associated with this:\n\n* gem_builder.rb - Script that builds the gem\n* gem_eval.rb - Sandboxed Sinatra app that evals ruby gemspecs\n\n\ngem_builder.rb works as follows:\n\n1) process() is called with a repository object and the path to the gemspec\n2) If the spec is not in YAML, a request is made to the gem evaler (see below how it works)\n3) A Gem::Specification object is created from the YAML gemspec and renamed with the user's login\n4) The gem is built from the Gem::Specification using a monkey-patched version of RubyGems,\n   so instead of grabbing the files from the filesystem, they're grabbed from the git repo\n\ngem_eval.rb works as follows:\n\n1) Receives a request with the repo location and the ruby gemspec\n2) Makes a shallow clone of the repo and chdir's to that repo\n3) Evals the spec in a separate thread with a higher $SAFE level\n4) Converts spec to YAML\n\n\nGoals\n-----\n* Lower the $SAFE level to allow methods like Dir.glob, but without compromising security.\n* Never get another email from someone wondering why their gem didn't build\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fgem-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fgem-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fgem-builder/lists"}