Skip to content
This repository was archived by the owner on Jul 21, 2024. It is now read-only.

mimemagic 0.3.2 was yanked #113

Open
JunichiIto opened this issue Mar 26, 2021 · 6 comments
Open

mimemagic 0.3.2 was yanked #113

JunichiIto opened this issue Mar 26, 2021 · 6 comments
Labels

Comments

@JunichiIto
Copy link
Contributor

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

mimemagic (0.3.2)

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 ruralocity added the bug label Mar 31, 2021
@ruralocity
Copy link
Member

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.

@irtsx
Copy link

irtsx commented Feb 1, 2022

I got error:

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

What is that?

@peresleguine
Copy link

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
Copy link

hola tengo este problema pero utilizo ubuntu

@giseares
Copy link

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

@giseares
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants