rails8_db 0.0.11 → 0.0.12

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: 012ef840d591c711d64039a67a50e31cd8b2881b0c6d80cb96e49543386cd05a
4
- data.tar.gz: 0e31a214b28c72cfd95489553f413580e150e554e22832e566f56e7874c4c3e2
3
+ metadata.gz: 42504354ca6f79a8f68547f242e70e6cda5f8c1ae1d0653ba392759b1290f8f5
4
+ data.tar.gz: ba9e5243188e8a3a4d11de7bb5615040265f991c605d48840f86514ab736cdc5
5
5
  SHA512:
6
- metadata.gz: 9a54aea2b105e9f31a53e47411a09af4573301b2ab5ef4e3797606a3bee816f4bb05cd4c02eff20d231bb69668da614d23fd91a24297b736ba23c152117a146b
7
- data.tar.gz: 55ed506e46f9baa3f6e662525cbb1a13652e6876d5fe25868c1ddffffef6268b55f5dd428ee14ca9150bc5577402d26154ddfd449d7ec6c9db228e931de9b719
6
+ metadata.gz: 7a9003285e9d62cb0db2e4d193a8c55941df54344ea9d10661aa07169f2b59c464ae455629a5fd3c8a84bf8d0feee268846c97307cd15edfd6515005cb779521
7
+ data.tar.gz: 9da1d7c9b60d99756a4e30e95e7ad2d8250750b25d9ba8ee314e2d4f811e82d8897cfc71951319053dd4e242dfc2ee5b9a98302fe0282bced59eaf51ed751f4b
@@ -1,5 +1,5 @@
1
1
  // JS and CSS bundles
2
- //= link_tree ../javascript
2
+ //= link rails_db/application.js
3
3
  //= link rails_db/application.css
4
4
 
5
5
  // Images
@@ -4,7 +4,7 @@
4
4
  <title><%= [yield(:title), 'Rails DB'].reject(&:blank?).join(' - ') %></title>
5
5
  <%= stylesheet_link_tag "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css" %>
6
6
  <%= stylesheet_link_tag "rails_db/application" %>
7
- <%= javascript_include_tag "rails_db/application" %>
7
+ <%= javascript_include_tag "rails_db/application", type: "module" %>
8
8
 
9
9
  <%= csrf_meta_tags %>
10
10
 
@@ -39,6 +39,11 @@ module RailsDb
39
39
  if app.config.respond_to?(:assets) && app.config.assets.respond_to?(:source_maps)
40
40
  app.config.assets.source_maps = true
41
41
  end
42
+
43
+ # Configure Propshaft to handle JavaScript modules
44
+ if app.config.respond_to?(:assets) && app.config.assets.respond_to?(:compile)
45
+ app.config.assets.compile = true
46
+ end
42
47
  end
43
48
  end
44
49
  end
@@ -1,3 +1,3 @@
1
1
  module RailsDb
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails8_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilton Silveira