Create a fake mimemagic gem
Issue: gitlab.com/gitlab-org/gitlab/-/issues/325851 MR: gitlab.com/gitlab-org/gitlab/-/merge_requests/57443 There is a current issue affecting mimemagic where it was using a magic number dataset which turned out to be under a GPL licence, which in turn meant the maintainer of mimemagic had to switch to the same licence. We can not use this licence. There are still dependencies in our gemfile which require mimemagic, and instead of removing all these, we create a fake gem that we require.
Showing
... | @@ -276,6 +276,9 @@ gem 'charlock_holmes', '~> 0.7.7' | ... | @@ -276,6 +276,9 @@ gem 'charlock_holmes', '~> 0.7.7' |
# Detect mime content type from content | # Detect mime content type from content | ||
gem 'ruby-magic', '~> 0.3' | gem 'ruby-magic', '~> 0.3' | ||
# Fake version of the gem to trick bundler | |||
gem 'mimemagic', '0.3.5', path: 'vendor/shims/mimemagic', require: false | |||
# Faster blank | # Faster blank | ||
gem 'fast_blank' | gem 'fast_blank' | ||
... | ... |
Please register or sign in to comment