Upgrade Ruby to 3.4 and fix build compatibility issues #82
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Important
Holding this PR in draft for now as Ruby should be about to release 4.0 and I'll update this PR to use that once it is out
Summary
Upgrades Ruby and dependencies to address upcoming EOL and resolve build issues with modern Ruby versions.
Changes
Ruby & Bundler
Gem Updates
Build Fixes
Sass Deprecation
sassgem withsasscMarkdown Renderer
Replaced Redcarpet with Kramdown to fix
undefined method 'link_to' for nilerror. This is a known Middleman issue with Ruby 3.x where the Redcarpet renderer context is nil.Config changes:
fenced_code_blocks,tables,strikethrough,no_intra_emphasisinput: 'GFM'(GitHub Flavored Markdown)smartypantssmart_quoteswith_toc_dataauto_ids: trueUniqueHeadCounterrendererdisable_indented_code_blocksprettifyRemoved unused files:
lib/unique_head.rb- Custom Redcarpet renderer for unique header IDs (Kramdown handles this natively)lib/multilang.rb- Redcarpet extension that wasn't being usedJavaScript Minification
const,let, arrow functions)Not Updated
//comments before compilation)