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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6de7fc7a9466e382286e7ca098f1604b7feed4888f75c14007e074fd5a21d476
4
- data.tar.gz: a69c7fc91b7505b16a31e36fd46a0899cf66968a2ef23993c6871152c05fd5be
3
+ metadata.gz: c873e63a81792879a36683624858b32b9a02279786b36c37a6c64fc3ccfa1b0f
4
+ data.tar.gz: 2a43d082daaf8d7e0a758f9a71637458955a3c3b8a7aac74242f3d32d8be5ebc
5
5
  SHA512:
6
- metadata.gz: 0d98a62ed219c206e3b99ce5c719d653f798e427ab08daae854bbbc807b431d9697833c3f1c5ea4b1ecbf652f3e3308481bc1ec5e7f750ea63db4aa2d91890ff
7
- data.tar.gz: 8b0f6976aee4e2358dcac4d2d9fedc8e5a028ba59b3c89e34d9052a45a3c924d2eae3b8b4dca254474f5125070a8c93a49ff8e15d17330fbaf2bf06f77e6c745
6
+ metadata.gz: 461e8ad448d14598e7ad037be842a560c771796107265a23608e265f59fcb50bb7b4558949d6a6f941fcf0f1db829c3f6e4a6a4cf4c5e1c7ce2583f10ecb5e26
7
+ data.tar.gz: 87912b60c754bc176734a71ed37b107d1928fe20f5f37f686a3e0ad5c56e5d41fb539ca47d88bda5ba32f01099f0708f762ebe2cf2b4c2fc562e2c07f751c9bd
@@ -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.assets", before: "sprockets.environment" do |app|
22
- if root.join("vendor", "assets", "stylesheets", "compass", "layout.css").exist?
23
- Compass.logger.info "Using precompiled compass/layout.css"
24
- app.config.assets.paths << root.join("vendor", "assets", "stylesheets")
25
- else
26
- Compass.logger.info "Compiling compass/layout.css from source"
27
- app.config.assets.paths << root.join("app", "assets", "stylesheets")
28
- app.config.sass.load_paths << root.join("app", "assets", "stylesheets")
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|
@@ -1,3 +1,3 @@
1
1
  module Compass
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power-compass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Palhares