Skip to content

Commit

Permalink
Merge pull request #9510 from ntkme/cherry-pick-fix-ruby-3.3
Browse files Browse the repository at this point in the history
Cherry pick logger fix for Ruby 3.3
  • Loading branch information
mattr- committed Dec 27, 2023
2 parents 3874e12 + b523390 commit a6b1800
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -24,8 +24,8 @@ jobs:
ruby_version: "3.0"
- label: Ruby 3.1.2
ruby_version: "3.1.2"
- label: JRuby 9.3.4.0
ruby_version: "jruby-9.3.4.0"
- label: JRuby 9.4.0.0
ruby_version: "jruby-9.4.0.0"
steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -15,6 +15,7 @@ end
#

group :test do
gem "activesupport", "~> 7.0.0"
gem "cucumber", RUBY_VERSION >= "2.5" ? "~> 5.1.2" : "~> 4.1"
gem "httpclient"
gem "jekyll_test_plugin"
Expand Down
16 changes: 9 additions & 7 deletions appveyor.yml
@@ -1,5 +1,7 @@
version: "{build}"

image: Visual Studio 2019

clone_depth: 5

branches:
Expand All @@ -13,22 +15,22 @@ build: off
environment:
BUNDLE_WITHOUT: "benchmark:development"
matrix:
- RUBY_FOLDER_VER: "26"
- RUBY_FOLDER_VER: "27"
TZINFO_VERSION: "~> 1.2"
TEST_SUITE: "test"
- RUBY_FOLDER_VER: "26"
- RUBY_FOLDER_VER: "27"
TZINFO_VERSION: "~> 2.0"
TEST_SUITE: "test"
- RUBY_FOLDER_VER: "26"
- RUBY_FOLDER_VER: "27"
TEST_SUITE: "default-site"
- RUBY_FOLDER_VER: "26"
- RUBY_FOLDER_VER: "27"
TEST_SUITE: "profile-docs"
- RUBY_FOLDER_VER: "26"
- RUBY_FOLDER_VER: "27"
TEST_SUITE: "memprof"
- RUBY_FOLDER_VER: "26"
- RUBY_FOLDER_VER: "27"
TZINFO_VERSION: "~> 1.2"
TEST_SUITE: "cucumber"
- RUBY_FOLDER_VER: "26"
- RUBY_FOLDER_VER: "27"
TZINFO_VERSION: "~> 2.0"
TEST_SUITE: "cucumber"

Expand Down
7 changes: 2 additions & 5 deletions lib/jekyll/stevenson.rb
Expand Up @@ -3,13 +3,10 @@
module Jekyll
class Stevenson < ::Logger
def initialize
@progname = nil
@level = DEBUG
@default_formatter = Formatter.new
@logdev = $stdout
@formatter = proc do |_, _, _, msg|
formatter = proc do |_, _, _, msg|
msg.to_s
end
super($stdout, :formatter => formatter)
end

def add(severity, message = nil, progname = nil)
Expand Down

0 comments on commit a6b1800

Please sign in to comment.