Module: Relaton::W3c
- Defined in:
- lib/relaton/w3c.rb,
lib/relaton/w3c/ext.rb,
lib/relaton/w3c/item.rb,
lib/relaton/w3c/util.rb,
lib/relaton/w3c/pubid.rb,
lib/relaton/w3c/bibdata.rb,
lib/relaton/w3c/bibitem.rb,
lib/relaton/w3c/doctype.rb,
lib/relaton/w3c/version.rb,
lib/relaton/w3c/item_data.rb,
lib/relaton/w3c/processor.rb,
lib/relaton/w3c/data_parser.rb,
lib/relaton/w3c/bibliography.rb,
lib/relaton/w3c/data_fetcher.rb,
lib/relaton/w3c/rate_limit_handler.rb
Defined Under Namespace
Modules: RateLimitHandler, Util Classes: Bibdata, Bibitem, Bibliography, DataFetcher, DataParser, Doctype, Error, Ext, Item, ItemData, Processor, PubId
Constant Summary collapse
- INDEXFILE =
"index-v1".freeze
- VERSION =
"2.1.0".freeze
Class Method Summary collapse
-
.grammar_hash ⇒ String
Returns hash of XML reammar.
Class Method Details
.grammar_hash ⇒ String
Returns hash of XML reammar
18 19 20 21 22 23 |
# File 'lib/relaton/w3c.rb', line 18 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 Relaton::W3c::VERSION + Relaton::Bib::VERSION # grammars end |