Summary
Audit for removed BigDecimal constructor API usage (BigDecimal.new). Ruby 3.x removes/changes deprecated constructors, and this commonly breaks upgrades.
Approach
Run detection:
cd /Users/Shared/openclaw/projects/workarea-modernization/repos/workarea
rg -n "\\bBigDecimal\\.new\\b" core admin storefront | head -n 200
Objective
- Confirm Workarea does not call
BigDecimal.new.
- If present, replace with a supported constructor (
BigDecimal(...) or BigDecimal("...")), preserving behavior.
Client Impact
None expected (internal numeric conversion behavior should remain correct).
Acceptance Criteria
Verification Plan
- Run targeted tests.
- Re-run detection and confirm no remaining matches.
Summary
Audit for removed BigDecimal constructor API usage (
BigDecimal.new). Ruby 3.x removes/changes deprecated constructors, and this commonly breaks upgrades.Approach
Run detection:
Objective
BigDecimal.new.BigDecimal(...)orBigDecimal("...")), preserving behavior.Client Impact
None expected (internal numeric conversion behavior should remain correct).
Acceptance Criteria
BigDecimal.newcall sites auditedVerification Plan