Sha256: 83a1e602335f8418784c805ec73e69540b042172b87c1360a5af0a11eb92d8b7

Contents?: true

Size: 711 Bytes

Versions: 3

Compression:

Stored size: 711 Bytes

Contents

require "relaton_bib"
require "relaton/index"
require "relaton_w3c/version"
require "relaton_w3c/w3c_bibliography"
require "relaton_w3c/w3c_bibliographic_item"
require "relaton_w3c/xml_parser"
require "relaton_w3c/bibxml_parser"
require "relaton_w3c/hash_converter"
require "relaton_w3c/pubid"
require "relaton_w3c/data_fetcher"
require "relaton_w3c/data_index"

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

3 entries across 3 versions & 1 rubygems

Version Path
relaton-w3c-1.16.0 lib/relaton_w3c.rb
relaton-w3c-1.14.3 lib/relaton_w3c.rb
relaton-w3c-1.14.2 lib/relaton_w3c.rb