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:
parent
c4d176922c
commit
28a3e59245
3 changed files with 6 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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
5
lib/fog/version.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module Fog
|
||||
unless const_defined?(:VERSION)
|
||||
VERSION = '1.7.0'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue