Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install old versions of Ruby Gems?

Tags:

rubygems

I need to install an old version of cluster_chef, but it has been yanked. My project has insane dependencies, so I'm not sure how to install something that has been yanked.

Any help would be greatly appreciated.

like image 915
Shamoon Avatar asked Sep 01 '25 10:09

Shamoon


1 Answers

It’s not possible to install yanked gems. But you could perhaps work around your issue by relaxing at bit your version dependencies in your project Gemfile?

Instead of:

gem 'cluster_chef', '3.0.4'

Use:

gem 'cluster_chef', '~> 3.0.4'

If the version 3.0.4 of cluster_chef is not available, Bundler will install the latest version of the gem that satisfies all dependencies.

If you’re still stuck in your dependencies, your last solution is to fork and edit the libraries depending on the yanked version of cluster_chef to use a newer version of it.

like image 50
edouardbriere Avatar answered Sep 03 '25 01:09

edouardbriere