From 901256a42c4cd4fb0c23a6393ba58e689d28a64e Mon Sep 17 00:00:00 2001 From: Parker Moore <237985+parkr@users.noreply.github.com> Date: Thu, 28 Dec 2023 16:34:50 -0800 Subject: [PATCH] Fix Performance/StringIdentifierArgument violation in site.rb and allow activesupport 6 for windows tests (#9512) Merge pull request 9512 --- Gemfile | 2 +- lib/jekyll/site.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 0669d31c..ce2921a1 100644 --- a/Gemfile +++ b/Gemfile @@ -15,7 +15,7 @@ end # group :test do - gem "activesupport", "~> 7.0.0" + gem "activesupport", "< 7.1.0" gem "cucumber", RUBY_VERSION >= "2.5" ? "~> 5.1.2" : "~> 4.1" gem "httpclient" gem "jekyll_test_plugin" diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb index 06031bfd..adec4cc0 100644 --- a/lib/jekyll/site.rb +++ b/lib/jekyll/site.rb @@ -49,7 +49,7 @@ module Jekyll %w(safe lsi highlighter baseurl exclude include future unpublished show_drafts limit_posts keep_files).each do |opt| - send("#{opt}=", config[opt]) + send(:"#{opt}=", config[opt]) end # keep using `gems` to avoid breaking change