From cc57010b744a802769ba2bc0a54f7ec30bf3a46b Mon Sep 17 00:00:00 2001 From: Daniel Lobato Date: Thu, 28 Apr 2016 07:29:42 +0200 Subject: [PATCH] Require azure/core manually 'azure' moved part of it to a gem called 'azure_core'. They released a version that lists that gem as a dependency. When this version is used with 'fog-azure', we get an error because 'azure/core' isn't loaded (see https://github.com/Azure/azure-sdk-for-ruby/pull/383). We can simply preload it in fog-azure and not let the error in the dependency affect us. --- lib/fog/azure/compute.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/azure/compute.rb b/lib/fog/azure/compute.rb index 08834cd..dd17e8f 100644 --- a/lib/fog/azure/compute.rb +++ b/lib/fog/azure/compute.rb @@ -72,7 +72,8 @@ def initialize(options={}) class Real def initialize(options) begin - require "azure" + require 'azure' + require 'azure/core' rescue LoadError => e retry if require("rubygems") raise e.message