Skip to content

Add json as runtime_dependency#9671

Merged
jekyllbot merged 2 commits intojekyll:masterfrom
ashmaroli:add-dependency-json
Jan 23, 2025
Merged

Add json as runtime_dependency#9671
jekyllbot merged 2 commits intojekyll:masterfrom
ashmaroli:add-dependency-json

Conversation

@ashmaroli
Copy link
Copy Markdown
Member

@ashmaroli ashmaroli commented Sep 8, 2024

  • This is a 🙋 feature or enhancement.

Summary

json gem which is integral to Jekyll's jsonify Liquid filter and Jekyll::Drops::Drop#to_json does not seem to be bundled on some variants of Ruby 3.x based on reports from our users.

Adding a minimum requirement to v2.6.x instead of the newer v2.7.x to give users the option to downgrade if necessary.

Context

Closes #9499
Resolves #9649

@ashmaroli
Copy link
Copy Markdown
Member Author

Considering this as a "Minor Enhancement" to be shipped with v4.4.
Will backport to 4.3-stable and 3.10-stable if @mattr- and @parkr decides this needs to be backported.

@ashmaroli ashmaroli added this to the 4.4 milestone Sep 8, 2024
@parkr
Copy link
Copy Markdown
Member

parkr commented Sep 8, 2024

Which versions of Ruby unbundle the json gem? I'd probably backport it to Jekyll 3.x as that version gets adopted (Ruby 3.4+?)

@ashmaroli
Copy link
Copy Markdown
Member Author

@parkr, the exact situation here is kind of flaky.
I couldn't find any mention of unbundling json gem from ruby/ruby GH repo. But, ever since Ruby 3.0 dropped, there are users commenting here that they had to manually bundle add json to get their set up working with Jekyll:

#9649
#8523 (comment)
#8523 (comment)

However, my own Ruby installation v3.2 on Windows still has json both as bundled and as gem at my gem installation location. So, I'm not sure if the Ruby lang maintainers released a particular version with bundling json gem but then subsequent releases had json bundled.
Therefore, for the sake of our users who are on any Ruby version that we claim to support but are not knowledgable of Ruby internals, I decided to have json as a runtime dependency.

Since its a flaky issue, I don't think a backport is warranted.. but your call..

@parkr
Copy link
Copy Markdown
Member

parkr commented Jan 23, 2025

@jekyllbot: merge +minor

@jekyllbot jekyllbot merged commit d5e62d0 into jekyll:master Jan 23, 2025
jekyllbot added a commit that referenced this pull request Jan 23, 2025
@ashmaroli ashmaroli deleted the add-dependency-json branch January 24, 2025 07:03
@jekyll jekyll locked and limited conversation to collaborators Jan 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Jekyll may not have added the dependencies for the json gem correctly [Docs]: Urgent: Specify json gem version for Jekyll 4.3.2

3 participants