Sha256: 06c637dc8c766e8a4119c552de6e321d2bd6796e05b48de00cfd4f413ef2a00b

Contents?: true

Size: 475 Bytes

Versions: 12

Compression:

Stored size: 475 Bytes

Contents

require "relaton_iso_bib/version"
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 grammars
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
relaton-iso-bib-1.16.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.14.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.13.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.12.1 lib/relaton_iso_bib.rb
relaton-iso-bib-1.12.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.11.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.10.1 lib/relaton_iso_bib.rb
relaton-iso-bib-1.10.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.9.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.8.1 lib/relaton_iso_bib.rb
relaton-iso-bib-1.8.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.7.1 lib/relaton_iso_bib.rb