File obs-server-2.10-0022-frontend-Require-mini_mime-gem-explicitly.patch of Package obs-server

From 8de9e9bfc502fabfa8749459fd41f4b605dcac21 Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Sun, 14 Oct 2018 23:55:09 +0100
Subject: [PATCH] [frontend] Require mini_mime gem explicitly.

Backend::File now uses MiniMime as a result of 435d29a877,
so explicit dependency for mini_mime gem should be used
instead of relying on this gem to be pulled as a dependency
of some other gem.

Signed-off-by: Oleg Girko <ol@infoserver.lv>
---
 src/api/Gemfile      | 2 ++
 src/api/Gemfile.lock | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/api/Gemfile b/src/api/Gemfile
index 81b037ba12..58d9132d4a 100644
--- a/src/api/Gemfile
+++ b/src/api/Gemfile
@@ -84,6 +84,8 @@ gem 'rails-timeago', '~> 2.0'
 gem 'deep_cloneable', '~> 2.4.0'
 # Server-side datatables
 gem 'ajax-datatables-rails'
+# for mime lookup
+gem 'mini_mime', '>= 1.0.0'
 
 group :development, :production do
   # to have the delayed job daemon
diff --git a/src/api/Gemfile.lock b/src/api/Gemfile.lock
index 9c0ba9a897..62e1f83139 100644
--- a/src/api/Gemfile.lock
+++ b/src/api/Gemfile.lock
@@ -527,6 +527,7 @@ DEPENDENCIES
   kaminari
   launchy
   lograge
+  mini_mime (>= 1.0.0)
   minitest
   minitest-ci
   minitest-fail-fast
-- 
2.31.1