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 20, 2023
1 parent 02750ac commit c922fb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/relaton_iso_bib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,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, encoding: "UTF-8" }.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, encoding: "UTF-8" }.join
Digest::MD5.hexdigest RelatonIsoBib::VERSION + RelatonBib::VERSION # grammars
end
end
2 changes: 1 addition & 1 deletion lib/relaton_iso_bib/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RelatonIsoBib
VERSION = "1.16.0".freeze
VERSION = "1.16.1".freeze
end

0 comments on commit c922fb5

Please sign in to comment.