13920: Fixes google-api-client gem issue with ruby 2.3.7+
[arvados.git] / sdk / ruby / lib / arvados / google_api_client.rb
index 71a53f0048582e3eae92f0cfe82e6bd42657aceb..69383d12f63f22ded7957c25fd012d7530763ae4 100644 (file)
@@ -1,4 +1,13 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
 require 'google/api_client'
+# Monkeypatch google-api-client gem to avoid sending newline characters
+# on headers to make ruby-2.3.7+ happy.
+# See: https://dev.arvados.org/issues/13920
+Google::APIClient::ENV::OS_VERSION.strip!
+
 require 'json'
 require 'tempfile'