lib/relaton_ecma.rb in relaton-ecma-1.16.0 vs lib/relaton_ecma.rb in relaton-ecma-1.16.1
- old
+ new
@@ -2,10 +2,12 @@
require "open-uri"
require "yaml"
require "relaton/index"
require "relaton_bib"
require "relaton_ecma/version"
+require "relaton_ecma/config"
+require "relaton_ecma/util"
require "relaton_ecma/bibliographic_item"
require "relaton_ecma/xml_parser"
require "relaton_ecma/hash_converter"
require "relaton_ecma/ecma_bibliography"
require "relaton_ecma/data_fetcher"
@@ -13,11 +15,11 @@
module RelatonEcma
# 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 RelatonEcma::VERSION + RelatonBib::VERSION # grammars
end
end