Skip to content
Browse files

[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!
  • Loading branch information...
1 parent c4d1769 commit 28a3e59245b7a0347050714421cf751113015c84 @tokengeek tokengeek committed Nov 27, 2012
Showing with 6 additions and 5 deletions.
  1. +0 −5 lib/fog.rb
  2. +1 −0 lib/fog/core.rb
  3. +5 −0 lib/fog/version.rb
View
5 lib/fog.rb
@@ -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
1 lib/fog/core.rb
@@ -15,6 +15,7 @@
require 'timeout'
# internal core dependencies
+require "fog/version"
require 'fog/core/attributes'
require 'fog/core/collection'
require 'fog/core/connection'
View
5 lib/fog/version.rb
@@ -0,0 +1,5 @@
+module Fog
+ unless const_defined?(:VERSION)
+ VERSION = '1.7.0'
+ end
+end

0 comments on commit 28a3e59

Please sign in to comment.
Something went wrong with that request. Please try again.