From c922fb586b5137476bb85a0369c64c18223d15eb Mon Sep 17 00:00:00 2001 From: Andrei Kislichenko Date: Tue, 19 Sep 2023 17:14:51 -0400 Subject: [PATCH] use gem version as trigger to flush cache relaton/relaton#115 --- lib/relaton_iso_bib.rb | 8 ++++---- lib/relaton_iso_bib/version.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/relaton_iso_bib.rb b/lib/relaton_iso_bib.rb index 6c3564c..a5f0771 100644 --- a/lib/relaton_iso_bib.rb +++ b/lib/relaton_iso_bib.rb @@ -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 diff --git a/lib/relaton_iso_bib/version.rb b/lib/relaton_iso_bib/version.rb index 76b6ff6..604b0d3 100644 --- a/lib/relaton_iso_bib/version.rb +++ b/lib/relaton_iso_bib/version.rb @@ -1,3 +1,3 @@ module RelatonIsoBib - VERSION = "1.16.0".freeze + VERSION = "1.16.1".freeze end