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

Package as gem #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

OzzieOrca
Copy link

I'm not sure if you are open to PRs but I've packaged this as a gem. I haven't published it yet because I would like someone to review it as I haven't packaged a gem before.

It also seems like the has_and_belongs_to_many relation merging is broken. I could have broken it with my updates and refactorings or by using it with updated dependencies but I didn't touch the merge module other than making style changes rubocop suggested. It seems to be looking for foreign keys directly on the other objects and not on the merge table. This is causing 2 of the tests (relating to the has_and_belongs_to_many relation) to fail.

I added a condition that prints a warning that the current version doesn't support has_and_belongs_to_many relations. If someone wants to figure out what is wrong or fix it, that should be removed before testing.

- Print error when merge encounters a has_and_belongs_to_many relation. Seems to be broken for that type of relation
- Update rspec and activerecord
- Make code conform more closely to ruby style guide
- Update Readme
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.

1 participant