require "relaton_itu/version" require "relaton_itu/itu_bibliography" require "digest/md5" # if defined? Relaton # require_relative "relaton/processor" # Relaton::Registry.instance.register(Relaton::RelatonItu::Processor) # end module RelatonItu class Error < StandardError; end # Returns hash of XML reammar # @return [String] def self.grammar_hash gem_path = File.expand_path "..", __dir__ grammars_path = File.join gem_path, "grammars", "*" grammars = Dir[grammars_path].sort.map { |gp| File.read gp }.join Digest::MD5.hexdigest grammars end end