Sha256: 919e7cb8a1333f3dcea76404f8479693b08b55f38f577d4f6a8b9c6eced12520

Contents?: true

Size: 565 Bytes

Versions: 36

Compression:

Stored size: 565 Bytes

Contents

require "relaton_nist/version"
require "relaton_nist/nist_bibliography"

# if defined? Relaton
#   require_relative "relaton/processor"
#   Relaton::Registry.instance.register(Relaton::RelatonNist::Processor)
# end

module RelatonNist
  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

36 entries across 36 versions & 2 rubygems

Version Path
relaton-nist-1.9.1 lib/relaton_nist.rb
relaton-nist-1.9.0 lib/relaton_nist.rb
relaton-nist-1.8.0 lib/relaton_nist.rb
relaton-nist-1.7.4 lib/relaton_nist.rb
relaton-nist-1.7.3 lib/relaton_nist.rb
relaton-nist-1.7.2 lib/relaton_nist.rb
relaton-nist-1.7.1 lib/relaton_nist.rb
relaton-nist-1.7.0 lib/relaton_nist.rb
relaton-nist-1.6.0 lib/relaton_nist.rb
relaton-nist-1.6.pre1 lib/relaton_nist.rb
relaton-nist-1.5.1 lib/relaton_nist.rb
relaton-nist-1.5.0 lib/relaton_nist.rb
relaton-nist-1.5.pre lib/relaton_nist.rb
relaton-nist-1.4.0 lib/relaton_nist.rb
relaton-nist-1.3.1 lib/relaton_nist.rb
relaton-nist-1.3.0 lib/relaton_nist.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/relaton-nist-1.2.2/lib/relaton_nist.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/relaton-nist-1.2.2/lib/relaton_nist.rb
relaton-nist-1.2.2 lib/relaton_nist.rb
relaton-nist-1.2.1 lib/relaton_nist.rb