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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 217041fa2973beac3d0ba93d8e1dcfa0c3b0d54cb600d2ed2b3b68ccf9a7fea3
4
- data.tar.gz: 7620c40cd75ce89812a7d7656333241cb0732325e11f3e9765e36a8e33d12b8e
3
+ metadata.gz: 20e8d21cf297360add2959ca07413be267c34fbbe4003b3dc0bc46195d1106bc
4
+ data.tar.gz: ff1eda9f35801ea82e8960bb74708d562164db929024f04aed71c23635c3f48f
5
5
  SHA512:
6
- metadata.gz: 4f26b3209d3acd14adaa35143fc268ee6b3766907b31a03eb1a7511f3f0ac05884887bf8c13c1367368c4ae36f42e3f114400426fee5956346f5f94e479aca6b
7
- data.tar.gz: 962ed42d5318b3e07fbd781d1aac1ce324a6aaee38f6026150114ed3493b82e53e867a0cfd595ba3811d5c01511b8e29f5f9f3be100e9cc9d072eae1f2dc5f70
6
+ metadata.gz: bc43c8122a3f0da8d6dfa64c2c5c4a49367ba794940dfc75e18eb07422c864a3eb96944a01e2353d41665ccef34a6f399fd4ecb5f8ed12e780fa076677a797a2
7
+ data.tar.gz: 208e684282df4266f439bc68cb0dda9d7d585248b03dc9fbdb09f7ac677c5e261456e13bbcf3610e7f214eb5556eb844f392f77adcc4ec60d71f477ab22111e0
@@ -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
- root.join("app/assets/builds")
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.split("app/assets/stylesheets/").last
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
@@ -1,3 +1,3 @@
1
1
  module WildayUi
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wilday_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - davidwinalda