Skip to content

Add base64 gem as dependency for Ruby 4.0+ compatibility #173

@ahogappa

Description

@ahogappa

Problem

Liquid gem (~> 5.0) internally uses require "base64" in standardfilters.rb, but does not declare base64 as a dependency in its gemspec.

Starting with Ruby 4.0, base64 is no longer included in the default gems. This causes a LoadError when Liquid's standard filters are loaded on Ruby 4.0+.

Upstream issue: Shopify/liquid#1772 (open since Dec 2023, still unresolved as of Liquid 5.11.0)

Goal

Add base64 to taski's gemspec as an explicit dependency to work around the missing dependency in Liquid.

spec.add_dependency "base64"

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions