Sha256: b7d322eb5ba9a1e6abe14757251aa0e5e46eb780284f441bbe2aadde08d4cf50

Contents?: true

Size: 645 Bytes

Versions: 2

Compression:

Stored size: 645 Bytes

Contents

require "nokogiri"
require "relaton_bib"
require "relaton_omg/version"
require "relaton_omg/util"
require "relaton_omg/scraper"
require "relaton_omg/omg_bibliography"
require "relaton_omg/omg_bibliographic_item"
require "relaton_omg/xml_parser"
require "relaton_omg/hash_converter"

module RelatonOmg
  # 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 RelatonOmg::VERSION + RelatonBib::VERSION # grammars
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
relaton-omg-1.19.1 lib/relaton_omg.rb
relaton-omg-1.19.0 lib/relaton_omg.rb