Module: RelatonCalconnect

Defined in:
lib/relaton_calconnect/data_fetcher.rb,
lib/relaton_calconnect.rb,
lib/relaton_calconnect/hit.rb,
lib/relaton_calconnect/util.rb,
lib/relaton_calconnect/version.rb,
lib/relaton_calconnect/scrapper.rb,
lib/relaton_calconnect/processor.rb,
lib/relaton_calconnect/xml_parser.rb,
lib/relaton_calconnect/document_type.rb,
lib/relaton_calconnect/hash_converter.rb,
lib/relaton_calconnect/hit_collection.rb,
lib/relaton_calconnect/cc_bibliography.rb,
lib/relaton_calconnect/technical_committee.rb,
lib/relaton_calconnect/cc_bibliographic_item.rb

Overview

frozen_string_literal:true

Defined Under Namespace

Modules: HashConverter, Scrapper, Util Classes: CcBibliographicItem, CcBibliography, DataFetcher, DocumentType, Error, Hit, HitCollection, Processor, TechnicalCommittee, XMLParser

Constant Summary collapse

VERSION =
"1.20.0".freeze

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar

Returns:

  • (String)


21
22
23
24
25
26
# File 'lib/relaton_calconnect.rb', line 21

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