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

Require Percy version file specifically #108

Merged
merged 1 commit into from
Jul 23, 2019

Conversation

nikz
Copy link
Contributor

@nikz nikz commented Jul 23, 2019

If other version.rb files are in the load path, then it'll load them
instead leading to fun conflicts (error message in Rails is along the
lines of: Unable to autoload constant VERSION...)

This requires the Percy version file specifically. I believe other gems
have solved this by using a subfolder under /lib that contains the Gem
name rather than adding generic files in lib to the load path which
might cause more fun errors in future :) Happy to send a PR with that
change too if you'd like!

If other version.rb files are in the load path, then it'll load them
instead leading to fun conflicts (error message in Rails is along the
lines of: `Unable to autoload constant VERSION...`)

This requires the Percy version file specifically. I believe other gems
have solved this by using a subfolder under `/lib` that contains the Gem
name rather than adding generic files in `lib` to the load path which
might cause more fun errors in future :) Happy to send a PR with that
change too if you'd like!
Copy link
Contributor

@Robdel12 Robdel12 left a comment

Choose a reason for hiding this comment

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

🏁 🎉 Super big thanks for this PR!

@Robdel12 Robdel12 merged commit 2089aa6 into percy:master Jul 23, 2019
@djones
Copy link
Contributor

djones commented Jul 26, 2019

Thanks @nikz!

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