Module: RelatonBsi

Defined in:
lib/relaton_bsi.rb,
lib/relaton_bsi/hit.rb,
lib/relaton_bsi/util.rb,
lib/relaton_bsi/version.rb,
lib/relaton_bsi/scrapper.rb,
lib/relaton_bsi/processor.rb,
lib/relaton_bsi/xml_parser.rb,
lib/relaton_bsi/document_type.rb,
lib/relaton_bsi/hash_converter.rb,
lib/relaton_bsi/hit_collection.rb,
lib/relaton_bsi/bsi_bibliography.rb,
lib/relaton_bsi/bsi_bibliographic_item.rb

Defined Under Namespace

Modules: HashConverter, Scrapper, Util Classes: BsiBibliographicItem, BsiBibliography, DocumentType, Hit, HitCollection, Processor, XMLParser

Constant Summary collapse

VERSION =
"1.20.0"

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML greammar

Returns:

  • (String)


18
19
20
21
22
23
# File 'lib/relaton_bsi.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 RelatonBsi::VERSION + RelatonIsoBib::VERSION + RelatonBib::VERSION # grammars
end