Module: RelatonIetf

Defined in:
lib/relaton_ietf.rb,
lib/relaton_ietf/version.rb,
lib/relaton_ietf/scrapper.rb,
lib/relaton_ietf/committee.rb,
lib/relaton_ietf/processor.rb,
lib/relaton_ietf/rfc_entry.rb,
lib/relaton_ietf/xml_parser.rb,
lib/relaton_ietf/data_fetcher.rb,
lib/relaton_ietf/bibxml_parser.rb,
lib/relaton_ietf/hash_converter.rb,
lib/relaton_ietf/renderer/bibxml.rb,
lib/relaton_ietf/rfc_index_entry.rb,
lib/relaton_ietf/ietf_bibliography.rb,
lib/relaton_ietf/ietf_bibliographic_item.rb

Defined Under Namespace

Modules: BibXMLParser, IetfBibliography, Renderer, Scrapper Classes: Committee, DataFetcher, HashConverter, IetfBibliographicItem, Processor, RfcEntry, RfcIndexEntry, XMLParser

Constant Summary collapse

VERSION =
"1.14.5".freeze

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar

Returns:

  • (String)


18
19
20
21
22
23
# File 'lib/relaton_ietf.rb', line 18

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