Sha256: ed64328730bc979930bfc7377980201dd508cb51d281075df2c1859e0eb72e91
Contents?: true
Size: 855 Bytes
Versions: 2
Compression:
Stored size: 855 Bytes
Contents
require "digest/md5" require "mechanize" require "relaton_iso_bib" require "cnccs" require "relaton_gb/version" require "relaton_gb/util" require "relaton_gb/document_type" require "relaton_gb/gb_bibliography" # if defined? Relaton # require "relaton_gb/processor" # # don't register the gem if it's required form relaton's registry # return if caller.detect { |c| c.include? "register_gems" } # Relaton::Registry.instance.register RelatonGb::Processor # end module RelatonGb # 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 RelatonGb::VERSION + RelatonIsoBib::VERSION + RelatonBib::VERSION # grammars end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
relaton-gb-1.20.0 | lib/relaton_gb.rb |
relaton-gb-1.19.0 | lib/relaton_gb.rb |