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 6ff0d15 commit 7e905d8
Show file tree
Hide file tree
Showing 7 changed files with 216 additions and 216 deletions.
8 changes: 4 additions & 4 deletions lib/relaton_oasis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,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 RelatonOasis::VERSION + RelatonBib::VERSION # grammars
end
end
4 changes: 2 additions & 2 deletions spec/vcr_cassettes/amqp-v10.yml

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

4 changes: 2 additions & 2 deletions spec/vcr_cassettes/mqtt-v50.yml

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

388 changes: 194 additions & 194 deletions spec/vcr_cassettes/oasis_bib.yml

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions spec/vcr_cassettes/odata-json-format-40-parts.yml

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

4 changes: 2 additions & 2 deletions spec/vcr_cassettes/odata-json-format-40.yml

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

4 changes: 2 additions & 2 deletions spec/vcr_cassettes/part_editors.yml

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

0 comments on commit 7e905d8

Please sign in to comment.