Sha256: f70687dcedd396f2aa23e266d0201698a84057a1b167fd9fbde54c535253a487

Contents?: true

Size: 764 Bytes

Versions: 3

Compression:

Stored size: 764 Bytes

Contents

require "mechanize"
require "parslet"
require "digest/md5"
require "relaton/index"
require "relaton_bib"
require "relaton_itu/version"
require "relaton_itu/config"
require "relaton_itu/util"
require "relaton_itu/document_type"
require "relaton_itu/pubid"
require "relaton_itu/itu_bibliography"
require "relaton_itu/data_fetcher"
require "relaton_itu/data_parser_r"

module RelatonItu
  class Error < StandardError; end

  # Returns hash of XML reammar
  # @return [String]
  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 RelatonItu::VERSION + RelatonBib::VERSION # grammars
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
relaton-itu-1.18.1 lib/relaton_itu.rb
relaton-itu-1.18.0 lib/relaton_itu.rb
relaton-itu-1.17.0 lib/relaton_itu.rb