Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Fix locating gem when bundle show process outputs warnings#26

Open
asok wants to merge 1 commit intoendofunky:masterfrom
asok:fix-bundle-gem-location
Open

Fix locating gem when bundle show process outputs warnings#26
asok wants to merge 1 commit intoendofunky:masterfrom
asok:fix-bundle-gem-location

Conversation

@asok
Copy link
Copy Markdown
Contributor

@asok asok commented Apr 7, 2020

On my project bundle show --path gives such output:

Your Gemfile lists the gem rack-mini-profiler (>= 0) more than once.
You should probably keep only one of them.
Remove any duplicate entries and specify the gem only once (per group).
While it's not a problem now, it could cause errors if you change the version of one of them later.
/Users/asok/.gem/ruby/2.6.3/gems/actioncable-6.0.2.1

This output breaks the command bundle-open.

The change assumes that the last line contains the actual path to the gem, the rest is ignored.
My change also removes the local variable remote. I'm not quite sure what is the purpose of it? When it was t and passing it as a first argument to concat is causing an error.

@asok asok force-pushed the fix-bundle-gem-location branch from 022c597 to 2dfdfe8 Compare April 13, 2020 13:09
@asok asok force-pushed the fix-bundle-gem-location branch from 2dfdfe8 to 315a2fe Compare April 13, 2020 13:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant