https://github.com/rvm/rubygems-bundler
no more `bundle exec ...`
https://github.com/rvm/rubygems-bundler
Keywords from Contributors
rubygems mvc activejob activerecord feature-flag multithreading rack pry rspec rubocop
Last synced: about 17 hours ago
JSON representation
Repository metadata
no more `bundle exec ...`
- Host: GitHub
- URL: https://github.com/rvm/rubygems-bundler
- Owner: rvm
- License: other
- Created: 2011-06-07T16:13:10.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T12:08:48.000Z (almost 6 years ago)
- Last Synced: 2025-12-08T01:10:37.913Z (7 days ago)
- Language: Ruby
- Homepage:
- Size: 159 KB
- Stars: 504
- Watchers: 24
- Forks: 20
- Open Issues: 2
- Releases: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
README.md
Note for RubyGems >= 2.2.0
Generally, this gem is not needed on RubyGems >= 2.2.0. Simply set the RUBYGEMS_GEMDEPS
environment variable to either the path of your Gemfile or - to auto-discover in parent directories.
However, not all Gemfile syntax is supported yet. If you find bugs using RUBYGEMS_GEMDEPS, please
report them.
rubygems-bundler && Noexec
Let's stop using bundle exec, kthx.
Introduction of the 1.0.0 release: http://niczsoft.com/2012/05/rubygems-bundler-integration-gem-1-0-0/
Installation
gem install rubygems-bundler
Next run (once):
gem regenerate_binstubs
And you're done!
Configuration
~/.gemrc
You no longer need to modify ~/.gemrc,
just remove the old entry to be sure it works as expected.
If you need to use your own custom_shebang,
you can define it in ~/.gemrc to override the default:
custom_shebang: $env <your_custom_shebang_program>
./.noexec.yaml
Though you can let noexec do it's own thing and rely on looking up your binary via your Gemfile,
you can also specify which binaries you want included or excluded.
Create a .noexec.yaml file along side any Gemfiles you want to use.
Then, to enable (or disable) the usage of your particular binary into your bundle,
add an include or exclude section. For example:
exclude: [rake]
Or,
include: [haml]
Disabling executables
In case you know certain binaries should not use bundler you can define a list of this binaries:
export NOEXEC_EXCLUDE="gist bluepill"
Put it into ~/.bashrc or other shell initialization file to make it persistent.
Disabling any commands
In case you need explicitly skip loading Bundler.setup, prefix your command with NOEXEC_DISABLE=1:
NOEXEC_DISABLE=1 rails new app
To disable for whole shell session:
export NOEXEC_DISABLE=1
And to restore automatic behavior:
unset NOEXEC_DISABLE
The old method is still available and might kick in if your tools use NOEXEC environment variable:
NOEXEC=0 rails new app
NOEXEC=skip gist
both 0 and skip will disable the gem, this method is deprecated and will be removed with 1.2.0.
Problems?
Things not going the way you'd like? Try your command again with
NOEXEC_DEBUG=1 set and create a ticket. I'll fix it right away!
IRC support:
#rubygems-bundler on irc.freenode.net
If you do not get an answer relatively quickly,
be sure to leave your email address so someone can get back to you later.
How does this work (ruby_noexec_wrapper)
It modifies gem wrappers shebang to load ruby_noexec_wrapper.
Then, when you run gem binaries, it takes a look at your working directory,
and every directory above it until it can find a Gemfile.
If the executable you're running is present in your Gemfile,
it switches to using that Gemfile instead (via Bundle.setup).
Rubygems and Bundler integration makes executable wrappers
generated by rubygems aware of bundler.
rubygems-bundler was merged with noexec gem in version 0.9.0.
Uninstallation
gem uninstall rubygems-bundler
Uninstallation of executable-hooks
rubygems-bundler does not change the shebangs itself anymore, this was extracted to executable-hooks:
executable-hooks-uninstaller
gem uninstall executable-hooks
this will set all gems to /usr/bin/env ruby, which is one of the safest choices (especially when using rvm).
Removing from RVM
When using rvm, these additional steps will ensure this gem is removed and not installed again:
rvm get stable --without-gems="rubygems-bundler executable-hooks"
rvm all-gemsets do gem uninstall --all --executables rubygems-bundler executable-hooks
Authors
- Joshua Hull joshbuddy@gmail.com
- Michal Papis mpapis@gmail.com
Thanks
- Carl Lerche : help with the noexec code
- Evan Phoenix : support on rubygems internals
- Yehuda Katz : the initial patch code, helping on making it even more usable
- Loren Segal : shebang customization idea and explanations
- Wayne E. Seguin : support in writing good code
- André Arko : clarifications how rubygems/bundler works
Owner metadata
- Name: RVM
- Login: rvm
- Email:
- Kind: organization
- Description: Ruby enVironment Manager
- Website: https://rvm.io
- Location:
- Twitter: rvm_io
- Company:
- Icon url: https://avatars.githubusercontent.com/u/2589612?v=4
- Repositories: 32
- Last ynced at: 2025-10-29T05:54:53.102Z
- Profile URL: https://github.com/rvm
GitHub Events
Total
- Fork event: 1
Last Year
- Fork event: 1
Committers metadata
Last synced: 8 days ago
Total Commits: 203
Total Committers: 14
Avg Commits per committer: 14.5
Development Distribution Score (DDS): 0.138
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Michal Papis | m****s@g****m | 175 |
| Josh Hull | j****y@g****m | 11 |
| Jordon Bedwell | e****s@g****m | 3 |
| Michael Kaiser-Nyman | m****n@g****m | 2 |
| Benjamin Fleischer | g****b@b****m | 2 |
| Andrew Eberbach | a****w@e****a | 2 |
| Shannon Skipper | s****r@g****m | 1 |
| Philip Arndt | p****t@g****m | 1 |
| Peter Zotov | w****k@w****g | 1 |
| Patrick White | p@p****g | 1 |
| Olle Jonsson | o****n@g****m | 1 |
| Igor Zubkov | i****v@g****m | 1 |
| Elia Schito | e****a@s****e | 1 |
| Thibault Jouan | tj@a****r | 1 |
Committer domains:
- a13.fr: 1
- schito.me: 1
- pwhite.org: 1
- whitequark.org: 1
- ebertech.ca: 1
- benjaminfleischer.com: 1
Issue and Pull Request metadata
Last synced: 4 days ago
Total issues: 56
Total pull requests: 12
Average time to close issues: about 2 months
Average time to close pull requests: 24 days
Total issue authors: 51
Total pull request authors: 9
Average comments per issue: 4.18
Average comments per pull request: 0.92
Merged pull request: 10
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- ryotakatsuki (2)
- Supermathie (2)
- postmodern (2)
- mpapis (2)
- ebertech (2)
- mat813 (1)
- TMorgan99 (1)
- asawyer56734 (1)
- madsheep (1)
- diabolo (1)
- swalberg (1)
- kbaum (1)
- larouxn (1)
- retr0h (1)
- JEG2 (1)
Top Pull Request Authors
- bf4 (2)
- elia (2)
- ebertech (2)
- parndt (1)
- biow0lf (1)
- pw (1)
- olleolleolle (1)
- michaelrkn (1)
- ghost (1)
Top Issue Labels
- fixed (1)
- info needed (1)
- Bundler 1.3 requirement (1)
Top Pull Request Labels
Package metadata
- Total packages: 3
-
Total downloads:
- rubygems: 2,086 total
- Total dependent packages: 0 (may contain duplicates)
- Total dependent repositories: 0 (may contain duplicates)
- Total versions: 28
- Total maintainers: 1
proxy.golang.org: github.com/rvm/rubygems-bundler
- Homepage:
- Documentation: https://pkg.go.dev/github.com/rvm/rubygems-bundler#section-documentation
- Licenses: other
- Latest release: v1.4.4 (published over 11 years ago)
- Last Synced: 2025-12-10T22:00:23.374Z (4 days ago)
- Versions: 26
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.506%
- Average: 5.69%
- Dependent repos count: 5.875%
gem.coop: toy-rubygems-bundler
Stop using bundle exec. Integrate Rubygems and Bundler. Make rubygems generate bundler aware executable wrappers.
- Homepage: https://rvm.github.com/rubygems-bundler
- Documentation: http://www.rubydoc.info/gems/toy-rubygems-bundler/
- Licenses: Apache-2.0
- Latest release: 1.4.5.1 (published almost 3 years ago)
- Last Synced: 2025-12-10T22:00:22.323Z (4 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 1,043 Total
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 32.357%
- Downloads: 97.071%
- Maintainers (1)
rubygems.org: toy-rubygems-bundler
Stop using bundle exec. Integrate Rubygems and Bundler. Make rubygems generate bundler aware executable wrappers.
- Homepage: https://rvm.github.com/rubygems-bundler
- Documentation: http://www.rubydoc.info/gems/toy-rubygems-bundler/
- Licenses: Apache-2.0
- Latest release: 1.4.5.1 (published almost 3 years ago)
- Last Synced: 2025-12-10T22:00:22.297Z (4 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 1,043 Total
-
Rankings:
- Stargazers count: 2.446%
- Forks count: 5.597%
- Dependent packages count: 15.706%
- Average: 33.973%
- Dependent repos count: 46.779%
- Downloads: 99.339%
- Maintainers (1)
Dependencies
- tf >= 0 development
- bundler-unload >= 1.0.2
- executable-hooks >= 1.5.0
Score: 16.509076905979924
