Skip to content

Commit

Permalink
use gem version as trigger to flush cache relaton/relaton#115
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew2net committed Sep 19, 2023
1 parent 6877e91 commit eb60cab
Show file tree
Hide file tree
Showing 2 changed files with 783 additions and 783 deletions.
8 changes: 4 additions & 4 deletions lib/relaton_iana.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ 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
# 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 RelatonIana::VERSION + RelatonBib::VERSION # grammars
end
end

0 comments on commit eb60cab

Please sign in to comment.