Sha256: 8fe6bd6e3e95d2ab6d275a7bdc3ca2f4daff0df9a2ec52360faee39fa1b0a848

Contents?: true

Size: 690 Bytes

Versions: 4

Compression:

Stored size: 690 Bytes

Contents

require "nokogiri"
require "isoics"
require "relaton_bib"
require "relaton_iso_bib/version"
require "relaton_iso_bib/config"
require "relaton_iso_bib/util"
require "relaton_iso_bib/document_type"
require "relaton_iso_bib/iso_bibliographic_item"
require "digest/md5"

module RelatonIsoBib
  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, encoding: "UTF-8" }.join
    Digest::MD5.hexdigest RelatonIsoBib::VERSION + RelatonBib::VERSION # grammars
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
relaton-iso-bib-1.18.2 lib/relaton_iso_bib.rb
relaton-iso-bib-1.18.1 lib/relaton_iso_bib.rb
relaton-iso-bib-1.18.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.17.0 lib/relaton_iso_bib.rb