Module: RelatonItu

Extended by:
Config
Defined in:
lib/relaton_itu.rb,
lib/relaton_itu/hit.rb,
lib/relaton_itu/util.rb,
lib/relaton_itu/pubid.rb,
lib/relaton_itu/config.rb,
lib/relaton_itu/version.rb,
lib/relaton_itu/scrapper.rb,
lib/relaton_itu/itu_group.rb,
lib/relaton_itu/processor.rb,
lib/relaton_itu/xml_parser.rb,
lib/relaton_itu/data_fetcher.rb,
lib/relaton_itu/data_parser_r.rb,
lib/relaton_itu/document_type.rb,
lib/relaton_itu/hash_converter.rb,
lib/relaton_itu/hit_collection.rb,
lib/relaton_itu/editorial_group.rb,
lib/relaton_itu/itu_bibliography.rb,
lib/relaton_itu/structured_identifier.rb,
lib/relaton_itu/itu_bibliographic_item.rb

Defined Under Namespace

Modules: Config, DataParserR, HashConverter, ItuBibliography, Scrapper, Util Classes: Configuration, DataFetcher, DocumentType, EditorialGroup, Error, Hit, HitCollection, ItuBibliographicItem, ItuGroup, Processor, Pubid, StructuredIdentifier, XMLParser

Constant Summary collapse

VERSION =
"1.18.0".freeze

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar

Returns:

  • (String)


20
21
22
23
24
25
# File 'lib/relaton_itu.rb', line 20

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