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 9acd09d commit 43fb659
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 64 deletions.
8 changes: 4 additions & 4 deletions lib/relaton_un.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,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 RelatonUn::VERSION + RelatonBib::VERSION # grammars
end
end
60 changes: 30 additions & 30 deletions spec/vcr_cassettes/trade_cefact_2004_32.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 43fb659

Please sign in to comment.