How do I prevent gemspec from pushing anywhere?

Asked 2 years ago, Updated 2 years ago, 86 views

Usually, when I develop it on ruby, I develop it by cutting out what can be made into OSS to the public gem, and the common processing across personal projects to the private gem.

With this development, rake release is ready to be released at least if you are developing a public gem.

On the other hand, I have no plans to run rake release for private gem, but I would like to prevent it from being released to rubygems.org and published worldwide if I accidentally run it.

  • Is it possible to write a gemspec that cannot be released anywhere when developing a private gem?

ruby rubygems

2022-09-30 20:15

1 Answers

spec.metadata ['allowed_push_host']

Configuring a host that does not exist in the .

When you create a model with bundlegem, the value is "TODO:Set to 'http://mygemserver.com'.

Serving your own gems


2022-09-30 20:15

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.