[Awesome Ruby Gem] Remove yanked mimemagic from Gemfile

mimemagic has been yanked

mimemagic(0.4.0, 0.3.6 and previous versions) has been yanked, and it is not available for download directly or for other gems that may have depended on it.

1
Your bundle is locked to mimemagic (0.3.6), but that version could not be found

You need to update rails, carrierwave and caxlsx gems which dependent on mimemagic to the latest version.

Gemfile & Gemfile.lock

First, Check mimemagic dependencies.

1
2
3
4
5
6
7
8
9
$ gem dependency mimemagic --reverse-dependencies
Gem mimemagic-0.3.5
minitest (~> 5.11, development)
rake (>= 0, development)
Used by
activestorage-6.1.3 (mimemagic (~> 0.3.2))
carrierwave-2.2.0 (mimemagic (>= 0.3.0))
caxlsx-3.0.4 (mimemagic (~> 0.3))
marcel-0.3.3 (mimemagic (~> 0.3.2))

Then, edit and modify Gemfile file.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Rails 5.2.5, 6.0.3.6 and 6.1.3.1 have been released | Riding Rails
# https://weblog.rubyonrails.org/2021/3/26/marcel-upgrade-releases/
gem 'rails', '6.1.3.1'

# GitHub - carrierwaveuploader/carrierwave: Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks
# https://github.com/carrierwaveuploader/carrierwave
gem 'carrierwave', '2.2.1'

# GitHub - caxlsx/caxlsx: xlsx generation with charts, images, automated column width, customizable styles and full schema validation. Axlsx excels at helping you generate beautiful Office Open XML Spreadsheet documents without having to understand the entire ECMA specification. Check out the README for some examples of how easy it is. Best of all, you can validate your xlsx file before serialization so you know for sure that anything generated is going to load on your client's machine.
# https://github.com/caxlsx/caxlsx
gem 'caxlsx', '3.1.0'

# Remove yanked mimemagic
# gem 'mimemagic', '0.3.10'

Run bundle update command to update `Gemfile.lock’.

1
$ bundle update

References

[1] mimemagic | RubyGems.org | your community gem host - https://rubygems.org/gems/mimemagic/versions/0.3.6

[2] Rails 5.2.5, 6.0.3.6 and 6.1.3.1 have been released | Riding Rails - https://weblog.rubyonrails.org/2021/3/26/marcel-upgrade-releases/

[3] GitHub - caxlsx/caxlsx: xlsx generation with charts, images, automated column width, customizable styles and full schema validation. Axlsx excels at helping you generate beautiful Office Open XML Spreadsheet documents without having to understand the entire ECMA specification. Check out the README for some examples of how easy it is. Best of all, you can validate your xlsx file before serialization so you know for sure that anything generated is going to load on your client’s machine. - https://github.com/caxlsx/caxlsx