File obs-server-2.9-0029-frontend-Require-minimal-version-of-sanitize-webmock.patch of Package obs-server
From a4a1a8116f7a534edf727826e154260a20a46bdc Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Mon, 15 Oct 2018 00:19:07 +0100
Subject: [PATCH] [frontend] Require minimal version of sanitize, webmock, vcr
gems.
Fedora build uses Gemfile and ignores Gemfile.lock
to generate dependencies, so requiring minimal versions
is important there.
Signed-off-by: Oleg Girko <ol@infoserver.lv>
---
src/api/Gemfile | 6 +++---
src/api/Gemfile.lock | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/api/Gemfile b/src/api/Gemfile
index 8c3b925ccb..3edbb5db8c 100644
--- a/src/api/Gemfile
+++ b/src/api/Gemfile
@@ -33,7 +33,7 @@ gem 'xmlhash', '>=1.3.6'
# to escape HTML (FIXME: do we still use this?)
gem 'escape_utils'
# to sanitize HTML/CSS
-gem 'sanitize'
+gem 'sanitize', '>=4.1.0'
# as authorization system
gem 'pundit'
# for password hashing
@@ -114,7 +114,7 @@ group :test do
# to freeze time
gem 'timecop'
# to fake backend replies
- gem 'webmock', '>= 2.3.0'
+ gem 'webmock', '>= 3.3.0'
# for code quality checks
gem 'flog', '> 4.1.0'
# for mocking and stubbing
@@ -147,7 +147,7 @@ group :development, :test do
# for fixtures
gem 'factory_bot_rails'
# for mocking the backend
- gem 'vcr'
+ gem 'vcr', '>= 4.0.0'
# as alternative to the standard IRB shell
gem 'pry', '>= 0.9.12'
# for style checks
diff --git a/src/api/Gemfile.lock b/src/api/Gemfile.lock
index 4788e3d7a6..da55d5cfb7 100644
--- a/src/api/Gemfile.lock
+++ b/src/api/Gemfile.lock
@@ -487,7 +487,7 @@ DEPENDENCIES
rubocop
rubocop-rspec
ruby-ldap
- sanitize
+ sanitize (>=4.1.0)
sass-rails (~> 5.0.1)
shoulda-matchers (~> 3.1)
simplecov
@@ -499,9 +499,9 @@ DEPENDENCIES
timecop
uglifier (>= 1.2.2)
unicorn-rails
- vcr
+ vcr (>= 4.0.0)
voight_kampff
- webmock (>= 2.3.0)
+ webmock (>= 3.3.0)
xmlhash (>= 1.3.6)
xmlrpc
yajl-ruby
--
2.20.1