Closed etagwerker closed 1 year ago
I wonder if it would be better to make it a module attribute instead of a method, like @@next? = ENV["BUNDLE_GEMFILE"] == "Gemfile.next"
, so then the true/false
value is stored/memoized when the gem loads and we don't need to do a method call and the comparison every time.
@arielj Good idea. Memoizing is not so straightforward in a module, so I had to add another method.
Please check it out and let me know what you think. Thanks!
I'm merging this since it has all the feedback addressed and it's up to date with main
I also tested and it shows the correct value with and without bundle exec
Description
This PR introduces a new method to be used in your application code:
Please check it out and let me know what you think.
Thanks!
Motivation and Context
How Has This Been Tested?
Screenshots:
I will abide by the code of conduct