Sha256: a186930f7ed1b3ea7da5241042c99b7f374c65233ae49ef0e6baa40b79e5d07d

Contents?: true

Size: 707 Bytes

Versions: 32

Compression:

Stored size: 707 Bytes

Contents

# frozen_string_literal: true

require "relaton_ietf/version"
require "relaton_ietf/ietf_bibliography"
require "relaton_ietf/ietf_bibliographic_item"
require "relaton_ietf/xml_parser"
require "relaton_ietf/hash_converter"

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

require "relaton/provider_ietf"

module RelatonIetf
  # 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

32 entries across 32 versions & 2 rubygems

Version Path
relaton-ietf-1.7.0 lib/relaton_ietf.rb
relaton-ietf-1.6.0 lib/relaton_ietf.rb
relaton-ietf-1.6.pre1 lib/relaton_ietf.rb
relaton-ietf-1.5.0 lib/relaton_ietf.rb
relaton-ietf-1.5.pre lib/relaton_ietf.rb
relaton-ietf-1.4.0 lib/relaton_ietf.rb
relaton-ietf-1.3.0 lib/relaton_ietf.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/relaton-ietf-1.2.1/lib/relaton_ietf.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/relaton-ietf-1.2.1/lib/relaton_ietf.rb
relaton-ietf-1.2.1 lib/relaton_ietf.rb
relaton-ietf-1.2.0 lib/relaton_ietf.rb
relaton-ietf-1.1.4 lib/relaton_ietf.rb
relaton-ietf-1.1.3 lib/relaton_ietf.rb
relaton-ietf-1.1.2 lib/relaton_ietf.rb
relaton-ietf-1.1.1 lib/relaton_ietf.rb
relaton-ietf-1.1.0 lib/relaton_ietf.rb
relaton-ietf-1.0.4 lib/relaton_ietf.rb
relaton-ietf-1.0.3 lib/relaton_ietf.rb
relaton-ietf-1.0.2 lib/relaton_ietf.rb
relaton-ietf-1.0.1 lib/relaton_ietf.rb