Module: RelatonNist

Defined in:
lib/relaton_nist.rb,
lib/relaton_nist/hit.rb,
lib/relaton_nist/util.rb,
lib/relaton_nist/version.rb,
lib/relaton_nist/scrapper.rb,
lib/relaton_nist/processor.rb,
lib/relaton_nist/xml_parser.rb,
lib/relaton_nist/mods_parser.rb,
lib/relaton_nist/pubs_export.rb,
lib/relaton_nist/data_fetcher.rb,
lib/relaton_nist/comment_period.rb,
lib/relaton_nist/hash_converter.rb,
lib/relaton_nist/hit_collection.rb,
lib/relaton_nist/document_status.rb,
lib/relaton_nist/tech_pubs_parser.rb,
lib/relaton_nist/document_relation.rb,
lib/relaton_nist/nist_bibliography.rb,
lib/relaton_nist/nist_bibliographic_item.rb

Overview

if defined? Relaton

require_relative "relaton/processor"
Relaton::Registry.instance.register(Relaton::RelatonNist::Processor)

end

Defined Under Namespace

Modules: HashConverter, Util Classes: CommentPeriod, DataFetcher, DocumentRelation, DocumentStatus, Error, Hit, HitCollection, ModsParser, NistBibliographicItem, NistBibliography, Processor, PubsExport, Scrapper, TechPubsParser, XMLParser

Constant Summary collapse

VERSION =
"1.19.4".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_nist.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 RelatonNist::VERSION + RelatonBib::VERSION # grammars
end