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

Version Path
relaton-3gpp-1.14.3 lib/relaton_3gpp.rb
relaton-3gpp-1.14.2 lib/relaton_3gpp.rb
relaton-3gpp-1.14.1 lib/relaton_3gpp.rb
relaton-3gpp-1.14.0 lib/relaton_3gpp.rb
relaton-3gpp-1.13.0 lib/relaton_3gpp.rb
relaton-3gpp-1.12.0 lib/relaton_3gpp.rb
relaton-3gpp-1.11.1 lib/relaton_3gpp.rb
relaton-3gpp-1.11.0 lib/relaton_3gpp.rb
relaton-3gpp-1.10.5 lib/relaton_3gpp.rb
relaton-3gpp-1.10.4 lib/relaton_3gpp.rb
relaton-3gpp-1.10.3 lib/relaton_3gpp.rb
relaton-3gpp-1.10.2 lib/relaton_3gpp.rb
relaton-3gpp-1.10.1 lib/relaton_3gpp.rb
relaton-3gpp-1.10.0 lib/relaton_3gpp.rb
relaton-3gpp-1.9.4 lib/relaton_3gpp.rb
relaton-3gpp-1.9.3 lib/relaton_3gpp.rb
relaton-3gpp-1.9.2 lib/relaton_3gpp.rb
relaton-3gpp-1.9.1 lib/relaton_3gpp.rb
relaton-3gpp-1.9.0 lib/relaton_3gpp.rb