diff --git a/Gemfile.lock b/Gemfile.lock index 74590170..050faf35 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -16,35 +16,18 @@ PATH remote: . specs: mission_control-jobs (0.3.3) + actionpack (>= 7.1) + activejob (>= 7.1) + activerecord (>= 7.1) importmap-rails (>= 1.2.1) irb (~> 1.13) - rails (>= 7.1) + railties (>= 7.1) stimulus-rails turbo-rails GEM remote: https://rubygems.org/ specs: - actioncable (7.2.2) - actionpack (= 7.2.2) - activesupport (= 7.2.2) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - zeitwerk (~> 2.6) - actionmailbox (7.2.2) - actionpack (= 7.2.2) - activejob (= 7.2.2) - activerecord (= 7.2.2) - activestorage (= 7.2.2) - activesupport (= 7.2.2) - mail (>= 2.8.0) - actionmailer (7.2.2) - actionpack (= 7.2.2) - actionview (= 7.2.2) - activejob (= 7.2.2) - activesupport (= 7.2.2) - mail (>= 2.8.0) - rails-dom-testing (~> 2.2) actionpack (7.2.2) actionview (= 7.2.2) activesupport (= 7.2.2) @@ -56,13 +39,6 @@ GEM rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) useragent (~> 0.16) - actiontext (7.2.2) - actionpack (= 7.2.2) - activerecord (= 7.2.2) - activestorage (= 7.2.2) - activesupport (= 7.2.2) - globalid (>= 0.6.0) - nokogiri (>= 1.8.5) actionview (7.2.2) activesupport (= 7.2.2) builder (~> 3.1) @@ -78,12 +54,6 @@ GEM activemodel (= 7.2.2) activesupport (= 7.2.2) timeout (>= 0.4.0) - activestorage (7.2.2) - actionpack (= 7.2.2) - activejob (= 7.2.2) - activerecord (= 7.2.2) - activesupport (= 7.2.2) - marcel (~> 1.0) activesupport (7.2.2) base64 benchmark (>= 0.3) @@ -113,7 +83,6 @@ GEM concurrent-ruby (1.3.4) connection_pool (2.4.1) crass (1.0.6) - date (3.4.0) debug (1.9.1) irb (~> 1.10) reline (>= 0.3.8) @@ -141,12 +110,6 @@ GEM loofah (2.23.1) crass (~> 1.0.2) nokogiri (>= 1.12.0) - mail (2.8.1) - mini_mime (>= 0.1.1) - net-imap - net-pop - net-smtp - marcel (1.0.4) matrix (0.4.2) mini_mime (1.1.5) minitest (5.25.1) @@ -156,15 +119,6 @@ GEM multi_json (1.15.0) mustermann (3.0.0) ruby2_keywords (~> 0.0.1) - net-imap (0.5.0) - date - net-protocol - net-pop (0.1.2) - net-protocol - net-protocol (0.2.2) - timeout - net-smtp (0.5.0) - net-protocol nio4r (2.7.4) nokogiri (1.16.7-aarch64-linux) racc (~> 1.4) @@ -199,20 +153,6 @@ GEM rack (>= 1.3) rackup (2.2.0) rack (>= 3) - rails (7.2.2) - actioncable (= 7.2.2) - actionmailbox (= 7.2.2) - actionmailer (= 7.2.2) - actionpack (= 7.2.2) - actiontext (= 7.2.2) - actionview (= 7.2.2) - activejob (= 7.2.2) - activemodel (= 7.2.2) - activerecord (= 7.2.2) - activestorage (= 7.2.2) - activesupport (= 7.2.2) - bundler (>= 1.15.0) - railties (= 7.2.2) rails-dom-testing (2.2.0) activesupport (>= 5.0.0) minitest @@ -329,9 +269,6 @@ GEM unicode-display_width (2.5.0) useragent (0.16.10) websocket (1.2.10) - websocket-driver (0.7.6) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) zeitwerk (2.7.1) diff --git a/bin/rails b/bin/rails index a14f6c23..ffd9ea0b 100755 --- a/bin/rails +++ b/bin/rails @@ -10,5 +10,15 @@ APP_PATH = File.expand_path("../test/dummy/config/application", __dir__) ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"]) -require "rails/all" +require "rails" +# Pick the frameworks you want: +require "active_model/railtie" +require "active_job/railtie" +require "active_record/railtie" +# require "active_storage/engine" +require "action_controller/railtie" +# require "action_mailer/railtie" +require "action_view/railtie" +# require "action_cable/engine" +require "rails/test_unit/railtie" require "rails/engine/commands" diff --git a/mission_control-jobs.gemspec b/mission_control-jobs.gemspec index 8e0ccdf5..9ccfd32a 100644 --- a/mission_control-jobs.gemspec +++ b/mission_control-jobs.gemspec @@ -16,7 +16,11 @@ Gem::Specification.new do |spec| Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"] end - spec.add_dependency "rails", ">= 7.1" + rails_version = ">= 7.1" + spec.add_dependency "activerecord", rails_version + spec.add_dependency "activejob", rails_version + spec.add_dependency "actionpack", rails_version + spec.add_dependency "railties", rails_version spec.add_dependency "importmap-rails", ">= 1.2.1" spec.add_dependency "turbo-rails" spec.add_dependency "stimulus-rails" diff --git a/test/dummy/config/environments/development.rb b/test/dummy/config/environments/development.rb index 03da137d..9805933c 100644 --- a/test/dummy/config/environments/development.rb +++ b/test/dummy/config/environments/development.rb @@ -33,14 +33,6 @@ config.cache_store = :null_store end - # Store uploaded files on the local file system (see config/storage.yml for options). - config.active_storage.service = :local - - # Don't care if the mailer can't send. - config.action_mailer.raise_delivery_errors = false - - config.action_mailer.perform_caching = false - # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log diff --git a/test/dummy/config/environments/production.rb b/test/dummy/config/environments/production.rb index 9f12e4ae..79983995 100644 --- a/test/dummy/config/environments/production.rb +++ b/test/dummy/config/environments/production.rb @@ -37,9 +37,6 @@ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX - # Store uploaded files on the local file system (see config/storage.yml for options). - config.active_storage.service = :local - # Mount Action Cable outside main process or domain. # config.action_cable.mount_path = nil # config.action_cable.url = "wss://example.com/cable" @@ -64,12 +61,6 @@ # config.active_job.queue_name_prefix = "dummy_production" - config.action_mailer.perform_caching = false - - # Ignore bad email addresses and do not raise email delivery errors. - # Set this to true and configure the email server for immediate delivery to raise delivery errors. - # config.action_mailer.raise_delivery_errors = false - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true diff --git a/test/dummy/config/environments/test.rb b/test/dummy/config/environments/test.rb index dbb28527..9249101f 100644 --- a/test/dummy/config/environments/test.rb +++ b/test/dummy/config/environments/test.rb @@ -33,16 +33,6 @@ # Disable request forgery protection in test environment. config.action_controller.allow_forgery_protection = false - # Store uploaded files on the local file system in a temporary directory. - config.active_storage.service = :test - - config.action_mailer.perform_caching = false - - # Tell Action Mailer not to deliver emails to the real world. - # The :test delivery method accumulates sent emails in the - # ActionMailer::Base.deliveries array. - config.action_mailer.delivery_method = :test - # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr