Sha256: 89f7a1d172f27aaa68c4c337feb0dc0e7f510d5e79a829c37208af35974bae7f

Contents?: true

Size: 698 Bytes

Versions: 3

Compression:

Stored size: 698 Bytes

Contents

# frozen_string_literal: true

require "net/http"
require "relaton/index"
require "relaton_bib"
require "relaton_ietf/version"
require "relaton_ietf/bibxml_parser"
require "relaton_ietf/ietf_bibliography"
require "relaton_ietf/xml_parser"
require "relaton_ietf/hash_converter"
require "relaton_ietf/data_fetcher"
require "relaton_ietf/renderer/bibxml"
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

3 entries across 3 versions & 1 rubygems

Version Path
relaton-ietf-1.16.0 lib/relaton_ietf.rb
relaton-ietf-1.14.5 lib/relaton_ietf.rb
relaton-ietf-1.14.4 lib/relaton_ietf.rb