From c13ade2aaef7390e760e28eb1acd780e6a5216a3 Mon Sep 17 00:00:00 2001 From: ydah Date: Thu, 2 Jan 2025 21:20:48 +0900 Subject: [PATCH] Fix a warning for frozen string literal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just fixing following warning: ``` ❯ RUBYOPT=-w bundle exec rake test /ydah/racc/Rakefile:80: warning: literal string will be frozen in the future (run with --debug-frozen-string-literal for more information) ``` --- Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 5be8a492..a6b7df3a 100644 --- a/Rakefile +++ b/Rakefile @@ -77,7 +77,8 @@ else # MRI require "rake/extensiontask" extask = Rake::ExtensionTask.new "cparse" do |ext| - lib_dir = (ext.lib_dir << "/#{RUBY_VERSION}/#{ext.platform}/racc") + ext.lib_dir = ext.lib_dir + "/#{RUBY_VERSION}/#{ext.platform}/racc" + lib_dir = ext.lib_dir ext.ext_dir = 'ext/racc/cparse' end end