fog-v1.22.0 went out with the dependencies loosely defined so it would
accept fog-core-v1.21.
fog/fog-core@e164cc7 removed a Vsphere helper method than had been
incorrectly defined on the Fog module. This was then extracted into
fog-core.
The fix was applied to `fog` already but the dependencies allow the
incorrect version of fog to run with the cleaned up version of fog-core
whilst they should not.
The guard isn't really necessary in practice, and as per the previous checkin it was incorrect if ::VERSION was defined; but the fix in the previous checkin didn't work on ruby 1.8.7
In an application where the constant VERSION is defined at global scope, Fog::VERSION would not get defined; causing a failure in core/connection.rb
So specify false for the second argument to const_defined? to restrict it to local scope.
Now available within "fog/core"
Just reverted a change where depending on Fog::VERSION for the
User-Agent made a dependency on requiring "lib/fog" which also requires
all providers and services.
That is highly undesirable from a modular perspective!