# -*- coding: utf-8 -*- # # std lib # require 'fileutils' require 'tmpdir' require 'yaml' require 'ostruct' require 'optparse' # # rubygems # require 'optparse-command' module DirCat def self.version cwd = File.dirname( __FILE__) 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 end require 'dircat/extension_md5' require 'dircat/extension_numeric' require 'dircat/cat' require 'dircat/entry' require 'dircat/report' require 'dircat/cli/cli_dircat' require 'dircat/cli/command_build' require 'dircat/cli/command_diff' require 'dircat/cli/command_query'