Sha256: 442d1fa0ed5b9e4f0cc0d3898855e51c3a9dd06c331e2a6b38c3b27306532e33

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

require "digest/md5"
require "faraday"
require "yaml"
require "relaton/index"
require "relaton_bib"
require "relaton_ieee/version"
require "relaton_ieee/util"
require "relaton_ieee/document_type"
require "relaton_ieee/document_status"
require "relaton_ieee/ieee_bibliography"
require "relaton_ieee/ieee_bibliographic_item"
require "relaton_ieee/editorial_group"
require "relaton_ieee/balloting_group"
require "relaton_ieee/xml_parser"
require "relaton_ieee/bibxml_parser"
require "relaton_ieee/hash_converter"
require "relaton_ieee/data_fetcher"

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
relaton-ieee-1.19.1 lib/relaton_ieee.rb
relaton-ieee-1.19.0 lib/relaton_ieee.rb