{"id":13747644,"url":"https://github.com/rvm/rubygems-bundler","last_synced_at":"2025-04-13T00:44:58.123Z","repository":{"id":56902828,"uuid":"1860743","full_name":"rvm/rubygems-bundler","owner":"rvm","description":"no more `bundle exec ...`","archived":false,"fork":false,"pushed_at":"2020-01-07T12:08:48.000Z","size":163,"stargazers_count":504,"open_issues_count":2,"forks_count":22,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-01-11T22:11:51.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rvm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-06-07T16:13:10.000Z","updated_at":"2025-01-06T06:03:12.000Z","dependencies_parsed_at":"2022-08-21T01:50:43.934Z","dependency_job_id":null,"html_url":"https://github.com/rvm/rubygems-bundler","commit_stats":null,"previous_names":["mpapis/rubygems-bundler"],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Frubygems-bundler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Frubygems-bundler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Frubygems-bundler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Frubygems-bundler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvm","download_url":"https://codeload.github.com/rvm/rubygems-bundler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234314229,"owners_count":18812694,"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-08-03T06:01:36.105Z","updated_at":"2025-01-22T12:04:02.366Z","avatar_url":"https://github.com/rvm.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"[![Build Status](https://secure.travis-ci.org/mpapis/rubygems-bundler.png?branch=1.0.0)](http://travis-ci.org/mpapis/rubygems-bundler)\n\n# Note for RubyGems \u003e= 2.2.0\n\nGenerally, this gem is not needed on RubyGems \u003e= 2.2.0. Simply set the `RUBYGEMS_GEMDEPS`\nenvironment variable to either the path of your Gemfile or `-` to auto-discover in parent directories.\n\nHowever, not all `Gemfile` syntax is supported yet. If you find bugs using `RUBYGEMS_GEMDEPS`, please\n[report them](https://github.com/rubygems/rubygems/issues).\n\n# rubygems-bundler \u0026\u0026 Noexec\n\nLet's stop using `bundle exec`, kthx.\n\nIntroduction of the 1.0.0 release: http://niczsoft.com/2012/05/rubygems-bundler-integration-gem-1-0-0/\n\n## Installation\n\n    gem install rubygems-bundler\n\nNext run (once):\n\n    gem regenerate_binstubs\n\nAnd you're done!\n\n## Configuration\n\n### ~/.gemrc\n\nYou no longer need to modify `~/.gemrc`,\njust remove the old entry to be sure it works as expected.\nIf you need to use your own `custom_shebang`,\nyou can define it in `~/.gemrc` to override the default:\n\n    custom_shebang: $env \u003cyour_custom_shebang_program\u003e\n\n### ./.noexec.yaml\n\nThough you can let noexec do it's own thing and rely on looking up your binary via your Gemfile,\nyou can also specify which binaries you want included or excluded.\nCreate a .noexec.yaml file along side any Gemfiles you want to use.\nThen, to enable (or disable) the usage of your particular binary into your bundle,\nadd an include or exclude section. For example:\n\n```yml\nexclude: [rake]\n```\nOr,\n\n```yml\ninclude: [haml]\n```\n\n### Disabling executables\n\nIn case you know certain binaries should not use `bundler` you can define a list of this binaries:\n\n    export NOEXEC_EXCLUDE=\"gist bluepill\"\n\nPut it into `~/.bashrc` or other shell initialization file to make it persistent.\n\n### Disabling any commands\n\nIn case you need explicitly skip loading `Bundler.setup`, prefix your command with `NOEXEC_DISABLE=1`:\n\n    NOEXEC_DISABLE=1 rails new app\n\nTo disable for whole shell session:\n\n    export NOEXEC_DISABLE=1\n\nAnd to restore automatic behavior:\n\n    unset NOEXEC_DISABLE\n\nThe old method is still available and might kick in if your tools use `NOEXEC` environment variable:\n\n    NOEXEC=0 rails new app\n    NOEXEC=skip gist\n\nboth `0` and `skip` will disable the gem, this method is deprecated and will be removed with 1.2.0.\n\n## Problems?\n\nThings not going the way you'd like? Try your command again with\n`NOEXEC_DEBUG=1` set and create a ticket. I'll fix it right away!\n\n### IRC support:\n\n[#rubygems-bundler on irc.freenode.net](http://webchat.freenode.net/?channels=#rubygems-bundler)\n\nIf you do not get an answer relatively quickly,\nbe sure to leave your email address so someone can get back to you later.\n\n## How does this work (ruby_noexec_wrapper)\n\nIt modifies gem wrappers shebang to load `ruby_noexec_wrapper`.\nThen, when you run gem binaries, it takes a look at your working directory,\nand every directory above it until it can find a `Gemfile`.\nIf the executable you're running is present in your Gemfile,\nit switches to using that `Gemfile` instead (via `Bundle.setup`).\n\nRubygems and Bundler integration makes executable wrappers\ngenerated by rubygems aware of bundler.\n\nrubygems-bundler was merged with [noexec gem](https://github.com/joshbuddy/noexec) in version **0.9.0**.\n\n## Uninstallation\n\n    gem uninstall rubygems-bundler\n\n### Uninstallation of executable-hooks\n\n`rubygems-bundler` does not change the shebangs itself anymore, this was extracted to `executable-hooks`:\n\n    executable-hooks-uninstaller\n    gem uninstall executable-hooks\n\nthis will set all gems to `/usr/bin/env ruby`, which is one of the safest choices (especially when using rvm).\n\n### Removing from RVM\n\nWhen using rvm, these additional steps will ensure this gem is removed and not installed again:\n\n    rvm get stable --without-gems=\"rubygems-bundler executable-hooks\"\n    rvm all-gemsets do gem uninstall --all --executables rubygems-bundler executable-hooks\n\n\n## Authors\n\n - Joshua Hull \u003cjoshbuddy@gmail.com\u003e\n - Michal Papis \u003cmpapis@gmail.com\u003e\n\n## Thanks\n\n - Carl Lerche     : help with the noexec code\n - Evan Phoenix    : support on rubygems internals\n - Yehuda Katz     : the initial patch code, helping on making it even more usable\n - Loren Segal     : shebang customization idea and explanations\n - Wayne E. Seguin : support in writing good code\n - André Arko      : clarifications how rubygems/bundler works\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvm%2Frubygems-bundler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvm%2Frubygems-bundler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvm%2Frubygems-bundler/lists"}