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

Support for mongoid 7.0.0 #69

Merged
merged 9 commits into from
May 4, 2018
Merged

Support for mongoid 7.0.0 #69

merged 9 commits into from
May 4, 2018

Conversation

asgerb
Copy link
Contributor

@asgerb asgerb commented May 1, 2018

Adding support for mongoid 7.0.0 did not require any changes to the code, but a small change to the tree_spec.rb was needed.

In mongoid 7.0.0 Node.reflect_on_association no longer has the .macro. So instead of testing against .macro I tested the type of the reflection. In order to just do this on 7 I added the mongoid-compabilitity gem as a development dependency.

I also updated Gemfile and .travis.yml to make travis test against multiple mongoid versions (4..7).

@asgerb
Copy link
Contributor Author

asgerb commented May 1, 2018

I'm afraid I can't make the spec pass with mongoid 4 on travis. Locally it runs green though.

@@ -12,7 +12,8 @@ Gem::Specification.new do |s|

s.files = Dir.glob('{lib,spec}/**/*') + %w(LICENSE README.md Rakefile Gemfile .rspec)

s.add_runtime_dependency('mongoid', ['< 7.0', '>= 4.0'])
s.add_runtime_dependency('mongoid', ['<= 7.0', '>= 4.0'])
Copy link

Choose a reason for hiding this comment

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

We will want to change this to

s.add_runtime_dependency('mongoid', ['< 8', '>= 4.0'])

in order to allow minor versions of Mongoid 7

@benedikt
Copy link
Owner

benedikt commented May 4, 2018

Hi @asgerb! Thanks so much for this fantastic pull request. I can confirm that the specs run locally. Not sure what's up with the CI build there.

@benedikt benedikt merged commit 4a48481 into benedikt:master May 4, 2018
@tomasc
Copy link

tomasc commented May 4, 2018

@benedikt if we could have a new version of the gem released, it would be awesome! thank you!

@benedikt
Copy link
Owner

benedikt commented May 7, 2018

@tomasc v2.1.1 is on RubyGems now :)

@tomasc
Copy link

tomasc commented May 7, 2018

@benedikt thank you!

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