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

Fix Solidus v2.6 and prepare a 2.6.1 release #2843

Merged
merged 6 commits into from
Sep 13, 2018

Conversation

kennyadsl
Copy link
Member

It basically applies the fixes we've done on master (#2826 and #2836), which should be good for Solidus 2.6 as well.

Thanks @huoxito

kennyadsl and others added 3 commits September 13, 2018 00:06
Ransack 2.0.1 is the only version compatible with rails 5.2.1.

Rails < 5.0 is no more supported since it needs to use ransack 1.8.
This is not an issue since we are not supporting rails < 5.1 anyway.
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
@kennyadsl kennyadsl self-assigned this Sep 12, 2018
@@ -35,9 +35,9 @@ Gem::Specification.new do |s|
s.add_dependency 'discard', '~> 1.0'
s.add_dependency 'friendly_id', '~> 5.0'
s.add_dependency 'kaminari-activerecord', '~> 1.1'
s.add_dependency 'monetize', '~> 1.1'
s.add_dependency 'monetize', '~> 1.8.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think this could be ~> 1.8 since it works with both 1.8 and 1.9 versions

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right, fixed!

It works with 1.8 and 1.9 at the moment
I'm not sure why but previously the association was returning an
instance of ActiveRecord::Associations::CollectionProxy that was
considered not changed while reloading. Despite that `shipments`
call is still returning the same object, they now have a different
`object_id` and this could be the root of the problem.
@kennyadsl kennyadsl merged commit 3f5e367 into solidusio:v2.6 Sep 13, 2018
@kennyadsl kennyadsl deleted the nebulab/2.6.1 branch September 13, 2018 13:55
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

Successfully merging this pull request may close these issues.

3 participants