From 2563de1092a3fb4314a3462a80426c4225ce891d Mon Sep 17 00:00:00 2001 From: Donavin Date: Fri, 22 Jul 2022 11:56:10 -0400 Subject: [PATCH 1/2] BugzID: 7350 - IO.read -> File.read --- lib/translation_support.rb | 3 ++- lib/trusty_cms.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/translation_support.rb b/lib/translation_support.rb index c50a8cd35..7de080c5c 100644 --- a/lib/translation_support.rb +++ b/lib/translation_support.rb @@ -8,7 +8,8 @@ def get_translation_keys(language_root, suffix = nil) # Retrieve comments, translation data in hash form def read_file(filename, basename) - (comments, data) = IO.read(filename).split(/\n#{basename}:\s*\n/) # Add error checking for failed file read? + binding.pry + (comments, data) = File.read(filename).split(/\n#{basename}:\s*\n/) # Add error checking for failed file read? [comments, create_hash(data, basename)] end diff --git a/lib/trusty_cms.rb b/lib/trusty_cms.rb index 26605b5b0..efbb6efc6 100644 --- a/lib/trusty_cms.rb +++ b/lib/trusty_cms.rb @@ -2,6 +2,6 @@ unless defined? TrustyCms::VERSION module TrustyCms - VERSION = '5.3.4'.freeze + VERSION = '5.3.5'.freeze end end From 138f95e090a218ca129dd67b50b3603f828a7b7d Mon Sep 17 00:00:00 2001 From: Donavin Date: Fri, 22 Jul 2022 12:15:40 -0400 Subject: [PATCH 2/2] remove entry point --- lib/translation_support.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/translation_support.rb b/lib/translation_support.rb index 7de080c5c..5be9dc313 100644 --- a/lib/translation_support.rb +++ b/lib/translation_support.rb @@ -8,7 +8,6 @@ def get_translation_keys(language_root, suffix = nil) # Retrieve comments, translation data in hash form def read_file(filename, basename) - binding.pry (comments, data) = File.read(filename).split(/\n#{basename}:\s*\n/) # Add error checking for failed file read? [comments, create_hash(data, basename)] end