-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Add missing bundle info
feature, bug fix, and specs
#7026
Conversation
I just noticed that
vs
|
That's |
Oh, nice! We should document that Then I'll remove the spec about the regexp matching, since the feature is not really there and it's only passing by chance... 😅 |
Actually, this is not true. The new
I think we can bring this feature from |
902b311
to
c166822
Compare
For consistency with `bundle show` specs.
This case `bundle info rails` is already tested at the beginning of the file. Plus, the description is misleading since no `--path` option is given here.
To be just like how current `bundle show` is tested.
Skip for now the functionality not currently supported in `bundle info`.
Just like `bundle show rails` did.
The raise is using the name of the class on its message! ``` Could not find gem 'Bundler::CLI::Common'. ``` Since we've never received a WTF report about this, I'll assume this is just dead code and remove it.
Just exit.
c166822
to
83d22e7
Compare
I ported the missing feature from Something I also noticed is that If a user wants to see information about any installed gem, not necessarily in the bundle, there's Thoughts about this? |
@indirect Do you have any opinion about this? I'm torn here. My previous message kind of makes sense to me and might be strictly more correct, but in real life would probably lead to worse behavior. As of today:
Regardless of this, this PR should be ready to go! |
@deivid-rodriguez oh man, you're right. Thanks for getting this fixed up! @bundlerbot r+ |
7026: Add missing `bundle info` feature, bug fix, and specs r=indirect a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that `bundler info GEM` did not have feature parity with `bundle show GEM`, and it should because it's the recommended alternative. Also, `bundle info bundler` was showing an incorrect path while `bundle show bundler` was correct. ### What was your diagnosis of the problem? My diagnosis was that some code should be pulled from `bundle show`. ### What is your fix for the problem, implemented in this PR? My fix is to port the missing feature, bug fix, and specs to `bundle info` from `bundle show`. ### Why did you choose this fix out of the possible options? I chose this fix because it guarantees that the recommended alternative will work similarly to the current show command. Co-authored-by: David Rodríguez <[email protected]>
Build succeeded |
What was the end-user problem that led to this PR?
The problem was that
bundler info GEM
did not have feature parity withbundle show GEM
, and it should because it's the recommended alternative. Also,bundle info bundler
was showing an incorrect path whilebundle show bundler
was correct.What was your diagnosis of the problem?
My diagnosis was that some code should be pulled from
bundle show
.What is your fix for the problem, implemented in this PR?
My fix is to port the missing feature, bug fix, and specs to
bundle info
frombundle show
.Why did you choose this fix out of the possible options?
I chose this fix because it guarantees that the recommended alternative will work similarly to the current show command.