rails8_db 0.0.4 → 0.0.5

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -10
  3. data/app/controllers/rails_db/dashboard_controller.rb +2 -2
  4. data/app/views/layouts/rails_db/application.html.erb +2 -1
  5. data/lib/rails_db/engine.rb +0 -4
  6. data/lib/rails_db/helpers.rb +12 -22
  7. data/lib/rails_db/version.rb +1 -1
  8. data/rails_db.gemspec +1 -8
  9. data/test/dashboard_controller_test.rb +0 -9
  10. data/test/dummy/app/{assets/javascripts → javascript}/application.js +1 -1
  11. data/test/{standalone/app/assets/javascripts → dummy/app/javascript/rails_db}/application.js +1 -1
  12. data/test/dummy/config/application.rb +1 -21
  13. data/test/dummy/config/environments/development.rb +3 -24
  14. data/test/dummy/config/environments/production.rb +3 -10
  15. data/test/dummy/config/initializers/assets.rb +1 -22
  16. data/test/dummy/log/development.log +2 -0
  17. data/test/dummy/log/test.log +24722 -0
  18. data/test/dummy/public/rails_db/application-2d030eb552dd4fcc0580b2e432d235545043db8f483eba780f46d7f0822d1db5.js +12099 -0
  19. data/test/dummy/public/rails_db/application-2d030eb552dd4fcc0580b2e432d235545043db8f483eba780f46d7f0822d1db5.js.gz +0 -0
  20. data/test/dummy/public/rails_db/application-34879bb5bc558739b40191c40ff62f8c163e12618efcdb925dab99741cab1ae9.css +625 -0
  21. data/test/dummy/public/rails_db/application-34879bb5bc558739b40191c40ff62f8c163e12618efcdb925dab99741cab1ae9.css.gz +0 -0
  22. data/test/dummy/public/rails_db/data_table-533c88156410e539d49d50f6b8fed74635f3d5f3563bcef14298a06a5791f8a8.png +0 -0
  23. data/test/dummy/public/rails_db/data_table_code-1d6698b5f637c9d33187f34aac431487bf4837d67b07d26d134e35995550f4c3.png +0 -0
  24. data/test/dummy/public/rails_db/logo-72ddb38e7d2961f79f60a852fe496dbd533ffae37f9591ddf5c5ce3eb500b9c9.png +0 -0
  25. data/test/dummy/public/rails_db/logo_mini-e46c13b71074493bb7845fa9e5838957fc7f4825088d7474700e8ecad3a12cb0.png +0 -0
  26. data/test/dummy/public/rails_db/railsdb-07be04b4cfc1bed0aa143fa7df32aef47efff9715043cefd367a0869b4938bd1.png +0 -0
  27. data/test/dummy/public/rails_db/runsql-980c6cc437f8e2d5f09f711793d67d55c7d9762d80b5e4bb4bd278d451288bb2.png +0 -0
  28. data/test/standalone/app/javascript/application.js +13 -0
  29. data/test/standalone/app/javascript/rails_db/application.js +13 -0
  30. data/test/standalone/config/environments/development.rb +3 -24
  31. data/test/standalone/config/environments/production.rb +2 -2
  32. data/test/standalone/config/initializers/assets.rb +1 -14
  33. data/test/test_helper.rb +2 -20
  34. metadata +30 -6
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree
@@ -19,35 +19,14 @@ Rails.application.configure do
19
19
  # Print deprecation notices to the Rails logger.
20
20
  config.active_support.deprecation = :log
21
21
 
22
- begin
23
- config.serve_static_files = true
24
- rescue NoMethodError
25
- end
26
-
27
- begin
28
- config.public_file_server.enabled = true
29
- rescue NoMethodError
30
- end
22
+ config.serve_static_files = true
23
+ config.public_file_server.enabled = true
31
24
 
32
25
  # Raise an error on page load if there are pending migrations.
33
26
  # config.active_record.migration_error = false
34
27
 
35
- # Debug mode disables concatenation and preprocessing of assets.
36
- # This option may cause significant delays in view rendering with a large
37
- # number of complex assets.
38
- config.assets.debug = true
39
-
40
28
  config.log_level = :error
41
29
 
42
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
43
- # yet still be able to expire them through the digest params.
44
- config.assets.digest = true
45
-
46
- # Adds additional error checking when serving assets at runtime.
47
- # Checks for improperly declared sprockets dependencies.
48
- # Raises helpful error messages.
49
- config.assets.raise_runtime_errors = true
50
-
51
30
  # Raises error for missing translations
52
31
  # config.action_view.raise_on_missing_translations = true
53
- end
32
+ end
@@ -39,7 +39,7 @@ Rails.application.configure do
39
39
  # config.assets.css_compressor = :sass
40
40
 
41
41
  # Do not fallback to assets pipeline if a precompiled asset is missed.
42
- config.assets.compile = true
42
+ config.assets.compile = false
43
43
 
44
44
  # Asset digests allow you to set far-future HTTP expiration dates on all assets,
45
45
  # yet still be able to expire them through the digest params.
@@ -87,4 +87,4 @@ Rails.application.configure do
87
87
  # Do not dump schema after migrations.
88
88
  # config.active_record.dump_schema_after_migration = false
89
89
  # config.active_record.migration_error = false
90
- end
90
+ end
@@ -1,17 +1,4 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
3
  # Version of your assets, change this if you want to expire all your assets.
4
- Rails.application.config.assets.version = '1.0'
5
-
6
- # Add additional assets to the asset load path
7
- # Rails.application.config.assets.paths << Emoji.images_path
8
-
9
- # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
- # Rails.application.config.assets.precompile += %w( search.js )
12
-
13
- gem_path = Gem.loaded_specs['rails_db'].full_gem_path
14
- puts "Rails DB gem path: #{gem_path}"
15
- full_path = gem_path + "/app/assets/images/rails_db"
16
- puts "Full asset path: #{full_path}"
17
- Rails.application.config.assets.paths << full_path
4
+ Rails.application.config.assets.version = '1.0'
data/test/test_helper.rb CHANGED
@@ -8,26 +8,8 @@ ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db
8
8
  ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
9
9
  require "rails/test_help"
10
10
 
11
- # Ensure assets are precompiled for tests
12
- Rails.application.config.assets.compile = true
13
- Rails.application.config.assets.digest = false
14
-
15
- Debuggers.print "Gemspec Files:"
16
- spec = Gem::Specification.load("#{`pwd`.chomp}/rails_db.gemspec")
17
- Debuggers.print "spec.files.inspect: #{spec.files.inspect}"
18
-
19
- Debuggers.print "Before initializers:"
20
- Debuggers.print "autoload_paths: #{Rails.application.config.autoload_paths}"
21
- Debuggers.print "eager_load_paths: #{Rails.application.config.eager_load_paths}"
22
-
23
- require Rails.root.join('config', 'initializers', 'assets.rb')
24
-
25
- Debuggers.print "After assets.rb:"
26
- Debuggers.print "autoload_paths: #{Rails.application.config.autoload_paths}"
27
- Debuggers.print "eager_load_paths: #{Rails.application.config.eager_load_paths}"
28
-
29
- Debuggers.print "USING DB: #{RailsDb::Database.adapter.adapter_name}"
30
- Debuggers.print "USING Rails: #{Gem.loaded_specs['rails'].version}"
11
+ puts "USING DB: #{RailsDb::Database.adapter.adapter_name}"
12
+ puts "USING Rails: #{Gem.loaded_specs['rails'].version}"
31
13
 
32
14
  # Filter out Minitest backtrace while allowing backtrace from other libraries
33
15
  # to be shown.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails8_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilton Silveira
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-30 00:00:00.000000000 Z
10
+ date: 2025-04-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails
@@ -534,13 +534,14 @@ files:
534
534
  - test/dummy/app/assets/fonts/glyphicons-halflings-regular.ttf
535
535
  - test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff
536
536
  - test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff2
537
- - test/dummy/app/assets/javascripts/application.js
538
537
  - test/dummy/app/assets/stylesheets/application.css
539
538
  - test/dummy/app/assets/stylesheets/bootstrap-theme.min.css
540
539
  - test/dummy/app/assets/stylesheets/bootstrap.min.css
541
540
  - test/dummy/app/controllers/application_controller.rb
542
541
  - test/dummy/app/controllers/home_controller.rb
543
542
  - test/dummy/app/helpers/application_helper.rb
543
+ - test/dummy/app/javascript/application.js
544
+ - test/dummy/app/javascript/rails_db/application.js
544
545
  - test/dummy/app/models/account.rb
545
546
  - test/dummy/app/models/comment.rb
546
547
  - test/dummy/app/models/contact.rb
@@ -636,6 +637,16 @@ files:
636
637
  - test/dummy/public/assets/trix-e17a480fcb4e30c8571f0fed42dc81de5faeef93755ca30fe9623eb3f5c709e5.js
637
638
  - test/dummy/public/assets/trix-e17a480fcb4e30c8571f0fed42dc81de5faeef93755ca30fe9623eb3f5c709e5.js.gz
638
639
  - test/dummy/public/favicon.ico
640
+ - test/dummy/public/rails_db/application-2d030eb552dd4fcc0580b2e432d235545043db8f483eba780f46d7f0822d1db5.js
641
+ - test/dummy/public/rails_db/application-2d030eb552dd4fcc0580b2e432d235545043db8f483eba780f46d7f0822d1db5.js.gz
642
+ - test/dummy/public/rails_db/application-34879bb5bc558739b40191c40ff62f8c163e12618efcdb925dab99741cab1ae9.css
643
+ - test/dummy/public/rails_db/application-34879bb5bc558739b40191c40ff62f8c163e12618efcdb925dab99741cab1ae9.css.gz
644
+ - test/dummy/public/rails_db/data_table-533c88156410e539d49d50f6b8fed74635f3d5f3563bcef14298a06a5791f8a8.png
645
+ - test/dummy/public/rails_db/data_table_code-1d6698b5f637c9d33187f34aac431487bf4837d67b07d26d134e35995550f4c3.png
646
+ - test/dummy/public/rails_db/logo-72ddb38e7d2961f79f60a852fe496dbd533ffae37f9591ddf5c5ce3eb500b9c9.png
647
+ - test/dummy/public/rails_db/logo_mini-e46c13b71074493bb7845fa9e5838957fc7f4825088d7474700e8ecad3a12cb0.png
648
+ - test/dummy/public/rails_db/railsdb-07be04b4cfc1bed0aa143fa7df32aef47efff9715043cefd367a0869b4938bd1.png
649
+ - test/dummy/public/rails_db/runsql-980c6cc437f8e2d5f09f711793d67d55c7d9762d80b5e4bb4bd278d451288bb2.png
639
650
  - test/dummy/test/fixtures/accounts.yml
640
651
  - test/dummy/test/fixtures/comments.yml
641
652
  - test/dummy/test/fixtures/contacts.yml
@@ -891,13 +902,14 @@ files:
891
902
  - test/standalone/app/assets/fonts/glyphicons-halflings-regular.ttf
892
903
  - test/standalone/app/assets/fonts/glyphicons-halflings-regular.woff
893
904
  - test/standalone/app/assets/fonts/glyphicons-halflings-regular.woff2
894
- - test/standalone/app/assets/javascripts/application.js
895
905
  - test/standalone/app/assets/stylesheets/application.css
896
906
  - test/standalone/app/assets/stylesheets/bootstrap-theme.min.css
897
907
  - test/standalone/app/assets/stylesheets/bootstrap.min.css
898
908
  - test/standalone/app/controllers/application_controller.rb
899
909
  - test/standalone/app/controllers/home_controller.rb
900
910
  - test/standalone/app/helpers/application_helper.rb
911
+ - test/standalone/app/javascript/application.js
912
+ - test/standalone/app/javascript/rails_db/application.js
901
913
  - test/standalone/app/views/home/index.html.erb
902
914
  - test/standalone/app/views/layouts/application.html.erb
903
915
  - test/standalone/bin/bundle
@@ -967,13 +979,14 @@ test_files:
967
979
  - test/dummy/app/assets/fonts/glyphicons-halflings-regular.ttf
968
980
  - test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff
969
981
  - test/dummy/app/assets/fonts/glyphicons-halflings-regular.woff2
970
- - test/dummy/app/assets/javascripts/application.js
971
982
  - test/dummy/app/assets/stylesheets/application.css
972
983
  - test/dummy/app/assets/stylesheets/bootstrap-theme.min.css
973
984
  - test/dummy/app/assets/stylesheets/bootstrap.min.css
974
985
  - test/dummy/app/controllers/application_controller.rb
975
986
  - test/dummy/app/controllers/home_controller.rb
976
987
  - test/dummy/app/helpers/application_helper.rb
988
+ - test/dummy/app/javascript/application.js
989
+ - test/dummy/app/javascript/rails_db/application.js
977
990
  - test/dummy/app/models/account.rb
978
991
  - test/dummy/app/models/comment.rb
979
992
  - test/dummy/app/models/contact.rb
@@ -1069,6 +1082,16 @@ test_files:
1069
1082
  - test/dummy/public/assets/trix-e17a480fcb4e30c8571f0fed42dc81de5faeef93755ca30fe9623eb3f5c709e5.js
1070
1083
  - test/dummy/public/assets/trix-e17a480fcb4e30c8571f0fed42dc81de5faeef93755ca30fe9623eb3f5c709e5.js.gz
1071
1084
  - test/dummy/public/favicon.ico
1085
+ - test/dummy/public/rails_db/application-2d030eb552dd4fcc0580b2e432d235545043db8f483eba780f46d7f0822d1db5.js
1086
+ - test/dummy/public/rails_db/application-2d030eb552dd4fcc0580b2e432d235545043db8f483eba780f46d7f0822d1db5.js.gz
1087
+ - test/dummy/public/rails_db/application-34879bb5bc558739b40191c40ff62f8c163e12618efcdb925dab99741cab1ae9.css
1088
+ - test/dummy/public/rails_db/application-34879bb5bc558739b40191c40ff62f8c163e12618efcdb925dab99741cab1ae9.css.gz
1089
+ - test/dummy/public/rails_db/data_table-533c88156410e539d49d50f6b8fed74635f3d5f3563bcef14298a06a5791f8a8.png
1090
+ - test/dummy/public/rails_db/data_table_code-1d6698b5f637c9d33187f34aac431487bf4837d67b07d26d134e35995550f4c3.png
1091
+ - test/dummy/public/rails_db/logo-72ddb38e7d2961f79f60a852fe496dbd533ffae37f9591ddf5c5ce3eb500b9c9.png
1092
+ - test/dummy/public/rails_db/logo_mini-e46c13b71074493bb7845fa9e5838957fc7f4825088d7474700e8ecad3a12cb0.png
1093
+ - test/dummy/public/rails_db/railsdb-07be04b4cfc1bed0aa143fa7df32aef47efff9715043cefd367a0869b4938bd1.png
1094
+ - test/dummy/public/rails_db/runsql-980c6cc437f8e2d5f09f711793d67d55c7d9762d80b5e4bb4bd278d451288bb2.png
1072
1095
  - test/dummy/test/fixtures/accounts.yml
1073
1096
  - test/dummy/test/fixtures/comments.yml
1074
1097
  - test/dummy/test/fixtures/contacts.yml
@@ -1324,13 +1347,14 @@ test_files:
1324
1347
  - test/standalone/app/assets/fonts/glyphicons-halflings-regular.ttf
1325
1348
  - test/standalone/app/assets/fonts/glyphicons-halflings-regular.woff
1326
1349
  - test/standalone/app/assets/fonts/glyphicons-halflings-regular.woff2
1327
- - test/standalone/app/assets/javascripts/application.js
1328
1350
  - test/standalone/app/assets/stylesheets/application.css
1329
1351
  - test/standalone/app/assets/stylesheets/bootstrap-theme.min.css
1330
1352
  - test/standalone/app/assets/stylesheets/bootstrap.min.css
1331
1353
  - test/standalone/app/controllers/application_controller.rb
1332
1354
  - test/standalone/app/controllers/home_controller.rb
1333
1355
  - test/standalone/app/helpers/application_helper.rb
1356
+ - test/standalone/app/javascript/application.js
1357
+ - test/standalone/app/javascript/rails_db/application.js
1334
1358
  - test/standalone/app/views/home/index.html.erb
1335
1359
  - test/standalone/app/views/layouts/application.html.erb
1336
1360
  - test/standalone/bin/bundle