lib/relaton_cen.rb in relaton-cen-1.16.3 vs lib/relaton_cen.rb in relaton-cen-1.16.4

- old
+ new

@@ -1,12 +1,14 @@ # frozen_string_literal: true require "digest/md5" require "mechanize" require "nokogiri" -require_relative "relaton_cen/version" require "relaton_iso_bib" +require_relative "relaton_cen/version" +require "relaton_cen/config" +require "relaton_cen/util" require "relaton_cen/biblographic_item" require "relaton_cen/scrapper" require "relaton_cen/hit_collection" require "relaton_cen/hit" require "relaton_cen/xml_parser" @@ -15,11 +17,11 @@ module RelatonCen # Returns hash of XML greammar # @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 RelatonCen::VERSION + RelatonIsoBib::VERSION + RelatonBib::VERSION # grammars end end