Skip to content

Require version when loading gem #897

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

Closed
wants to merge 1 commit into from

Conversation

fusion2004
Copy link

Apps and other gems (like lookbook) want to be able to easily tell whether they are working with Phlex v1 or v2, and lookbook is now trying to check Phlex::VERSION for that, which is not loaded by default.

Would it make sense to always load that? It seems like other major gems I checked, like sidekiq, do.

Apps and other gems (like lookbook) want to be able to easily tell whether they are working with Phlex v1 or v2, and lookbook is now trying to check `Phlex::VERSION` for that, which is not loaded by default.

Signed-off-by: Mark Oleson <fusion2004@gmail.com>
@stephannv
Copy link
Contributor

Which version are you using? It seems that after 2.1 the version is always loaded, If you are < 2.1, you need to require "phlex/version".
Screenshot 2025-04-21 at 11 39 10

@fusion2004
Copy link
Author

Ah, you're correct, I'm on 2.0 until our app finishes upgrade from rails 7.1 to 7.2. Okay, thanks!

@fusion2004 fusion2004 closed this Apr 21, 2025
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.

2 participants