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

Bug fix: Ensure Fog::VERSION gets defined

In an application where the constant VERSION is defined at global scope, Fog::VERSION would not get defined; causing a failure in core/connection.rb 

So specify false for the second argument to const_defined? to restrict it to local scope.
This commit is contained in:
ronen barzel 2012-12-05 12:18:28 +00:00
parent 6109001172
commit 298c35d1f4

View file

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