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 1183e12 commit fa6405c
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 47 deletions.
8 changes: 4 additions & 4 deletions lib/relaton_ccsds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class Error < StandardError; end
# Your code goes here...

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 RelatonCcsds::VERSION + RelatonBib::VERSION # grammars
end
end
2 changes: 1 addition & 1 deletion lib/relaton_ccsds/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RelatonCcsds
VERSION = "1.16.0"
VERSION = "1.16.1"
end
64 changes: 32 additions & 32 deletions spec/vcr_cassettes/ccsds_230_2-g-1.yml

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

20 changes: 10 additions & 10 deletions spec/vcr_cassettes/ccsds_650_0-m-2_french_translated.yml

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

0 comments on commit fa6405c

Please sign in to comment.