require 'yaml' module QED DIRECTORY = File.dirname(__FILE__) + '/qed' PROFILE = YAML.load(File.new(DIRECTORY + '/profile.yml')) rescue {} PACKAGE = YAML.load(File.new(DIRECTORY + '/package.yml')) rescue {} VERSION = PACKAGE.values_at('major','minor','patch','build').compact.join('.') # def self.const_missing(name) key = name.to_s.downcase if PACKAGE.key?(key) PACKAGE[key] elsif PROFILE.key?(key) PROFILE[key] else super(name) end end end require 'qed/session'