How to use bundle config local

I have private gem what is used in main project.
This gem is set up as another project,  how to set that main project uses changes to gem made localy?

Attaching gems project to main project, allows just easy to edit it, main project not uses local changes as in Gemfile is:
gem "gem-name", git: "got-path", branch: "master"

This works from cmd:
bundle config local.gem-name ~/PATH_TO_PROJECT/gem-name

How to set something like this with RubyMine 2024.1.4?

0

Hello,

Is there any /.bundle/config file in the project's root that specifies that?

0

used: macOS 14.5 M1

Yes, in projects root is hidden /.bundle/config file and it was without this path and has only this content:

BUNDLE_JOBS: "2"

cmd bundle config, shows path to different bundle file what is used, located in: 

/Users/my_username/.bundle/config

After is used cmd: 

bundle config local.gem-name ~/PATH_TO_PROJECT/gem-name

 New entry is added to (/Users/my_username/.bundle/config), like:

BUNDLE_LOCAL__GEM-NAME: "/Users/my_username/PATH_TO_PROJECT/gem-name"

 

0

So do you manage to work with that gem using bundler commands from the Terminal, for example?

0

Yes, for example project with commands works.

0

Could you please provide more details on how to reproduce the same setup as yours so that I can check it on my side? In addition, did you run Tools - Bundler - Install and did the gem in question appear in the External libraries node after that?

0

请先登录再写评论。