Sha256: 4fa1ba1643420e6627b22d693d8f119a17fb52b7671bcb0df60a64b0dd140f55
Contents?: true
Size: 772 Bytes
Versions: 19
Compression:
Stored size: 772 Bytes
Contents
# frozen_string_literal: true require "net/http" require "relaton_bib" require_relative "relaton_3gpp/version" require_relative "relaton_3gpp/release" require_relative "relaton_3gpp/bibliographic_item" require_relative "relaton_3gpp/hash_converter" require_relative "relaton_3gpp/xml_parser" require_relative "relaton_3gpp/bibliography" require_relative "relaton_3gpp/parser" require_relative "relaton_3gpp/data_fetcher" module Relaton3gpp 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 end end
Version data entries
19 entries across 19 versions & 1 rubygems