lib/relaton_iana.rb in relaton-iana-1.16.0 vs lib/relaton_iana.rb in relaton-iana-1.16.1

- old
+ new

@@ -2,10 +2,12 @@ require "faraday" require "relaton/index" require "relaton_bib" require_relative "relaton_iana/version" +require_relative "relaton_iana/config" +require_relative "relaton_iana/util" require_relative "relaton_iana/iana_bibliographic_item" require_relative "relaton_iana/xml_parser" require_relative "relaton_iana/hash_converter" require_relative "relaton_iana/iana_bibliography" require_relative "relaton_iana/parser" @@ -15,11 +17,11 @@ 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 + # 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 RelatonIana::VERSION + RelatonBib::VERSION # grammars end end