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 04e26a9 commit 0c7dc2d
Show file tree
Hide file tree
Showing 8 changed files with 51,888 additions and 51,748 deletions.
8 changes: 4 additions & 4 deletions lib/relaton_ietf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ module RelatonIetf
# 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 RelatonIetf::VERSION + RelatonBib::VERSION # grammars
end
end
42 changes: 21 additions & 21 deletions spec/vcr_cassettes/bcp_47.yml

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

18 changes: 9 additions & 9 deletions spec/vcr_cassettes/fyi_2.yml

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

18 changes: 9 additions & 9 deletions spec/vcr_cassettes/i_d_abarth_cake_01.yml

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

Loading

0 comments on commit 0c7dc2d

Please sign in to comment.