문제

I'm working on a project that requires the use of another gem. I want to make this gem, however I'm aware that when a gem is created, it can get synchronized w/ RubyGems and made public, which I do not want. I'm also aware that a private server can be set up w/ utilities such as Gem In A Box, but I also want to avoid doing this if I can. Is there a way to simply set up a gem to not synch w/ RubyGems?

도움이 되었습니까?

해결책

You can always just reference a gem in a Gemfile using a direct path, eg:

gem 'extracted_library', :path => './vendor/extracted_library'

You can also use a git archive. See the Gemfile docs for more details.

This may help with your situation (I'm not sure of your exact setup).

다른 팁

You can easily setup private gem server in 2 minutes with geminabox docker image. Check out my answer how to do it.

Then you can add another one source to your Gemfile:

source 'http://myuser:mypassword@YOUR_HOST:9292'

All public gems will be taken from RubyGems and all private gems will be installed from your private server.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top