Module: RelatonCalconnect

Defined in:
lib/relaton_calconnect/data_fetcher.rb,
lib/relaton_calconnect.rb,
lib/relaton_calconnect/hit.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/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: Scrapper Classes: CcBibliographicItem, CcBibliography, DataFetcher, Error, HashConverter, Hit, HitCollection, Processor, TechnicalCommittee, XMLParser

Constant Summary collapse

VERSION =
"1.10.0".freeze

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar



18
19
20
21
22
23
# File 'lib/relaton_calconnect.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