File obs-server-2.9-0028-frontend-Require-mini_mime-gem-explicitly.patch of Package obs-server

From 44425400959d6435c60802a53d544b02c959ad39 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 cfbf81e9d2..8c3b925ccb 100644
--- a/src/api/Gemfile
+++ b/src/api/Gemfile
@@ -70,6 +70,8 @@ gem 'bunny'
 gem 'data_migrate', '= 3.2.2'
 # for URI encoding
 gem 'addressable'
+# 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 085cf9bc56..4788e3d7a6 100644
--- a/src/api/Gemfile.lock
+++ b/src/api/Gemfile.lock
@@ -460,6 +460,7 @@ DEPENDENCIES
   json
   kaminari
   launchy
+  mini_mime (>= 1.0.0)
   minitest
   minitest-fail-fast
   minitest-reporters
-- 
2.20.1