lookbook 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lookbook/engine.rb +9 -5
- data/lib/lookbook/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07ac7a807c773f61e8cdd20c1e15555942c353b4df72ad5c3ddc508ac6fcb2b3
|
4
|
+
data.tar.gz: 0f79a3eed3f148cef2443b881a3ec1adab876b1f916d665cf83e0aa6783505a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8937407314598d4a04510a5e2b1d905b42664a183480de571410b7655643a4e13806f11300e9cc84679c161404d4054063712f8cbd718463c627dfe8599dca0b
|
7
|
+
data.tar.gz: 20a00588effcfa3ea55c10d1d8c45fcd1e496dc6632d6d8ab5274fe35a6d74e035a0024c851a936384c68379635a91a138139ae98e79cf63df6cd28650956073
|
data/lib/lookbook/engine.rb
CHANGED
@@ -84,12 +84,16 @@ module Lookbook
|
|
84
84
|
@preview_controller = Lookbook.config.preview_controller.constantize
|
85
85
|
@preview_controller.include(Lookbook::PreviewController)
|
86
86
|
|
87
|
-
if Rails.
|
88
|
-
# Rails.application.server is only available for Rails
|
89
|
-
Rails.application.server
|
87
|
+
if Gem::Version.new(Rails.version) >= Gem::Version.new("6.1.3.1")
|
88
|
+
# Rails.application.server is only available for newer Rails versions
|
89
|
+
Rails.application.server do
|
90
|
+
init_listeners
|
91
|
+
end
|
90
92
|
else
|
91
|
-
#
|
92
|
-
|
93
|
+
# Fallback for older Rails versions - don't start listeners if running in a rake task.
|
94
|
+
unless File.basename($0) == "rake" || Rake.application.top_level_tasks.any?
|
95
|
+
init_listeners
|
96
|
+
end
|
93
97
|
end
|
94
98
|
|
95
99
|
if config.lookbook.runtime_parsing
|
data/lib/lookbook/version.rb
CHANGED