New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bundler fixes #2923
Bundler fixes #2923
Conversation
👍 |
I believe it would still work without the bundled_commands=(
annotate
berks
cap
capify
cucumber
foodcritic
guard
irb
jekyll
kitchen
knife
middleman
nanoc
puma
rackup
rainbows
rake
rspec
ruby
shotgun
sidekiq
spec
spork
strainer
tailor
taps
thin
thor
unicorn
unicorn_rails
) |
thanks @KevinBongart - you are right. |
Awesome, thanks |
Hi @Kriechi, thanks for taking the initiative with the bundler plugin. When I was triaging issues I saw a lot related to the bundler plugin, so I saved them in case I made a super-PR like the one you're doing now. Since this PR intends to fix the bundler plugin, it makes sense to try to fix these issues and test these PRs. So here you go: Delete ruby from bundled_commandsThis one is mentioned several times and it seems, the most prominent being in #1587 which is related to postmodern/chruby#80. They suggest using binstubs, as is done in #2885. I don't know if that could be a possible solution.
Several modifications to bundled_commandsAll these seem rather silly, we have already an UNBUNDLED_COMMANDS variable to unalias those commands that clash with people's workflow.
Initialization modsQuick background: #2243 introduced a bug that is solved by #2278; this last one makes sure it loads after rbenv (I don't know if it works).
Bundler completion
Other
And that's all I found. Disclaimer: I don't use bundler (nor ruby that much) to have any authority over any of this, but if I can help with the zsh part I'll gladly do it. I can't test any of it though (unless someone points me to a primer on bundler and I find the time to set it up). |
I think #2278 no longer applies, because the underlying if-then-else is already refactored. |
Wouldn't this only work if bundler-plugin is loaded last, so that each other plugin can register a binary, and then the bundler-plugin creates all wrappers? I'm not familiar with |
I'm not sure I understand. It would work the same way the About the
I don't think if it makes sense, nor how does it affect other ruby workflow commands like rbenv and chruby and such. I see that this approach is too complicated to put it in an easy-merge PR, so I could make a separate PR and discuss it there. What do you think? |
I will add a README.md to document those two configuration options for the users. I think using a |
@mcornella @lorin @KevinBongart I have added additional things (README.md, BUNDLED_COMMANDS functionality) @mcornella I think I have covered all easy issues you mentioned in your first comment. Please let me know if there is anything major left. |
@Kriechi Nice work! Thanks for taking care of that :) I've added three tiny comments since I couldn't update the README file directly |
@KevinBongart thanks. I've fixed it. |
Awesome job @Kriechi, I added a little remark to the README. I have also updated my comment to check those issues you tackled (: Only remain:
Already dealt with:
Thank you very much! 😄 |
@mcornella i have closed the PR as it is not required, Thanks for letting me know :) |
I would not pull #2074 - IMHO is this gem fine without So now everything mentioned should either be merged, fixed or otherwise dealt with. IMHO this PR is ready to merge. |
Yeah that's what I thought too, thanks for confirming it. Maybe we can close it? The author doesn't seem to respond anymore. Anyway, this PR is ready to merge too in my opinion 👍 |
👍 |
@Kriechi Can you rebase once more for me? |
This makes adding, deleting and merging a lot easier.
related to ohmyzsh#1587 closes ohmyzsh#2200 closes ohmyzsh#2561
done. |
Thanks! |
This is linked into readme, but I don't get why |
From https://stackoverflow.com/a/23846736:
|
This splits the bundler-commands into seperate lines, to allow easier adding, deleting and therefore merging of new PRs.
fixes #1817
fixes #1825
fixes #2779
fixes #2200
fixes #2561
fixes #2076
fixes #1818
fixes #2885
already fixed, but issue still open:
closes #2695
not needed:
closes #2074
spring
is added.pry
is added.sidekiq
is added.ruby
is removed.berks
is removed.foreman
is removed.spin
is removed.If a binstub in
./bin/
exists, it is called instead ofbundle exec <gem>
.Added functionality to include additional executables with wrapper: BUNDLED_COMMANDS.
A README.md file is added to document this plugin. Added documentation on how BUNDLED_COMMANDS and UNBUNDLED_COMMANDS works.