From 9518a5dcc6eac5d3cc84a1de93509a90e4e62c5e Mon Sep 17 00:00:00 2001 From: Yutaka Kamei Date: Thu, 22 May 2025 23:12:41 +0900 Subject: [PATCH] fix: require "English" for `$OUTPUT_RECORD_SEPARATOR` `$OUTPUT_RECORD_SEPARATOR` is defined as the alias of `$\` in `English` gem. Without this gem, the variable is not defined, and Ruby warns with the message below. ``` warning: global variable '$OUTPUT_RECORD_SEPARATOR' not initialized ``` By the way, I'm not confident the code really requires the global variable, but I kept the behavior as it is. ```ruby token = /[-!#{$OUTPUT_RECORD_SEPARATOR}%&'*+.^_`|~0-9a-zA-Z]+/ ``` --- lib/signet.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/signet.rb b/lib/signet.rb index b61b822e..a863cb19 100644 --- a/lib/signet.rb +++ b/lib/signet.rb @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +require "English" require "signet/version" module Signet # :nodoc: