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 d64a3fe commit dff1af0
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 33 deletions.
8 changes: 4 additions & 4 deletions lib/relaton_jis.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 RelatonJis::VERSION + RelatonIsoBib::VERSION + RelatonBib::VERSION # grammars
end
end
62 changes: 51 additions & 11 deletions spec/vcr_cassettes/get.yml

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

Loading

0 comments on commit dff1af0

Please sign in to comment.