Skip to content

Frozen literal string warnings #122

Description

@morgoth

When running on Ruby 3.4 and having Ruby warnings enabled, the following warning is emited (among few others)

/home/runner/work/trmz/trmz/vendor/bundle/ruby/3.4.0/gems/barby-0.7.0/lib/barby/barcode/qr_code.rb:56: warning: literal string will be frozen in the future (run with --debug-frozen-string-literal for more information)

https://www.ruby-lang.org/en/news/2024/12/25/ruby-3-4-0-released/

Activity

  1. javierjulio commented on Jan 17, 2025

    @javierjulio

    I'm noticing the same warning in other files too, for example, code_25_interleaved.rb:

    /Users/j.julio/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/barby-0.6.9/lib/barby/barcode/code_25_interleaved.rb:51: warning: literal string will be frozen in the future (run with --debug-frozen-string-literal for more information)

  2. crevete commented on Mar 4, 2025

    @crevete

    @toretore Hi, is it possible to cut a release ASAP to fix these warnings with Ruby 3.4?

  3. r-reload commented on May 22, 2025

    @r-reload

    I created PR #126 with the goal to fix this issue throughout the code. @toretore I am willing to help fix this as we use Barby in our production code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions