From 28a3e59245b7a0347050714421cf751113015c84 Mon Sep 17 00:00:00 2001 From: Paul Thornthwaite Date: Tue, 27 Nov 2012 16:17:16 +0000 Subject: [PATCH] [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! --- lib/fog.rb | 5 ----- lib/fog/core.rb | 1 + lib/fog/version.rb | 5 +++++ 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 lib/fog/version.rb diff --git a/lib/fog.rb b/lib/fog.rb index 90bfb3858..00f3d2b86 100644 --- a/lib/fog.rb +++ b/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) diff --git a/lib/fog/core.rb b/lib/fog/core.rb index 41ff05ef8..b36a50fbd 100644 --- a/lib/fog/core.rb +++ b/lib/fog/core.rb @@ -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' diff --git a/lib/fog/version.rb b/lib/fog/version.rb new file mode 100644 index 000000000..75f0ea33a --- /dev/null +++ b/lib/fog/version.rb @@ -0,0 +1,5 @@ +module Fog + unless const_defined?(:VERSION) + VERSION = '1.7.0' + end +end