rails8_db 0.0.8 → 0.0.10

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: 5ba12f5b78e497cfad9196cfe635babb47d7d654002143a3b4b50f722e715eab
4
- data.tar.gz: 4cadbb40c4a1176001991203a9a15d5c2d215f6d67c778b7e41995a0db4e1c02
3
+ metadata.gz: 56d218c6b3d8147e73d9147123782471c2ba7195bf5625bd17a8845857f4423c
4
+ data.tar.gz: 4bd66cabc27c66e99ea46f891001280d91a770277b8572f07b4deb204cc933e1
5
5
  SHA512:
6
- metadata.gz: 739bbf058dbb3482931cb48f70a9a93c183910c1d89c4d094a926b7f2a99084c73485c724f818e115909bd35ba754893aa0d590554ef8c74196d6a14328be9b1
7
- data.tar.gz: fbc2fe759fa6d4c138d30236b4ac23a8c2badb6304f3dda49a52b47d0614b428e28439b218206be926cab18168611a508edd0d452b31e645d4ddd853036b1bd7
6
+ metadata.gz: 95f3562bb26dfdd26aad78a9536d439945799a76f4c83bca5dc1bfe73bb360264f44a8f3a85b19ec2d0235128fb231b41d9ecf0706dbf4a8df0bdff4b8de692f
7
+ data.tar.gz: 5f49cf2d29c51b95053b8438a5c74d12321ec24cb31cafeed13b556a9f31c66d3deae9dec7475f90e967a97bf7099f99de31edfdcc9e3c60496a9c5613573d8b
@@ -1,3 +1,15 @@
1
+ // Import all required JavaScript files
2
+ import "../codemirror/codemirror.js"
3
+ import "../codemirror/modes/sql.js"
4
+ import "../codemirror/addons/hint/show-hint.js"
5
+ import "../codemirror/addons/hint/sql-hint.js"
6
+ import "./jquery.js"
7
+ import "./jquery.cookie.js"
8
+ import "./foundation.min.js"
9
+ import "./rails-ujs.js"
10
+ import "./search.js"
11
+ import "./show_hide_columns.js"
12
+ import "./sticky.js"
1
13
 
2
14
  $(function(){
3
15
  $(document).foundation();
@@ -4,22 +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
- <% unless ENV["RAILS_ENV"] == "test" %>
8
- <%= javascript_include_tag(
9
- "codemirror/codemirror.js",
10
- "codemirror/modes/sql.js",
11
- "codemirror/addons/hint/show-hint.js",
12
- "codemirror/addons/hint/sql-hint.js",
13
- "rails_db/jquery.js",
14
- "rails_db/jquery.cookie.js",
15
- "rails_db/rails-ujs.js",
16
- "rails_db/foundation.min.js",
17
- "rails_db/sticky.js",
18
- "rails_db/show_hide_columns.js",
19
- "rails_db/search.js"
20
- ) %>
21
- <%= javascript_include_tag "rails_db/application" %>
22
- <% end %>
7
+ <%= javascript_include_tag "rails_db/application", type: "module" %>
23
8
 
24
9
  <%= csrf_meta_tags %>
25
10
 
@@ -8,5 +8,15 @@ module RailsDb
8
8
  include RailsDb::Helpers
9
9
  end
10
10
  end
11
+
12
+ # Add the app/javascript directory to the asset paths
13
+ initializer 'rails_db.assets.precompile' do |app|
14
+ app.config.assets.paths << root.join('app', 'javascript')
15
+
16
+ # Configure Propshaft to handle JavaScript modules
17
+ if app.config.respond_to?(:assets) && app.config.assets.respond_to?(:js_compressor)
18
+ app.config.assets.js_compressor = nil if app.config.assets.js_compressor == :uglifier
19
+ end
20
+ end
11
21
  end
12
22
  end
@@ -1,3 +1,3 @@
1
1
  module RailsDb
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -0,0 +1 @@
1
+ DEPRECATION WARNING: `to_time` will always preserve the receiver timezone rather than system local time in Rails 8.1. To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`. (called from <top (required)> at /Users/iltongarcia/Projects/rails/rails_db/test/dummy/config/environment.rb:5)