barby icon indicating copy to clipboard operation
barby copied to clipboard

Frozen literal string warnings

Open morgoth opened this issue 1 year ago • 3 comments

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/

morgoth avatar Dec 27 '24 09:12 morgoth

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)

javierjulio avatar Jan 17 '25 20:01 javierjulio

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

crevete avatar Mar 04 '25 15:03 crevete

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.

r-reload avatar May 22 '25 18:05 r-reload