lib/fanforce/base/utils.rb in fanforce-base-1.0.3 vs lib/fanforce/base/utils.rb in fanforce-base-1.0.4

- old
+ new

@@ -111,16 +111,16 @@ def to_public_version(version) version.split('.')[0...2].join('.').to_f end def version - to_public_version(VERSION) + to_public_version(self::VERSION) end def deployment_dependencies versions = {} - versions[:fanforce_version] = to_public_version(VERSION) if defined?(VERSION) - versions[:uranium_version] = to_public_version(URANIUM_VERSION) if defined?(URANIUM_VERSION) + versions[:fanforce_version] = to_public_version(self::VERSION) if const_defined?(:VERSION) + versions[:uranium_version] = to_public_version(self::URANIUM_VERSION) if const_defined?(:URANIUM_VERSION) return versions end end