Sha256: 732a9a93ee4f1e4aaaa1e11097d374798086c4db1f5526dc63336c548493d43b

Contents?: true

Size: 652 Bytes

Versions: 7

Compression:

Stored size: 652 Bytes

Contents

require "digest/md5"
require "relaton_bib"
require "relaton_iho/version"
require "relaton_iho/iho_bibliography"
require "relaton_iho/hash_converter"
require "relaton_iho/xml_parser"
require "relaton_iho/editorial_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 grammars
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
relaton-iho-1.3.0 lib/relaton_iho.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/relaton-iho-1.2.3/lib/relaton_iho.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/relaton-iho-1.2.3/lib/relaton_iho.rb
relaton-iho-1.2.3 lib/relaton_iho.rb
relaton-iho-1.2.2 lib/relaton_iho.rb
relaton-iho-1.2.1 lib/relaton_iho.rb
relaton-iho-1.2.0 lib/relaton_iho.rb