File obs-server-2.9-0002-api-Require-json-gem-explicitly-for-tests.patch of Package obs-server

From 606fc4d225f4a10dcf2da9bc4ecda89cff586722 Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Sun, 13 Jul 2014 15:03:56 +0100
Subject: [PATCH] [api] Require json gem explicitly for tests.

The json gem is required by tests, but it was not listed in Gemfile,
relying on including it as a dependency for some other gem.
Unfortunately this assumption may be not true with some gem versions,
expecially when they are installed by system package manager,
without bundler.

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 c487720c66..004578d40d 100644
--- a/src/api/Gemfile
+++ b/src/api/Gemfile
@@ -129,6 +129,8 @@ group :test do
   gem 'rantly', '>= 1.1.0'
   # To ensure consistent Git commits
   gem 'git-cop', '>=1.5.0'
+  # for tests
+  gem 'json'
 end
 
 # Gems used only during development not required in production environments by default.
diff --git a/src/api/Gemfile.lock b/src/api/Gemfile.lock
index c3b78b37fe..327d6ba54c 100644
--- a/src/api/Gemfile.lock
+++ b/src/api/Gemfile.lock
@@ -458,6 +458,7 @@ DEPENDENCIES
   jquery-datatables-rails
   jquery-rails
   jquery-ui-rails (~> 4.2.1)
+  json
   kaminari
   launchy
   minitest
-- 
2.20.1