{"id":17134207,"url":"https://github.com/fnichol/renv","last_synced_at":"2026-05-15T12:06:46.262Z","repository":{"id":48842294,"uuid":"12235175","full_name":"fnichol/renv","owner":"fnichol","description":"renv: A Ruby Environment Context Switcher","archived":false,"fork":false,"pushed_at":"2021-03-19T01:50:51.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-23T18:39:16.746Z","etag":null,"topics":["ruby","ruby-wrapper","rubygems"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fnichol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-20T05:08:50.000Z","updated_at":"2023-05-17T12:42:09.000Z","dependencies_parsed_at":"2022-07-26T05:32:08.548Z","dependency_job_id":null,"html_url":"https://github.com/fnichol/renv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fnichol/renv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnichol%2Frenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnichol%2Frenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnichol%2Frenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnichol%2Frenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnichol","download_url":"https://codeload.github.com/fnichol/renv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnichol%2Frenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272343376,"owners_count":24917829,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ruby","ruby-wrapper","rubygems"],"created_at":"2024-10-14T19:44:19.892Z","updated_at":"2026-05-15T12:06:41.223Z","avatar_url":"https://github.com/fnichol.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# renv: A Ruby Environment Context Switcher\n\n|         |                                           |\n| ------: | ----------------------------------------- |\n|      CI | [![CI Status][badge-ci-overall]][ci]      |\n| License | [![Crate license][badge-license]][github] |\n\n**Table of Contents**\n\n\u003c!-- toc --\u003e\n\n- [About](#about)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Activating renv in a project directory](#activating-renv-in-a-project-directory)\n  - [Resetting the environment](#resetting-the-environment)\n  - [Checking the status of the environment](#checking-the-status-of-the-environment)\n- [Code of Conduct](#code-of-conduct)\n- [Issues](#issues)\n- [Contributing](#contributing)\n- [Authors](#authors)\n- [License](#license)\n\n\u003c!-- tocstop --\u003e\n\n## About\n\n`renv` will help setup the appropriate system environment variables so that\nRubyGems will be installed under the current directory in a `.gem` directory for\nthe currently used version of Ruby. The gem directory's `bin/` directory is also\nadded to `$PATH`. This is a reasonably simple way to help users install their\nRubyGems locally and per-project or in a common directory for easier cleanup\nlater.\n\n## Installation\n\n`renv` is designed to be sourced when a new shell is loaded via `/etc/profile.d`\nwhich will work for all users, system-wide. On most systems, this should work\n(run as a root user or each command via `sudo`):\n\n```sh\nmkdir -p /etc/profile.d\ncurl -sSfL \\\n  https://raw.githubusercontent.com/fnichol/renv/master/renv.sh \\\n  -o /etc/profile.d/renv.sh\nchmod 0644 /etc/profile.d/renv.sh\n```\n\nAlternatively, you can simply source a downloaded copy of `renv.sh` whenever you\nneed it, for example:\n\n```\nsource ~/.renv.sh\n```\n\n## Usage\n\n### Activating renv in a project directory\n\nThe default subcommand will set the appropriate system environment variables so\nthat gems will be installed to and read from under `./.gem` by default.\n\n```console\n$ renv\n```\n\n### Resetting the environment\n\nTo unset appropriate system environment variables and return to the state before\n`renv` was run, use:\n\n```console\n$ renv reset\n```\n\n### Checking the status of the environment\n\nTo check the status of the appropriate system environment variables:\n\n```console\n$ renv status\n```\n\n## Code of Conduct\n\nThis project adheres to the Contributor Covenant [code of\nconduct][code-of-conduct]. By participating, you are expected to uphold this\ncode. Please report unacceptable behavior to fnichol@nichol.ca.\n\n## Issues\n\nIf you have any problems with or questions about this project, please contact us\nthrough a [GitHub issue][issues].\n\n## Contributing\n\nYou are invited to contribute to new features, fixes, or updates, large or\nsmall; we are always thrilled to receive pull requests, and do our best to\nprocess them as fast as we can.\n\nBefore you start to code, we recommend discussing your plans through a [GitHub\nissue][issues], especially for more ambitious contributions. This gives other\ncontributors a chance to point you in the right direction, give you feedback on\nyour design, and help you find out if someone else is working on the same thing.\n\n## Authors\n\nCreated and maintained by [Fletcher Nichol][fnichol] (\u003cfnichol@nichol.ca\u003e).\n\n## License\n\nLicensed under the MIT ([LICENSE.txt][license]).\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, shall be licensed as above, without any\nadditional terms or conditions.\n\n[badge-ci-overall]:\n  https://img.shields.io/cirrus/github/fnichol/renv?style=flat-square\n[badge-license]: https://img.shields.io/badge/License-MIT-blue.svg\n[ci]: https://cirrus-ci.com/github/fnichol/renv\n[code-of-conduct]:\n  https://github.com/fnichol/renv/blob/master/CODE_OF_CONDUCT.md\n[fnichol]: https://github.com/fnichol\n[github]: https://github.com/fnichol/renv\n[issues]: https://github.com/fnichol/renv/issues\n[license]: https://github.com/fnichol/renv/blob/master/LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnichol%2Frenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnichol%2Frenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnichol%2Frenv/lists"}