Skip to content

Commit 184ecda

Browse files
authored
Merge pull request #672 from onelittle/defer-digest-loading
Lazy-load digest dependency
2 parents c83c31b + a259761 commit 184ecda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spring/env.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require "pathname"
2-
require "digest/md5"
32

43
require "spring/version"
54
require "spring/configuration"
@@ -41,6 +40,7 @@ def tmp_path
4140
end
4241

4342
def application_id
43+
require "digest/md5"
4444
ENV["SPRING_APPLICATION_ID"] || Digest::MD5.hexdigest(RUBY_VERSION + project_root.to_s)
4545
end
4646

0 commit comments

Comments
 (0)