-
Notifications
You must be signed in to change notification settings - Fork 3
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
More specific version for monetize #15
More specific version for monetize #15
Conversation
Hey @huoxito thanks for your help and great find. Why did you also lock the ransack version? |
hey @kennyadsl I think it's seems safer locking to patch versions but I'm not sure what the guidelines are here. Let me revert that. It would be great to understand that failing spec better too, this could not be the best solution. |
2ad2356
to
f97d973
Compare
@huoxito I think the issue comes from this PR in the |
It seems to provide inconsistent results with latest money gem v6.12
This reverts commit f97d973.
See https://www.rubydoc.info/gems/money/Money#allocate-instance_method Splits a given amount in parts without loosing pennies. The left-over pennies will be distributed round-robin amongst the parties. This means that parties listed first will likely receive more pennies than ones that are listed later.
@kennyadsl locking to monetize 1.8.0 seems the easiest way to get going for now. I created RubyMoney/monetize#118 maybe we get some help there too. |
This commit comes from @huoxito work on #15 (Thanks!) On newer versions monetize requires money 6.12 which has a rewrite of the Money#allocate method that we use in DistrubutedAmount calculator. This is the PR that is causing issues: RubyMoney/money#772 This is the issue we need to be solved before relaxing the dependency again: RubyMoney/monetize#118
This commit comes from @huoxito work on #15 (Thanks!) On newer versions monetize requires money 6.12 which has a rewrite of the Money#allocate method that we use in DistrubutedAmount calculator. This is the PR that is causing issues: RubyMoney/money#772 This is the issue we need to be solved before relaxing the dependency again: RubyMoney/monetize#118
related solidusio#2826