everydayrails / everydayrails-rspec-2017

Sample source for the 2017 edition of Everyday Rails Testing with RSpec.
http://rspectutorial.com
312 stars 247 forks source link

mimemagic 0.3.2 was yanked #113

Open JunichiIto opened 3 years ago

JunichiIto commented 3 years ago

This is just FYI. bundle install for this app will fail because mimemagic 0.3.2 was yanked.

https://github.com/everydayrails/everydayrails-rspec-2017/blob/76f8d23cc5516eb1f1cae11139b71f3e48ca1ac9/Gemfile.lock#L135

https://rubygems.org/gems/mimemagic/versions/0.3.2

$ bundle install
...
Your bundle is locked to mimemagic (0.3.2), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources,
that means the author of mimemagic (0.3.2) has removed it. You'll need to update your bundle to a different version of mimemagic (0.3.2) that hasn't been
removed in order to install.

In order to install gems, you need to run bundle update mimemagic instead of bundle install.

ruralocity commented 3 years ago

I'm figuring out how I want to address this. The sample app is pre-Active Storage, so the dependency is coming in from Paperclip, which is deprecated, itself. It's difficult to make changes to the sample application because I have to apply them to each chapter's branch in git. There are merge conflicts in some chapters, adding to risk.

Long term, I would like to do a rewrite, but I'm not sure yet if that means targeting Rails 6.1, 6.2, or 7.0. I also want to figure out a better way to structure the code so that it's easier to do updates.

In the meantime, running bundle update mimemagic seems like a reasonable workaround. I will try to get the book content updated in the next few days to mention this, in lieu of a code update.

renadown commented 2 years ago

I got error:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

What is that?

peresleguine commented 2 years ago

You should install shared-mime-info package and update mimemagic gem. If you are using macOS, try the following:

brew install shared-mime-info
bundle update mimemagic
juanfrancisco-18 commented 2 years ago

hola tengo este problema pero utilizo ubuntu

giseares commented 1 year ago

@juanfrancisco-18 gem install shared-mime-info bundle update mimemagic

giseares commented 1 year ago

You should install shared-mime-info package and update mimemagic gem. If you are using macOS, try the following:

brew install shared-mime-info
bundle update mimemagic

works ffor me