Skip to content

Commit bf6d59a

Browse files
authored
require version when loading gem
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>
1 parent 258a2de commit bf6d59a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/phlex.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require "erb"
44
require "set"
55
require "zeitwerk"
6+
require "phlex/version"
67

78
module Phlex
89
Loader = Zeitwerk::Loader.for_gem.tap do |loader|

0 commit comments

Comments
 (0)