Sha256: a9d25306327284dda4da7024a9cb772a17198e6dc2716c18109fc6a1e709d78f

Contents?: true

Size: 684 Bytes

Versions: 12

Compression:

Stored size: 684 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/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 grammars
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
relaton-iho-1.9.0 lib/relaton_iho.rb
relaton-iho-1.8.0 lib/relaton_iho.rb
relaton-iho-1.7.2 lib/relaton_iho.rb
relaton-iho-1.7.1 lib/relaton_iho.rb
relaton-iho-1.7.0 lib/relaton_iho.rb
relaton-iho-1.6.0 lib/relaton_iho.rb
relaton-iho-1.6.pre1 lib/relaton_iho.rb
relaton-iho-1.5.0 lib/relaton_iho.rb
relaton-iho-1.5.pre lib/relaton_iho.rb
relaton-iho-1.4.0 lib/relaton_iho.rb
relaton-iho-1.3.2 lib/relaton_iho.rb
relaton-iho-1.3.1 lib/relaton_iho.rb