Skip to content

A platform for community discussion. Free, open, simple.

DEV: Pin hashie and faraday versions for zendesk api compatibility (#9214)

David Taylore9a3639b1073
diff --git a/Gemfile b/Gemfile
index 73f97c05334..a1f8015d13b 100644
--- a/Gemfile
+++ b/Gemfile
@@ -255,3 +255,10 @@ end
gem 'webpush', require: false
gem 'colored2', require: false
gem 'maxminddb'
+
+# These are not direct dependencies, but we need to restrict
+# versions for compatibility with https://github.com/discourse/discourse-zendesk-plugin
+# These restrictions can be removed once the zendesk_api gem is updated
+# for newer versions of hashie and faraday
+gem 'hashie', '< 4.0.0', require: false # https://github.com/zendesk/zendesk_api_client_rb/pull/422
+gem 'faraday', '< 1.0.0', require: false # https://github.com/zendesk/zendesk_api_client_rb/pull/421
diff --git a/Gemfile.lock b/Gemfile.lock
index 1280352e63e..9c253f83084 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -456,12 +456,14 @@ DEPENDENCIES
execjs
fabrication
fakeweb
+ faraday (< 1.0.0)
fast_blank
fast_xor
fast_xs
fastimage
flamegraph
gc_tracer
+ hashie (< 4.0.0)
highline (~> 1.7.0)
htmlentities
http_accept_language