module Patron
def self.version
:nodoc:
def self.version cwd = Pathname(__FILE__).dirname.expand_path.to_s yaml = YAML.load_file(cwd + '/../VERSION.yml') major = (yaml['major'] || yaml[:major]).to_i minor = (yaml['minor'] || yaml[:minor]).to_i patch = (yaml['patch'] || yaml[:patch]).to_i "#{major}.#{minor}.#{patch}" end