Module: RelatonIeee

Defined in:
lib/relaton_ieee.rb,
lib/relaton_ieee/util.rb,
lib/relaton_ieee/pub_id.rb,
lib/relaton_ieee/version.rb,
lib/relaton_ieee/processor.rb,
lib/relaton_ieee/xml_parser.rb,
lib/relaton_ieee/data_parser.rb,
lib/relaton_ieee/data_fetcher.rb,
lib/relaton_ieee/bibxml_parser.rb,
lib/relaton_ieee/document_type.rb,
lib/relaton_ieee/hash_converter.rb,
lib/relaton_ieee/balloting_group.rb,
lib/relaton_ieee/document_status.rb,
lib/relaton_ieee/editorial_group.rb,
lib/relaton_ieee/rawbib_id_parser.rb,
lib/relaton_ieee/ieee_bibliography.rb,
lib/relaton_ieee/ieee_bibliographic_item.rb

Defined Under Namespace

Modules: BibXMLParser, HashConverter, RawbibIdParser, Util Classes: BallotingGroup, DataFetcher, DataParser, DocumentStatus, DocumentType, EditorialGroup, Error, IeeeBibliographicItem, IeeeBibliography, Processor, PubId, XMLParser

Constant Summary collapse

VERSION =
"1.19.0".freeze

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar

Returns:

  • (String)


24
25
26
27
28
29
# File 'lib/relaton_ieee.rb', line 24

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 RelatonIeee::VERSION + RelatonBib::VERSION # grammars
end