Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigDecimal error on newer ruby #12

Open
taggart opened this issue Apr 8, 2022 · 1 comment
Open

BigDecimal error on newer ruby #12

taggart opened this issue Apr 8, 2022 · 1 comment

Comments

@taggart
Copy link

taggart commented Apr 8, 2022

When doing amber rebuild (amber 0.3.12) on my Debian bullseye system (ruby2.7) I am getting the following error:

ERROR: undefined method 'new' for BigDecimal:Class

I think that method was deprecated
https://github.com/ruby/ruby/blob/v2_6_0/NEWS#label-Stdlib+updates+-28outstanding+ones+only-29

https://github.com/ruby/bigdecimal#which-version-should-you-select

It is being used in lib/amber/page_array.rb. The error seems to be triggered by this haml

= child_summaries :include_toc => true, :order_by => [:name, {:direction => :desc, :numeric => true}]

and rather than the summaries the output is "true". This can currently be seen here.

@taggart
Copy link
Author

taggart commented Aug 18, 2022

This is still breaking the newsletter archives and would be good to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant