Module: RelatonBipm

Extended by:
RelatonBipm
Included in:
RelatonBipm
Defined in:
lib/relaton_bipm.rb,
lib/relaton_bipm/util.rb,
lib/relaton_bipm/version.rb,
lib/relaton_bipm/committee.rb,
lib/relaton_bipm/id_parser.rb,
lib/relaton_bipm/processor.rb,
lib/relaton_bipm/workgroup.rb,
lib/relaton_bipm/xml_parser.rb,
lib/relaton_bipm/data_fetcher.rb,
lib/relaton_bipm/document_type.rb,
lib/relaton_bipm/hash_converter.rb,
lib/relaton_bipm/comment_periond.rb,
lib/relaton_bipm/editorial_group.rb,
lib/relaton_bipm/bipm_bibliography.rb,
lib/relaton_bipm/document_relation.rb,
lib/relaton_bipm/bibliographic_date.rb,
lib/relaton_bipm/data_outcomes_parser.rb,
lib/relaton_bipm/structured_identifier.rb,
lib/relaton_bipm/bipm_bibliographic_item.rb,
lib/relaton_bipm/bipm_si_brochure_parser.rb,
lib/relaton_bipm/rawdata_bipm_metrologia/fetcher.rb,
lib/relaton_bipm/rawdata_bipm_metrologia/article_parser.rb

Defined Under Namespace

Modules: HashConverter, RawdataBipmMetrologia, Util Classes: BibliographicDate, BipmBibliographicItem, BipmBibliography, BipmSiBrochureParser, CommentPeriond, Committee, DataFetcher, DataOutcomesParser, DocumentRelation, DocumentType, EditorialGroup, Error, Id, Processor, StructuredIdentifier, WorkGroup, XMLParser

Constant Summary collapse

VERSION =
"1.19.2".freeze

Instance Method Summary collapse

Instance Method Details

#grammar_hashString

Returns hash of gems versions used to generate the data model.

Returns:

  • (String)


32
33
34
35
36
37
# File 'lib/relaton_bipm.rb', line 32

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