power-compass 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/compass/engine.rb +24 -9
- data/lib/compass/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: c873e63a81792879a36683624858b32b9a02279786b36c37a6c64fc3ccfa1b0f
|
|
4
|
+
data.tar.gz: 2a43d082daaf8d7e0a758f9a71637458955a3c3b8a7aac74242f3d32d8be5ebc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 461e8ad448d14598e7ad037be842a560c771796107265a23608e265f59fcb50bb7b4558949d6a6f941fcf0f1db829c3f6e4a6a4cf4c5e1c7ce2583f10ecb5e26
|
|
7
|
+
data.tar.gz: 87912b60c754bc176734a71ed37b107d1928fe20f5f37f686a3e0ad5c56e5d41fb539ca47d88bda5ba32f01099f0708f762ebe2cf2b4c2fc562e2c07f751c9bd
|
data/lib/compass/engine.rb
CHANGED
|
@@ -14,20 +14,35 @@ module Compass
|
|
|
14
14
|
Compass.config.backends << Compass::Engine.routes.url_helpers.root_path
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
config.paths["app"].skip_autoload!
|
|
18
|
+
config.paths["app"].skip_eager_load!
|
|
19
|
+
config.paths.add "app/components", autoload: true
|
|
20
|
+
config.paths.add "app/components/concerns", autoload: true
|
|
21
|
+
|
|
17
22
|
initializer "compass.logger" do
|
|
18
23
|
Compass.logger ||= Rails.logger.respond_to?(:tagged) ? Rails.logger.tagged("Compass") : Rails.logger
|
|
19
24
|
end
|
|
20
25
|
|
|
21
|
-
initializer "compass.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
initializer "compass.view_components", before: :set_autoload_paths do
|
|
27
|
+
unless defined?(ViewComponent::Base)
|
|
28
|
+
config.paths["app/components"].skip_autoload!
|
|
29
|
+
config.paths["app/components/concerns"].skip_autoload!
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
initializer "compass.assets" do |app|
|
|
34
|
+
if app.config.respond_to?(:assets)
|
|
35
|
+
if root.join("vendor", "assets", "stylesheets", "compass", "layout.css").exist?
|
|
36
|
+
Compass.logger.info "Using precompiled compass/layout.css"
|
|
37
|
+
app.config.assets.paths << root.join("vendor", "assets", "stylesheets")
|
|
38
|
+
else
|
|
39
|
+
Compass.logger.info "Compiling compass/layout.css from source"
|
|
40
|
+
app.config.assets.paths << root.join("app", "assets", "stylesheets")
|
|
41
|
+
app.config.sass.load_paths << root.join("app", "assets", "stylesheets")
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
app.config.assets.precompile += %w[compass/layout.css]
|
|
29
45
|
end
|
|
30
|
-
app.config.assets.precompile += %w[compass/layout.css]
|
|
31
46
|
end
|
|
32
47
|
|
|
33
48
|
initializer "compass.search.view_paths", after: "action_controller.set_configs" do |app|
|
data/lib/compass/version.rb
CHANGED