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

refactor: replace ansicolor gem with rainbow to avoid naming collisions #254

Conversation

Benjaminpjacobs
Copy link
Contributor

The term-ansicolor gem injects a global Term module that has a high probability of naming collision for other common class names. This PR replaces that gem with the rainbow gem to avoid this issue.

Gemfile Outdated Show resolved Hide resolved
@bethesque
Copy link
Member

I'm ok with this. What conflicts are you seeing?

@Benjaminpjacobs
Copy link
Contributor Author

@bethesque thank you for taking a look! At the moment the conflict is localized to our specific app in that the term-ansicolor gem injects a Term global namespace which conflicts with an ActiveRecord model we have of the same name(representing a school term). It may not be an extremely common conflict but Term is more generic than Rainbow so the hope here is that even more conflicts could be avoided.

If you are ok with this change I believe I have to open PRs for some of the support repos as well that also use this gem. Is it ok to tag you with all of them?

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