[core] Splits Fog::VERSION into own file
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!
This commit is contained in:
parent
c4d176922c
commit
28a3e59245
|
@ -1,11 +1,6 @@
|
||||||
require File.join(File.dirname(__FILE__), 'fog', 'core')
|
require File.join(File.dirname(__FILE__), 'fog', 'core')
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
|
|
||||||
unless const_defined?(:VERSION)
|
|
||||||
VERSION = '1.7.0'
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# FIXME: these should go away (force usage of Fog::[Compute, CDN, DNS, Storage] etc)
|
# FIXME: these should go away (force usage of Fog::[Compute, CDN, DNS, Storage] etc)
|
||||||
|
|
|
@ -15,6 +15,7 @@ require 'time'
|
||||||
require 'timeout'
|
require 'timeout'
|
||||||
|
|
||||||
# internal core dependencies
|
# internal core dependencies
|
||||||
|
require "fog/version"
|
||||||
require 'fog/core/attributes'
|
require 'fog/core/attributes'
|
||||||
require 'fog/core/collection'
|
require 'fog/core/collection'
|
||||||
require 'fog/core/connection'
|
require 'fog/core/connection'
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
module Fog
|
||||||
|
unless const_defined?(:VERSION)
|
||||||
|
VERSION = '1.7.0'
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue