Module: RelatonGb

Extended by:
Config
Defined in:
lib/relaton_gb.rb,
lib/relaton_gb/hit.rb,
lib/relaton_gb/util.rb,
lib/relaton_gb/config.rb,
lib/relaton_gb/version.rb,
lib/relaton_gb/scrapper.rb,
lib/relaton_gb/processor.rb,
lib/relaton_gb/t_scrapper.rb,
lib/relaton_gb/xml_parser.rb,
lib/relaton_gb/gb_scrapper.rb,
lib/relaton_gb/sec_scrapper.rb,
lib/relaton_gb/document_type.rb,
lib/relaton_gb/hash_converter.rb,
lib/relaton_gb/hit_collection.rb,
lib/relaton_gb/gb_bibliography.rb,
lib/relaton_gb/gb_standard_type.rb,
lib/relaton_gb/gb_bibliographic_item.rb,
lib/relaton_gb/gb_technical_committee.rb

Overview

GB bib module.

Defined Under Namespace

Modules: Config, GbScrapper, HashConverter, Scrapper, SecScrapper, TScrapper, Util Classes: Configuration, DocumentType, GbBibliographicItem, GbBibliography, GbStandardType, GbTechnicalCommittee, Hit, HitCollection, Processor, XMLParser

Constant Summary collapse

VERSION =
"1.18.1"

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_gb.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 RelatonGb::VERSION + RelatonIsoBib::VERSION + RelatonBib::VERSION # grammars
end