Sha256: 1222ab5e1a930da2ea6a4aa277ad474dd856ca308bbaf6ba5730e09a28e2af89

Contents?: true

Size: 649 Bytes

Versions: 22

Compression:

Stored size: 649 Bytes

Contents

require "relaton_bib"
require "relaton_w3c/version"
require "relaton_w3c/w3c_bibliography"
require "relaton_w3c/w3c_bibliographic_item"
require "relaton_w3c/hit_collection"
require "relaton_w3c/hit"
require "relaton_w3c/scrapper"
require "relaton_w3c/xml_parser"
require "relaton_w3c/hash_converter"

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

22 entries across 22 versions & 2 rubygems

Version Path
relaton-w3c-1.9.0 lib/relaton_w3c.rb
relaton-w3c-1.8.0 lib/relaton_w3c.rb
relaton-w3c-1.7.2 lib/relaton_w3c.rb
relaton-w3c-1.7.1 lib/relaton_w3c.rb
relaton-w3c-1.7.0 lib/relaton_w3c.rb
relaton-w3c-1.6.0 lib/relaton_w3c.rb
relaton-w3c-1.6.pre1 lib/relaton_w3c.rb
relaton-w3c-1.5.0 lib/relaton_w3c.rb
relaton-w3c-1.5.pre lib/relaton_w3c.rb
relaton-w3c-1.4.0 lib/relaton_w3c.rb
relaton-w3c-1.3.3 lib/relaton_w3c.rb
relaton-w3c-1.3.2 lib/relaton_w3c.rb
relaton-w3c-1.3.1 lib/relaton_w3c.rb
relaton-w3c-1.3.0 lib/relaton_w3c.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/relaton-w3c-1.2.0/lib/relaton_w3c.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/relaton-w3c-1.2.0/lib/relaton_w3c.rb
relaton-w3c-1.2.0 lib/relaton_w3c.rb
relaton-w3c-1.1.0 lib/relaton_w3c.rb
relaton-w3c-1.0.2 lib/relaton_w3c.rb
relaton-w3c-1.0.1 lib/relaton_w3c.rb