Module: Relaton::ThreeGpp

Defined in:
lib/relaton/3gpp.rb,
lib/relaton/3gpp/ext.rb,
lib/relaton/3gpp/item.rb,
lib/relaton/3gpp/util.rb,
lib/relaton/3gpp/parser.rb,
lib/relaton/3gpp/bibdata.rb,
lib/relaton/3gpp/bibitem.rb,
lib/relaton/3gpp/doctype.rb,
lib/relaton/3gpp/release.rb,
lib/relaton/3gpp/version.rb,
lib/relaton/3gpp/item_data.rb,
lib/relaton/3gpp/processor.rb,
lib/relaton/3gpp/bibliography.rb,
lib/relaton/3gpp/data_fetcher.rb

Defined Under Namespace

Modules: Bibliography, Util Classes: Bibdata, Bibitem, DataFetcher, Doctype, Ext, Item, ItemData, Parser, Processor, Release

Constant Summary collapse

INDEXFILE =
"index-v1".freeze
VERSION =
"2.1.0"

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar

Returns:

  • (String)


18
19
20
21
22
23
# File 'lib/relaton/3gpp.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 ThreeGpp::VERSION + Relaton::Bib::VERSION # grammars
end