Sha256: c9b9e0701d22b3b91152534882f4a0cf9f83cb3d4ed0c945dc411623616456da

Contents?: true

Size: 595 Bytes

Versions: 14

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true

require "faraday"
require "relaton_bib"
require_relative "relaton_iana/version"
require_relative "relaton_iana/iana_bibliography"
require_relative "relaton_iana/parser"
require_relative "relaton_iana/data_fetcher"

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

14 entries across 14 versions & 1 rubygems

Version Path
relaton-iana-1.13.1 lib/relaton_iana.rb
relaton-iana-1.13.0 lib/relaton_iana.rb
relaton-iana-1.12.5 lib/relaton_iana.rb
relaton-iana-1.12.4 lib/relaton_iana.rb
relaton-iana-1.12.3 lib/relaton_iana.rb
relaton-iana-1.12.2 lib/relaton_iana.rb
relaton-iana-1.12.1 lib/relaton_iana.rb
relaton-iana-1.12.0 lib/relaton_iana.rb
relaton-iana-1.11.0 lib/relaton_iana.rb
relaton-iana-1.10.3 lib/relaton_iana.rb
relaton-iana-1.10.2 lib/relaton_iana.rb
relaton-iana-1.10.1 lib/relaton_iana.rb
relaton-iana-1.10.0 lib/relaton_iana.rb
relaton-iana-1.9.2 lib/relaton_iana.rb