wilday_ui 0.5.2 → 0.5.3
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/wilday_ui/engine.rb +6 -5
- data/lib/wilday_ui/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: 20e8d21cf297360add2959ca07413be267c34fbbe4003b3dc0bc46195d1106bc
|
4
|
+
data.tar.gz: ff1eda9f35801ea82e8960bb74708d562164db929024f04aed71c23635c3f48f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc43c8122a3f0da8d6dfa64c2c5c4a49367ba794940dfc75e18eb07422c864a3eb96944a01e2353d41665ccef34a6f399fd4ecb5f8ed12e780fa076677a797a2
|
7
|
+
data.tar.gz: 208e684282df4266f439bc68cb0dda9d7d585248b03dc9fbdb09f7ac677c5e261456e13bbcf3610e7f214eb5556eb844f392f77adcc4ec60d71f477ab22111e0
|
data/lib/wilday_ui/engine.rb
CHANGED
@@ -36,10 +36,11 @@ module WildayUi
|
|
36
36
|
initializer "wilday_ui.assets" do |app|
|
37
37
|
# Add engine asset paths
|
38
38
|
engine_asset_paths = [
|
39
|
+
root.join("app/assets/builds"),
|
40
|
+
root.join("app/assets/config"),
|
39
41
|
root.join("app/assets/stylesheets"),
|
40
|
-
root.join("app/javascript")
|
41
|
-
|
42
|
-
]
|
42
|
+
root.join("app/javascript")
|
43
|
+
].select(&:exist?)
|
43
44
|
|
44
45
|
# Add dummy app assets path in development
|
45
46
|
if Rails.env.development?
|
@@ -62,8 +63,8 @@ module WildayUi
|
|
62
63
|
|
63
64
|
# Automatically precompile all CSS files in wilday_ui directory
|
64
65
|
css_files = Dir[root.join("app/assets/stylesheets/wilday_ui/**/*.css")].map do |file|
|
65
|
-
file.
|
66
|
-
end
|
66
|
+
Pathname.new(file).relative_path_from(root.join("app/assets/stylesheets")).to_s
|
67
|
+
end.select { |f| f.start_with?("wilday_ui/") } # Safety check
|
67
68
|
|
68
69
|
# Precompile only the bundled JavaScript file
|
69
70
|
app.config.assets.precompile += css_files
|
data/lib/wilday_ui/version.rb
CHANGED