Sha256: 01069bf96e5b1f8b2aced2c13249d0181cdc82fdb525b1cd2748ab6699ef0fa6

Contents?: true

Size: 459 Bytes

Versions: 15

Compression:

Stored size: 459 Bytes

Contents

require "mechanize"
require "relaton_itu/version"
require "relaton_itu/itu_bibliography"
require "digest/md5"

module RelatonItu
  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

15 entries across 15 versions & 1 rubygems

Version Path
relaton-itu-1.14.1 lib/relaton_itu.rb
relaton-itu-1.14.0 lib/relaton_itu.rb
relaton-itu-1.13.0 lib/relaton_itu.rb
relaton-itu-1.12.0 lib/relaton_itu.rb
relaton-itu-1.11.0 lib/relaton_itu.rb
relaton-itu-1.10.2 lib/relaton_itu.rb
relaton-itu-1.10.1 lib/relaton_itu.rb
relaton-itu-1.10.0 lib/relaton_itu.rb
relaton-itu-1.9.0 lib/relaton_itu.rb
relaton-itu-1.8.2 lib/relaton_itu.rb
relaton-itu-1.8.1 lib/relaton_itu.rb
relaton-itu-1.8.0 lib/relaton_itu.rb
relaton-itu-1.7.10 lib/relaton_itu.rb
relaton-itu-1.7.9 lib/relaton_itu.rb
relaton-itu-1.7.8 lib/relaton_itu.rb