Sha256: 071a0311bb8d4be9252ecca0bf2771c6ba065d7aefc89caea71c6da9d48bdc75

Contents?: true

Size: 836 Bytes

Versions: 3

Compression:

Stored size: 836 Bytes

Contents

require "digest/md5"
require "yaml"
require "relaton_bib"
require "relaton/index"
require "relaton_iho/version"
require "relaton_iho/util"
require "relaton_iho/document_type"
require "relaton_iho/iho_bibliography"
require "relaton_iho/hash_converter"
require "relaton_iho/xml_parser"
require "relaton_iho/editorial_group"
require "relaton_iho/iho_group"
require "relaton_iho/comment_periond"
require "relaton_iho/iho_bibliographic_item"

module RelatonIho
  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 RelatonIho::VERSION + RelatonBib::VERSION # grammars
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
relaton-iho-1.20.0 lib/relaton_iho.rb
relaton-iho-1.19.1 lib/relaton_iho.rb
relaton-iho-1.19.0 lib/relaton_iho.rb