bridge_cache 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/db/migrate/20240719203015_add_continuing_education_credits_to_course_templates.rb +5 -0
  3. data/lib/bridge_cache/version.rb +1 -1
  4. data/test/dummy/Gemfile +14 -0
  5. data/test/dummy/MIT-LICENSE +20 -0
  6. data/test/dummy/README.md +28 -0
  7. data/test/dummy/Rakefile +8 -0
  8. data/test/dummy/app/assets/config/dummy_manifest.js +1 -0
  9. data/test/dummy/app/assets/stylesheets/dummy/application.css +15 -0
  10. data/test/dummy/app/controllers/dummy/application_controller.rb +4 -0
  11. data/test/dummy/app/helpers/dummy/application_helper.rb +4 -0
  12. data/test/dummy/app/jobs/dummy/application_job.rb +4 -0
  13. data/test/dummy/app/mailers/dummy/application_mailer.rb +6 -0
  14. data/test/dummy/app/models/dummy/application_record.rb +5 -0
  15. data/test/dummy/app/views/layouts/dummy/application.html.erb +15 -0
  16. data/test/dummy/bin/rails +14 -0
  17. data/test/dummy/config/routes.rb +2 -0
  18. data/test/dummy/dummy.gemspec +26 -0
  19. data/test/dummy/lib/dummy/engine.rb +5 -0
  20. data/test/dummy/lib/dummy/version.rb +3 -0
  21. data/test/dummy/lib/dummy.rb +6 -0
  22. data/test/dummy/lib/tasks/dummy_tasks.rake +4 -0
  23. data/test/dummy/test/dummy/Rakefile +6 -0
  24. data/test/dummy/test/dummy/app/assets/config/manifest.js +3 -0
  25. data/test/dummy/test/dummy/app/assets/stylesheets/application.css +15 -0
  26. data/test/dummy/test/dummy/app/channels/application_cable/channel.rb +4 -0
  27. data/test/dummy/test/dummy/app/channels/application_cable/connection.rb +4 -0
  28. data/test/dummy/test/dummy/app/controllers/application_controller.rb +2 -0
  29. data/test/dummy/test/dummy/app/helpers/application_helper.rb +2 -0
  30. data/test/dummy/test/dummy/app/jobs/application_job.rb +7 -0
  31. data/test/dummy/test/dummy/app/mailers/application_mailer.rb +4 -0
  32. data/test/dummy/test/dummy/app/models/application_record.rb +3 -0
  33. data/test/dummy/test/dummy/app/views/layouts/application.html.erb +15 -0
  34. data/test/dummy/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  35. data/test/dummy/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  36. data/test/dummy/test/dummy/bin/rails +4 -0
  37. data/test/dummy/test/dummy/bin/rake +4 -0
  38. data/test/dummy/test/dummy/bin/setup +33 -0
  39. data/test/dummy/test/dummy/config/application.rb +29 -0
  40. data/test/dummy/test/dummy/config/boot.rb +5 -0
  41. data/test/dummy/test/dummy/config/cable.yml +10 -0
  42. data/test/dummy/test/dummy/config/database.yml +84 -0
  43. data/test/dummy/test/dummy/config/environment.rb +5 -0
  44. data/test/dummy/test/dummy/config/environments/development.rb +76 -0
  45. data/test/dummy/test/dummy/config/environments/production.rb +97 -0
  46. data/test/dummy/test/dummy/config/environments/test.rb +64 -0
  47. data/test/dummy/test/dummy/config/initializers/assets.rb +11 -0
  48. data/test/dummy/test/dummy/config/initializers/content_security_policy.rb +25 -0
  49. data/test/dummy/test/dummy/config/initializers/filter_parameter_logging.rb +8 -0
  50. data/test/dummy/test/dummy/config/initializers/inflections.rb +16 -0
  51. data/test/dummy/test/dummy/config/initializers/permissions_policy.rb +13 -0
  52. data/test/dummy/test/dummy/config/locales/en.yml +31 -0
  53. data/test/dummy/test/dummy/config/puma.rb +35 -0
  54. data/test/dummy/test/dummy/config/routes.rb +3 -0
  55. data/test/dummy/test/dummy/config/storage.yml +34 -0
  56. data/test/dummy/test/dummy/config.ru +6 -0
  57. data/test/dummy/test/dummy/log/test.log +0 -0
  58. data/test/dummy/test/dummy/public/404.html +67 -0
  59. data/test/dummy/test/dummy/public/422.html +67 -0
  60. data/test/dummy/test/dummy/public/500.html +66 -0
  61. data/test/dummy/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  62. data/test/dummy/test/dummy/public/apple-touch-icon.png +0 -0
  63. data/test/dummy/test/dummy/public/favicon.ico +0 -0
  64. data/test/dummy/test/dummy/tmp/local_secret.txt +1 -0
  65. data/test/dummy/test/dummy_test.rb +7 -0
  66. data/test/dummy/test/integration/navigation_test.rb +7 -0
  67. data/test/dummy/test/test_helper.rb +15 -0
  68. metadata +136 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd8df878672c231e42875645323d018d7d1f816f21726c9164b85be891f73509
4
- data.tar.gz: 1f6288099ad3c987c05cd52dc8a651fc2aec06e33e3fb1bc3f9be74cd640fd02
3
+ metadata.gz: b04ee63b8da4832dd8249fcc9d4479280130dcab34bd81a30e0cadf14867fd68
4
+ data.tar.gz: fe909599881cd7e83f57c312f03ec93ca96305952475cee3829d29fd162c4146
5
5
  SHA512:
6
- metadata.gz: d917f6777313d71ae613758a01108456d6c6424f66a15f3c9bcc7357fc4e35372eb828327be63850a4c3dac1b37372c3f7181cc6cda9fb7701fef8c0e22f9dd1
7
- data.tar.gz: 90308e816feea7829863fba01a6f79ac6e981ea8b3f16effc33381798e1cd042090184fc7d63e8aa7d16df2ee011dcf4bf80fc66c7dcf5829b7e74bb7c3195e2
6
+ metadata.gz: 17e847f3915b860d2ebea3c85d19548cdec29f6480ab93cd92811e01090a81d5a7b3c718e57f88be43e1231a3a7522379b69845d9783abdcce74aedb1b19872b
7
+ data.tar.gz: 7c3b0ea2532adc37a9bd66112e8456bc48fe574dc1d429fb33bc96d5ef6f6b1fda3b4b72ce4533be316e447996f395f9ed0b7f799944135439ec9b8183ab19b0
@@ -0,0 +1,5 @@
1
+ class AddContinuingEducationCreditsToCourseTemplates < ActiveRecord::Migration[7.1]
2
+ def change
3
+ add_column :course_templates, :continuing_education_credits, :integer
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module BridgeCache
2
- VERSION = '0.4.4'.freeze
2
+ VERSION = '0.4.5'.freeze
3
3
  end
@@ -0,0 +1,14 @@
1
+ source "https://rubygems.org"
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
+
4
+ # Specify your gem's dependencies in dummy.gemspec.
5
+ gemspec
6
+
7
+ gem "puma"
8
+
9
+ gem "pg"
10
+
11
+ gem "sprockets-rails"
12
+
13
+ # Start debugger with binding.b [https://github.com/ruby/debug]
14
+ # gem "debug", ">= 1.0.0"
@@ -0,0 +1,20 @@
1
+ Copyright Scott Young
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,28 @@
1
+ # Dummy
2
+ Short description and motivation.
3
+
4
+ ## Usage
5
+ How to use my plugin.
6
+
7
+ ## Installation
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem "dummy"
12
+ ```
13
+
14
+ And then execute:
15
+ ```bash
16
+ $ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+ ```bash
21
+ $ gem install dummy
22
+ ```
23
+
24
+ ## Contributing
25
+ Contribution directions go here.
26
+
27
+ ## License
28
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,8 @@
1
+ require "bundler/setup"
2
+
3
+ APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
4
+ load "rails/tasks/engine.rake"
5
+
6
+ load "rails/tasks/statistics.rake"
7
+
8
+ require "bundler/gem_tasks"
@@ -0,0 +1 @@
1
+ //= link_directory ../stylesheets/dummy .css
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,4 @@
1
+ module Dummy
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Dummy
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Dummy
2
+ class ApplicationJob < ActiveJob::Base
3
+ end
4
+ end
@@ -0,0 +1,6 @@
1
+ module Dummy
2
+ class ApplicationMailer < ActionMailer::Base
3
+ default from: "from@example.com"
4
+ layout "mailer"
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module Dummy
2
+ class ApplicationRecord < ActiveRecord::Base
3
+ self.abstract_class = true
4
+ end
5
+ end
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+
8
+ <%= stylesheet_link_tag "dummy/application", media: "all" %>
9
+ </head>
10
+ <body>
11
+
12
+ <%= yield %>
13
+
14
+ </body>
15
+ </html>
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails gems
3
+ # installed from the root of your application.
4
+
5
+ ENGINE_ROOT = File.expand_path("..", __dir__)
6
+ ENGINE_PATH = File.expand_path("../lib/dummy/engine", __dir__)
7
+ APP_PATH = File.expand_path("../test/dummy/config/application", __dir__)
8
+
9
+ # Set up gems listed in the Gemfile.
10
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
11
+ require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
12
+
13
+ require "rails/all"
14
+ require "rails/engine/commands"
@@ -0,0 +1,2 @@
1
+ Dummy::Engine.routes.draw do
2
+ end
@@ -0,0 +1,26 @@
1
+ require_relative "lib/dummy/version"
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "dummy"
5
+ spec.version = Dummy::VERSION
6
+ spec.authors = ["Scott Young"]
7
+ spec.email = ["scott.young@getbridge.com"]
8
+ spec.homepage = "TODO"
9
+ spec.summary = "TODO: Summary of Dummy."
10
+ spec.description = "TODO: Description of Dummy."
11
+ spec.license = "MIT"
12
+
13
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the "allowed_push_host"
14
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
15
+ spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
19
+ spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20
+
21
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
+ Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
23
+ end
24
+
25
+ spec.add_dependency "rails", ">= 7.1.3"
26
+ end
@@ -0,0 +1,5 @@
1
+ module Dummy
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace Dummy
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module Dummy
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,6 @@
1
+ require "dummy/version"
2
+ require "dummy/engine"
3
+
4
+ module Dummy
5
+ # Your code goes here...
6
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :dummy do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require_relative "config/application"
5
+
6
+ Rails.application.load_tasks
@@ -0,0 +1,3 @@
1
+ //= link_tree ../images
2
+ //= link_directory ../stylesheets .css
3
+ //= link dummy_manifest.js
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,4 @@
1
+ module ApplicationCable
2
+ class Channel < ActionCable::Channel::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module ApplicationCable
2
+ class Connection < ActionCable::Connection::Base
3
+ end
4
+ end
@@ -0,0 +1,2 @@
1
+ class ApplicationController < ActionController::Base
2
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,7 @@
1
+ class ApplicationJob < ActiveJob::Base
2
+ # Automatically retry jobs that encountered a deadlock
3
+ # retry_on ActiveRecord::Deadlocked
4
+
5
+ # Most jobs are safe to ignore if the underlying records are no longer available
6
+ # discard_on ActiveJob::DeserializationError
7
+ end
@@ -0,0 +1,4 @@
1
+ class ApplicationMailer < ActionMailer::Base
2
+ default from: "from@example.com"
3
+ layout "mailer"
4
+ end
@@ -0,0 +1,3 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ primary_abstract_class
3
+ end
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <%= csrf_meta_tags %>
7
+ <%= csp_meta_tag %>
8
+
9
+ <%= stylesheet_link_tag "application" %>
10
+ </head>
11
+
12
+ <body>
13
+ <%= yield %>
14
+ </body>
15
+ </html>
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
+ <style>
6
+ /* Email styles need to be inline */
7
+ </style>
8
+ </head>
9
+
10
+ <body>
11
+ <%= yield %>
12
+ </body>
13
+ </html>
@@ -0,0 +1 @@
1
+ <%= yield %>
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path("../config/application", __dir__)
3
+ require_relative "../config/boot"
4
+ require "rails/commands"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative "../config/boot"
3
+ require "rake"
4
+ Rake.application.run
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env ruby
2
+ require "fileutils"
3
+
4
+ # path to your application root.
5
+ APP_ROOT = File.expand_path("..", __dir__)
6
+
7
+ def system!(*args)
8
+ system(*args, exception: true)
9
+ end
10
+
11
+ FileUtils.chdir APP_ROOT do
12
+ # This script is a way to set up or update your development environment automatically.
13
+ # This script is idempotent, so that you can run it at any time and get an expectable outcome.
14
+ # Add necessary setup steps to this file.
15
+
16
+ puts "== Installing dependencies =="
17
+ system! "gem install bundler --conservative"
18
+ system("bundle check") || system!("bundle install")
19
+
20
+ # puts "\n== Copying sample files =="
21
+ # unless File.exist?("config/database.yml")
22
+ # FileUtils.cp "config/database.yml.sample", "config/database.yml"
23
+ # end
24
+
25
+ puts "\n== Preparing database =="
26
+ system! "bin/rails db:prepare"
27
+
28
+ puts "\n== Removing old logs and tempfiles =="
29
+ system! "bin/rails log:clear tmp:clear"
30
+
31
+ puts "\n== Restarting application server =="
32
+ system! "bin/rails restart"
33
+ end
@@ -0,0 +1,29 @@
1
+ require_relative "boot"
2
+
3
+ require "rails/all"
4
+
5
+ # Require the gems listed in Gemfile, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(*Rails.groups)
8
+
9
+ module Dummy
10
+ class Application < Rails::Application
11
+ config.load_defaults Rails::VERSION::STRING.to_f
12
+
13
+ # For compatibility with applications that use this config
14
+ config.action_controller.include_all_helpers = false
15
+
16
+ # Please, add to the `ignore` list any other `lib` subdirectories that do
17
+ # not contain `.rb` files, or that should not be reloaded or eager loaded.
18
+ # Common ones are `templates`, `generators`, or `middleware`, for example.
19
+ config.autoload_lib(ignore: %w(assets tasks))
20
+
21
+ # Configuration for the application, engines, and railties goes here.
22
+ #
23
+ # These settings can be overridden in specific environments using the files
24
+ # in config/environments, which are processed later.
25
+ #
26
+ # config.time_zone = "Central Time (US & Canada)"
27
+ # config.eager_load_paths << Rails.root.join("extras")
28
+ end
29
+ end
@@ -0,0 +1,5 @@
1
+ # Set up gems listed in the Gemfile.
2
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__)
3
+
4
+ require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
5
+ $LOAD_PATH.unshift File.expand_path("../../../lib", __dir__)
@@ -0,0 +1,10 @@
1
+ development:
2
+ adapter: async
3
+
4
+ test:
5
+ adapter: test
6
+
7
+ production:
8
+ adapter: redis
9
+ url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10
+ channel_prefix: dummy_production
@@ -0,0 +1,84 @@
1
+ # PostgreSQL. Versions 9.3 and up are supported.
2
+ #
3
+ # Install the pg driver:
4
+ # gem install pg
5
+ # On macOS with Homebrew:
6
+ # gem install pg -- --with-pg-config=/usr/local/bin/pg_config
7
+ # On Windows:
8
+ # gem install pg
9
+ # Choose the win32 build.
10
+ # Install PostgreSQL and put its /bin directory on your path.
11
+ #
12
+ # Configure Using Gemfile
13
+ # gem "pg"
14
+ #
15
+ default: &default
16
+ adapter: postgresql
17
+ encoding: unicode
18
+ # For details on connection pooling, see Rails configuration guide
19
+ # https://guides.rubyonrails.org/configuring.html#database-pooling
20
+ pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
21
+
22
+ development:
23
+ <<: *default
24
+ database: dummy_development
25
+
26
+ # The specified database role being used to connect to PostgreSQL.
27
+ # To create additional roles in PostgreSQL see `$ createuser --help`.
28
+ # When left blank, PostgreSQL will use the default role. This is
29
+ # the same name as the operating system user running Rails.
30
+ #username: dummy
31
+
32
+ # The password associated with the PostgreSQL role (username).
33
+ #password:
34
+
35
+ # Connect on a TCP socket. Omitted by default since the client uses a
36
+ # domain socket that doesn't need configuration. Windows does not have
37
+ # domain sockets, so uncomment these lines.
38
+ #host: localhost
39
+
40
+ # The TCP port the server listens on. Defaults to 5432.
41
+ # If your server runs on a different port number, change accordingly.
42
+ #port: 5432
43
+
44
+ # Schema search path. The server defaults to $user,public
45
+ #schema_search_path: myapp,sharedapp,public
46
+
47
+ # Minimum log levels, in increasing order:
48
+ # debug5, debug4, debug3, debug2, debug1,
49
+ # log, notice, warning, error, fatal, and panic
50
+ # Defaults to warning.
51
+ #min_messages: notice
52
+
53
+ # Warning: The database defined as "test" will be erased and
54
+ # re-generated from your development database when you run "rake".
55
+ # Do not set this db to the same as development or production.
56
+ test:
57
+ <<: *default
58
+ database: dummy_test
59
+
60
+ # As with config/credentials.yml, you never want to store sensitive information,
61
+ # like your database password, in your source code. If your source code is
62
+ # ever seen by anyone, they now have access to your database.
63
+ #
64
+ # Instead, provide the password or a full connection URL as an environment
65
+ # variable when you boot the app. For example:
66
+ #
67
+ # DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
68
+ #
69
+ # If the connection URL is provided in the special DATABASE_URL environment
70
+ # variable, Rails will automatically merge its configuration values on top of
71
+ # the values provided in this file. Alternatively, you can specify a connection
72
+ # URL environment variable explicitly:
73
+ #
74
+ # production:
75
+ # url: <%= ENV["MY_APP_DATABASE_URL"] %>
76
+ #
77
+ # Read https://guides.rubyonrails.org/configuring.html#configuring-a-database
78
+ # for a full overview on how database connection configuration can be specified.
79
+ #
80
+ production:
81
+ <<: *default
82
+ database: dummy_production
83
+ username: dummy
84
+ password: <%= ENV["DUMMY_DATABASE_PASSWORD"] %>
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require_relative "application"
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,76 @@
1
+ require "active_support/core_ext/integer/time"
2
+
3
+ Rails.application.configure do
4
+ # Settings specified here will take precedence over those in config/application.rb.
5
+
6
+ # In the development environment your application's code is reloaded any time
7
+ # it changes. This slows down response time but is perfect for development
8
+ # since you don't have to restart the web server when you make code changes.
9
+ config.enable_reloading = true
10
+
11
+ # Do not eager load code on boot.
12
+ config.eager_load = false
13
+
14
+ # Show full error reports.
15
+ config.consider_all_requests_local = true
16
+
17
+ # Enable server timing
18
+ config.server_timing = true
19
+
20
+ # Enable/disable caching. By default caching is disabled.
21
+ # Run rails dev:cache to toggle caching.
22
+ if Rails.root.join("tmp/caching-dev.txt").exist?
23
+ config.action_controller.perform_caching = true
24
+ config.action_controller.enable_fragment_cache_logging = true
25
+
26
+ config.cache_store = :memory_store
27
+ config.public_file_server.headers = {
28
+ "Cache-Control" => "public, max-age=#{2.days.to_i}"
29
+ }
30
+ else
31
+ config.action_controller.perform_caching = false
32
+
33
+ config.cache_store = :null_store
34
+ end
35
+
36
+ # Store uploaded files on the local file system (see config/storage.yml for options).
37
+ config.active_storage.service = :local
38
+
39
+ # Don't care if the mailer can't send.
40
+ config.action_mailer.raise_delivery_errors = false
41
+
42
+ config.action_mailer.perform_caching = false
43
+
44
+ # Print deprecation notices to the Rails logger.
45
+ config.active_support.deprecation = :log
46
+
47
+ # Raise exceptions for disallowed deprecations.
48
+ config.active_support.disallowed_deprecation = :raise
49
+
50
+ # Tell Active Support which deprecation messages to disallow.
51
+ config.active_support.disallowed_deprecation_warnings = []
52
+
53
+ # Raise an error on page load if there are pending migrations.
54
+ config.active_record.migration_error = :page_load
55
+
56
+ # Highlight code that triggered database queries in logs.
57
+ config.active_record.verbose_query_logs = true
58
+
59
+ # Highlight code that enqueued background job in logs.
60
+ config.active_job.verbose_enqueue_logs = true
61
+
62
+ # Suppress logger output for asset requests.
63
+ config.assets.quiet = true
64
+
65
+ # Raises error for missing translations.
66
+ # config.i18n.raise_on_missing_translations = true
67
+
68
+ # Annotate rendered view with file names.
69
+ # config.action_view.annotate_rendered_view_with_filenames = true
70
+
71
+ # Uncomment if you wish to allow Action Cable access from any origin.
72
+ # config.action_cable.disable_request_forgery_protection = true
73
+
74
+ # Raise error when a before_action's only/except options reference missing actions
75
+ config.action_controller.raise_on_missing_callback_actions = true
76
+ end