Sha256: bf2c9b2a68fc3d4e7ea605566e321f703870ef18492dd5646652d12fcce4d1e6

Contents?: true

Size: 456 Bytes

Versions: 24

Compression:

Stored size: 456 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 }.join
    Digest::MD5.hexdigest grammars
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
relaton-iso-bib-1.7.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.6.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.6.pre1 lib/relaton_iso_bib.rb
relaton-iso-bib-1.5.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.5.pre lib/relaton_iso_bib.rb
relaton-iso-bib-1.4.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.3.0 lib/relaton_iso_bib.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/relaton-iso-bib-1.2.0/lib/relaton_iso_bib.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/relaton-iso-bib-1.2.0/lib/relaton_iso_bib.rb
relaton-iso-bib-1.2.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.1.1 lib/relaton_iso_bib.rb
relaton-iso-bib-1.1.0 lib/relaton_iso_bib.rb
relaton-iso-bib-1.0.1 lib/relaton_iso_bib.rb
relaton-iso-bib-1.0.0 lib/relaton_iso_bib.rb
relaton-iso-bib-0.9.2 lib/relaton_iso_bib.rb
relaton-iso-bib-0.9.1 lib/relaton_iso_bib.rb
relaton-iso-bib-0.9.0 lib/relaton_iso_bib.rb
relaton-iso-bib-0.8.1 lib/relaton_iso_bib.rb
relaton-iso-bib-0.8.0 lib/relaton_iso_bib.rb
relaton-iso-bib-0.7.0 lib/relaton_iso_bib.rb