Sha256: 5ab0fbf99768362660667ddd6b919581a9a6989667978ab6ecff8a5e83e0559e

Contents?: true

Size: 569 Bytes

Versions: 7

Compression:

Stored size: 569 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"

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

7 entries across 7 versions & 1 rubygems

Version Path
relaton-ietf-1.9.0 lib/relaton_ietf.rb
relaton-ietf-1.8.0 lib/relaton_ietf.rb
relaton-ietf-1.7.5 lib/relaton_ietf.rb
relaton-ietf-1.7.4 lib/relaton_ietf.rb
relaton-ietf-1.7.3 lib/relaton_ietf.rb
relaton-ietf-1.7.2 lib/relaton_ietf.rb
relaton-ietf-1.7.1 lib/relaton_ietf.rb