Sha256: 0463378b2dcf3d387e4447a7e03d7e21798e82433e317cfb4b023ff063b68de6
Contents?: true
Size: 1013 Bytes
Versions: 1
Compression:
Stored size: 1013 Bytes
Contents
require 'rubygems' require 'bacon' require 'differ' require 'tempfile' require 'digest/md5' require 'yaml' unless Object.const_defined?(:CLAMSY_LIB_DIR) CLAMSY_LIB_DIR = File.join(File.expand_path(File.dirname(__FILE__)),'..','lib') CLAMSY_SPEC_DIR = File.expand_path(File.dirname(__FILE__)) CLAMSY_BUNDLED_CONFIG = File.join(CLAMSY_LIB_DIR, 'clamsy.yml') CLAMSY_PDFC_SCRIPT = File.join(CLAMSY_SPEC_DIR, 'pdfc', 'PDFC.sh') end $LOAD_PATH.unshift(CLAMSY_SPEC_DIR) $LOAD_PATH.unshift(CLAMSY_LIB_DIR) require 'clamsy' def Module.backup_methods(meths) meths.each {|meth| alias_method :"_orig_#{meth}", :"#{meth}" } end def Module.recover_methods(meths) meths.each {|meth| alias_method :"#{meth}", :"_orig_#{meth}" } end def Clamsy.unconfigure @config = nil end def trash_tmp_files ($trashable_tmp_files || []).select {|f| f.path }.map(&:unlink) $trashable_tmp_files = nil end def tmp_file(file_name) (($trashable_tmp_files ||= []) << Tempfile.new(file_name))[-1] end Bacon.summary_on_exit
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clamsy-0.0.5 | spec/spec_helper.rb |