Module: RelatonCie

Defined in:
lib/relaton_cie/cie_bibliography.rb,
lib/relaton_cie.rb,
lib/relaton_cie/util.rb,
lib/relaton_cie/version.rb,
lib/relaton_cie/scrapper.rb,
lib/relaton_cie/processor.rb,
lib/relaton_cie/xml_parser.rb,
lib/relaton_cie/name_parser.rb,
lib/relaton_cie/data_fetcher.rb,
lib/relaton_cie/hash_converter.rb,
lib/relaton_cie/bibliographic_item.rb

Overview

frozen_string_literal:true

Defined Under Namespace

Modules: CieBibliography, HashConverter, Scrapper, Util Classes: BibliographicItem, DataFetcher, NameParser, Processor, XMLParser

Constant Summary collapse

VERSION =
"1.19.1".freeze

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar

Returns:

  • (String)


19
20
21
22
23
24
# File 'lib/relaton_cie.rb', line 19

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