lib/relaton_iho.rb in relaton-iho-1.16.0 vs lib/relaton_iho.rb in relaton-iho-1.16.1
- old
+ new
@@ -1,10 +1,12 @@
require "digest/md5"
require "yaml"
require "relaton_bib"
require "relaton/index"
require "relaton_iho/version"
+require "relaton_iho/config"
+require "relaton_iho/util"
require "relaton_iho/iho_bibliography"
require "relaton_iho/hash_converter"
require "relaton_iho/xml_parser"
require "relaton_iho/editorial_group"
require "relaton_iho/iho_group"
@@ -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 RelatonIho::VERSION + RelatonBib::VERSION # grammars
end
end