1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[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:
Paul Thornthwaite 2012-11-27 16:17:16 +00:00
parent c4d176922c
commit 28a3e59245
3 changed files with 6 additions and 5 deletions

View file

@ -1,11 +1,6 @@
require File.join(File.dirname(__FILE__), 'fog', 'core')
module Fog
unless const_defined?(:VERSION)
VERSION = '1.7.0'
end
end
# FIXME: these should go away (force usage of Fog::[Compute, CDN, DNS, Storage] etc)

View file

@ -15,6 +15,7 @@ require 'time'
require 'timeout'
# internal core dependencies
require "fog/version"
require 'fog/core/attributes'
require 'fog/core/collection'
require 'fog/core/connection'

5
lib/fog/version.rb Normal file
View file

@ -0,0 +1,5 @@
module Fog
unless const_defined?(:VERSION)
VERSION = '1.7.0'
end
end