From 16791ec7795716934d3e35f7b92d4474391e4eb4 Mon Sep 17 00:00:00 2001 From: ydah Date: Thu, 2 Jan 2025 23:21:55 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 5be8a492..12159099 100644 --- a/Rakefile +++ b/Rakefile @@ -62,7 +62,7 @@ if jruby? require "rake/javaextensiontask" extask = Rake::JavaExtensionTask.new("cparse") do |ext| jruby_home = RbConfig::CONFIG['prefix'] - lib_dir = (ext.lib_dir << "/#{ext.platform}/racc") + lib_dir = ext.lib_dir += "/#{ext.platform}/racc" ext.ext_dir = 'ext/racc' # source/target jvm ext.source_version = '1.8' @@ -77,7 +77,7 @@ else # MRI require "rake/extensiontask" extask = Rake::ExtensionTask.new "cparse" do |ext| - lib_dir = (ext.lib_dir << "/#{RUBY_VERSION}/#{ext.platform}/racc") + lib_dir = ext.lib_dir += "/#{RUBY_VERSION}/#{ext.platform}/racc" ext.ext_dir = 'ext/racc/cparse' end end