Sha256: a64fae36abd012290d252d7fbfe217711d11ca4a5f95d64995ca70f40b16041c

Contents?: true

Size: 659 Bytes

Versions: 12

Compression:

Stored size: 659 Bytes

Contents

require "relaton_bib"
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/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

12 entries across 12 versions & 1 rubygems

Version Path
relaton-w3c-1.14.1 lib/relaton_w3c.rb
relaton-w3c-1.14.0 lib/relaton_w3c.rb
relaton-w3c-1.13.1 lib/relaton_w3c.rb
relaton-w3c-1.13.0 lib/relaton_w3c.rb
relaton-w3c-1.12.4 lib/relaton_w3c.rb
relaton-w3c-1.12.3 lib/relaton_w3c.rb
relaton-w3c-1.12.2 lib/relaton_w3c.rb
relaton-w3c-1.12.1 lib/relaton_w3c.rb
relaton-w3c-1.12.0 lib/relaton_w3c.rb
relaton-w3c-1.11.6 lib/relaton_w3c.rb
relaton-w3c-1.11.5 lib/relaton_w3c.rb
relaton-w3c-1.11.4 lib/relaton_w3c.rb