Module: RelatonOgc
- Defined in:
- lib/relaton_ogc.rb,
lib/relaton_ogc/hit.rb,
lib/relaton_ogc/util.rb,
lib/relaton_ogc/version.rb,
lib/relaton_ogc/scrapper.rb,
lib/relaton_ogc/processor.rb,
lib/relaton_ogc/xml_parser.rb,
lib/relaton_ogc/data_fetcher.rb,
lib/relaton_ogc/document_type.rb,
lib/relaton_ogc/hash_converter.rb,
lib/relaton_ogc/hit_collection.rb,
lib/relaton_ogc/editorial_group.rb,
lib/relaton_ogc/ogc_bibliography.rb,
lib/relaton_ogc/ogc_bibliographic_item.rb
Defined Under Namespace
Modules: HashConverter, Scrapper, Util Classes: DataFetcher, DocumentType, EditorialGroup, Error, Hit, HitCollection, OgcBibliographicItem, OgcBibliography, Processor, XMLParser
Constant Summary collapse
- VERSION =
"1.19.0".freeze
Class Method Summary collapse
-
.grammar_hash ⇒ String
Returns hash of XML reammar.
Class Method Details
.grammar_hash ⇒ String
Returns hash of XML reammar
21 22 23 24 25 26 |
# File 'lib/relaton_ogc.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 RelatonOgc::VERSION + RelatonIsoBib::VERSION + RelatonBib::VERSION # grammars end |