b0VIM 7.2xWKeOezTristanMacBook-Pro.local~Tristan/Sites/acts_as_markup/lib/acts_as_markup.rbutf-8 3210#"! UtpKadK\'~  D  A  5 4  } | 3  > Qvr6 uo`_DCActsAsMarkup.require_all_libs_relative_to __FILE__, 'acts'require 'acts_as_markup/stringlike'require 'acts_as_markup/exts/object'end # module ActsAsMarkup # :startdoc: end Dir.glob(search_me).sort.each {|rb| require rb} ::File.join(::File.dirname(fname), dir, '**', '*.rb')) search_me = ::File.expand_path( dir ||= ::File.basename(fname, '.*') def self.require_all_libs_relative_to( fname, dir = nil ) # # the _filename_ does not have to be equivalent to the directory. # in. Optionally, a specific _directory_ name can be passed in such that # directory below this file that has the same name as the filename passed # Utility method used to rquire all files ending in .rb that lie in the end args.empty? ? PATH : ::File.join(PATH, *args) def self.path( *args ) # # File.join. # they will be joined to the end of the path using # Returns the path for the module. If any arguments are given, end args.empty? ? LIBPATH : ::File.join(LIBPATH, *args) def self.libpath( *args ) # # File.join. # they will be joined to the end of the library path using # Returns the library path for the module. If any arguments are given, end VERSION def self.version # # Returns the version string for the library. # :stopdoc: mattr_accessor :markdown_library @@markdown_library = DEFAULT_MARKDOWN_LIB LIBRARY_EXTENSIONS = Set.new(Dir[ActsAsMarkup::LIBPATH + 'acts_as_markup/exts/*.rb'].map {|file| File.basename(file, '.rb')}).delete('string') :lib_name => "maruku"} } :maruku => {:class_name => "Maruku", :lib_name => "peg_markdown"}, :rpeg => {:class_name => "PEGMarkdown", :lib_name => "bluecloth"}, :bluecloth => {:class_name => "BlueCloth", :lib_name => "rdiscount"}, MARKDOWN_LIBS = { :rdiscount => {:class_name => "RDiscount", DEFAULT_MARKDOWN_LIB = :rdiscount end class UnsportedMarkdownLibrary < ArgumentError # This exception is raised when an unsupported Markdown library is set to the config value. end class UnsupportedMarkupLanguage < ArgumentError # This exception is raised when an unsupported markup language is supplied to acts_as_markup. # :startdoc: PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR VERSION = '1.3.4'.freeze # :stopdoc:module ActsAsMarkuprequire 'active_support'