content_flagging 1.0.0 → 1.0.2

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 (73) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -0
  3. data/README.md +21 -2
  4. data/content_flagging.gemspec +17 -9
  5. data/lib/content_flagging/version.rb +1 -1
  6. metadata +22 -84
  7. data/dummy_app/.dockerignore +0 -37
  8. data/dummy_app/.ruby-version +0 -1
  9. data/dummy_app/Dockerfile +0 -62
  10. data/dummy_app/Gemfile +0 -65
  11. data/dummy_app/Gemfile.lock +0 -286
  12. data/dummy_app/README.md +0 -24
  13. data/dummy_app/Rakefile +0 -6
  14. data/dummy_app/app/assets/config/manifest.js +0 -2
  15. data/dummy_app/app/assets/images/.keep +0 -0
  16. data/dummy_app/app/assets/stylesheets/application.css +0 -15
  17. data/dummy_app/app/channels/application_cable/channel.rb +0 -4
  18. data/dummy_app/app/channels/application_cable/connection.rb +0 -4
  19. data/dummy_app/app/controllers/application_controller.rb +0 -2
  20. data/dummy_app/app/controllers/concerns/.keep +0 -0
  21. data/dummy_app/app/helpers/application_helper.rb +0 -2
  22. data/dummy_app/app/jobs/application_job.rb +0 -7
  23. data/dummy_app/app/mailers/application_mailer.rb +0 -4
  24. data/dummy_app/app/models/application_record.rb +0 -3
  25. data/dummy_app/app/models/concerns/.keep +0 -0
  26. data/dummy_app/app/models/post.rb +0 -3
  27. data/dummy_app/app/models/user.rb +0 -2
  28. data/dummy_app/app/views/layouts/application.html.erb +0 -15
  29. data/dummy_app/app/views/layouts/mailer.html.erb +0 -13
  30. data/dummy_app/app/views/layouts/mailer.text.erb +0 -1
  31. data/dummy_app/bin/docker-entrypoint +0 -8
  32. data/dummy_app/bin/rails +0 -4
  33. data/dummy_app/bin/rake +0 -4
  34. data/dummy_app/bin/setup +0 -33
  35. data/dummy_app/config/application.rb +0 -42
  36. data/dummy_app/config/boot.rb +0 -4
  37. data/dummy_app/config/cable.yml +0 -10
  38. data/dummy_app/config/credentials.yml.enc +0 -1
  39. data/dummy_app/config/database.yml +0 -25
  40. data/dummy_app/config/environment.rb +0 -5
  41. data/dummy_app/config/environments/development.rb +0 -76
  42. data/dummy_app/config/environments/production.rb +0 -97
  43. data/dummy_app/config/environments/test.rb +0 -64
  44. data/dummy_app/config/initializers/assets.rb +0 -12
  45. data/dummy_app/config/initializers/content_security_policy.rb +0 -25
  46. data/dummy_app/config/initializers/filter_parameter_logging.rb +0 -8
  47. data/dummy_app/config/initializers/inflections.rb +0 -16
  48. data/dummy_app/config/initializers/permissions_policy.rb +0 -13
  49. data/dummy_app/config/locales/en.yml +0 -31
  50. data/dummy_app/config/master.key +0 -1
  51. data/dummy_app/config/puma.rb +0 -44
  52. data/dummy_app/config/routes.rb +0 -10
  53. data/dummy_app/config/storage.yml +0 -34
  54. data/dummy_app/config.ru +0 -6
  55. data/dummy_app/db/migrate/20250920174734_create_content_flags.rb +0 -13
  56. data/dummy_app/db/migrate/20250920174750_create_posts.rb +0 -10
  57. data/dummy_app/db/migrate/20250920174757_create_users.rb +0 -9
  58. data/dummy_app/db/schema.rb +0 -40
  59. data/dummy_app/db/seeds.rb +0 -9
  60. data/dummy_app/lib/assets/.keep +0 -0
  61. data/dummy_app/lib/tasks/.keep +0 -0
  62. data/dummy_app/public/404.html +0 -67
  63. data/dummy_app/public/422.html +0 -67
  64. data/dummy_app/public/500.html +0 -66
  65. data/dummy_app/public/apple-touch-icon-precomposed.png +0 -0
  66. data/dummy_app/public/apple-touch-icon.png +0 -0
  67. data/dummy_app/public/favicon.ico +0 -0
  68. data/dummy_app/public/robots.txt +0 -1
  69. data/dummy_app/storage/.keep +0 -0
  70. data/dummy_app/test_console.rb +0 -46
  71. data/dummy_app/vendor/.keep +0 -0
  72. data/example_usage.rb +0 -46
  73. data/test_manual.rb +0 -36
@@ -1,286 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- content_flagging (1.0.0)
5
- activerecord (>= 6.0)
6
- activesupport (>= 6.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actioncable (7.1.5.2)
12
- actionpack (= 7.1.5.2)
13
- activesupport (= 7.1.5.2)
14
- nio4r (~> 2.0)
15
- websocket-driver (>= 0.6.1)
16
- zeitwerk (~> 2.6)
17
- actionmailbox (7.1.5.2)
18
- actionpack (= 7.1.5.2)
19
- activejob (= 7.1.5.2)
20
- activerecord (= 7.1.5.2)
21
- activestorage (= 7.1.5.2)
22
- activesupport (= 7.1.5.2)
23
- mail (>= 2.7.1)
24
- net-imap
25
- net-pop
26
- net-smtp
27
- actionmailer (7.1.5.2)
28
- actionpack (= 7.1.5.2)
29
- actionview (= 7.1.5.2)
30
- activejob (= 7.1.5.2)
31
- activesupport (= 7.1.5.2)
32
- mail (~> 2.5, >= 2.5.4)
33
- net-imap
34
- net-pop
35
- net-smtp
36
- rails-dom-testing (~> 2.2)
37
- actionpack (7.1.5.2)
38
- actionview (= 7.1.5.2)
39
- activesupport (= 7.1.5.2)
40
- nokogiri (>= 1.8.5)
41
- racc
42
- rack (>= 2.2.4)
43
- rack-session (>= 1.0.1)
44
- rack-test (>= 0.6.3)
45
- rails-dom-testing (~> 2.2)
46
- rails-html-sanitizer (~> 1.6)
47
- actiontext (7.1.5.2)
48
- actionpack (= 7.1.5.2)
49
- activerecord (= 7.1.5.2)
50
- activestorage (= 7.1.5.2)
51
- activesupport (= 7.1.5.2)
52
- globalid (>= 0.6.0)
53
- nokogiri (>= 1.8.5)
54
- actionview (7.1.5.2)
55
- activesupport (= 7.1.5.2)
56
- builder (~> 3.1)
57
- erubi (~> 1.11)
58
- rails-dom-testing (~> 2.2)
59
- rails-html-sanitizer (~> 1.6)
60
- activejob (7.1.5.2)
61
- activesupport (= 7.1.5.2)
62
- globalid (>= 0.3.6)
63
- activemodel (7.1.5.2)
64
- activesupport (= 7.1.5.2)
65
- activerecord (7.1.5.2)
66
- activemodel (= 7.1.5.2)
67
- activesupport (= 7.1.5.2)
68
- timeout (>= 0.4.0)
69
- activestorage (7.1.5.2)
70
- actionpack (= 7.1.5.2)
71
- activejob (= 7.1.5.2)
72
- activerecord (= 7.1.5.2)
73
- activesupport (= 7.1.5.2)
74
- marcel (~> 1.0)
75
- activesupport (7.1.5.2)
76
- base64
77
- benchmark (>= 0.3)
78
- bigdecimal
79
- concurrent-ruby (~> 1.0, >= 1.0.2)
80
- connection_pool (>= 2.2.5)
81
- drb
82
- i18n (>= 1.6, < 2)
83
- logger (>= 1.4.2)
84
- minitest (>= 5.1)
85
- mutex_m
86
- securerandom (>= 0.3)
87
- tzinfo (~> 2.0)
88
- base64 (0.3.0)
89
- benchmark (0.4.1)
90
- bigdecimal (3.2.3)
91
- bindex (0.8.1)
92
- bootsnap (1.18.6)
93
- msgpack (~> 1.2)
94
- builder (3.3.0)
95
- cgi (0.5.0)
96
- concurrent-ruby (1.3.5)
97
- connection_pool (2.5.4)
98
- crass (1.0.6)
99
- date (3.4.1)
100
- debug (1.11.0)
101
- irb (~> 1.10)
102
- reline (>= 0.3.8)
103
- drb (2.2.3)
104
- erb (4.0.4)
105
- cgi (>= 0.3.3)
106
- erubi (1.13.1)
107
- globalid (1.2.1)
108
- activesupport (>= 6.1)
109
- i18n (1.14.7)
110
- concurrent-ruby (~> 1.0)
111
- importmap-rails (2.0.3)
112
- actionpack (>= 6.0.0)
113
- activesupport (>= 6.0.0)
114
- railties (>= 6.0.0)
115
- io-console (0.8.1)
116
- irb (1.15.2)
117
- pp (>= 0.6.0)
118
- rdoc (>= 4.0.0)
119
- reline (>= 0.4.2)
120
- jbuilder (2.14.1)
121
- actionview (>= 7.0.0)
122
- activesupport (>= 7.0.0)
123
- logger (1.7.0)
124
- loofah (2.24.1)
125
- crass (~> 1.0.2)
126
- nokogiri (>= 1.12.0)
127
- mail (2.8.1)
128
- mini_mime (>= 0.1.1)
129
- net-imap
130
- net-pop
131
- net-smtp
132
- marcel (1.1.0)
133
- mini_mime (1.1.5)
134
- minitest (5.25.5)
135
- msgpack (1.8.0)
136
- mutex_m (0.3.0)
137
- net-imap (0.4.22)
138
- date
139
- net-protocol
140
- net-pop (0.1.2)
141
- net-protocol
142
- net-protocol (0.2.2)
143
- timeout
144
- net-smtp (0.5.1)
145
- net-protocol
146
- nio4r (2.7.4)
147
- nokogiri (1.17.2-aarch64-linux)
148
- racc (~> 1.4)
149
- nokogiri (1.17.2-arm-linux)
150
- racc (~> 1.4)
151
- nokogiri (1.17.2-arm64-darwin)
152
- racc (~> 1.4)
153
- nokogiri (1.17.2-x86-linux)
154
- racc (~> 1.4)
155
- nokogiri (1.17.2-x86_64-darwin)
156
- racc (~> 1.4)
157
- nokogiri (1.17.2-x86_64-linux)
158
- racc (~> 1.4)
159
- pp (0.6.2)
160
- prettyprint
161
- prettyprint (0.2.0)
162
- psych (5.2.6)
163
- date
164
- stringio
165
- puma (7.0.3)
166
- nio4r (~> 2.0)
167
- racc (1.8.1)
168
- rack (3.2.1)
169
- rack-session (2.1.1)
170
- base64 (>= 0.1.0)
171
- rack (>= 3.0.0)
172
- rack-test (2.2.0)
173
- rack (>= 1.3)
174
- rackup (2.2.1)
175
- rack (>= 3)
176
- rails (7.1.5.2)
177
- actioncable (= 7.1.5.2)
178
- actionmailbox (= 7.1.5.2)
179
- actionmailer (= 7.1.5.2)
180
- actionpack (= 7.1.5.2)
181
- actiontext (= 7.1.5.2)
182
- actionview (= 7.1.5.2)
183
- activejob (= 7.1.5.2)
184
- activemodel (= 7.1.5.2)
185
- activerecord (= 7.1.5.2)
186
- activestorage (= 7.1.5.2)
187
- activesupport (= 7.1.5.2)
188
- bundler (>= 1.15.0)
189
- railties (= 7.1.5.2)
190
- rails-dom-testing (2.3.0)
191
- activesupport (>= 5.0.0)
192
- minitest
193
- nokogiri (>= 1.6)
194
- rails-html-sanitizer (1.6.2)
195
- loofah (~> 2.21)
196
- nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
197
- railties (7.1.5.2)
198
- actionpack (= 7.1.5.2)
199
- activesupport (= 7.1.5.2)
200
- irb
201
- rackup (>= 1.0.0)
202
- rake (>= 12.2)
203
- thor (~> 1.0, >= 1.2.2)
204
- zeitwerk (~> 2.6)
205
- rake (13.3.0)
206
- rdoc (6.14.2)
207
- erb
208
- psych (>= 4.0.0)
209
- reline (0.6.2)
210
- io-console (~> 0.5)
211
- securerandom (0.3.2)
212
- sprockets (4.2.2)
213
- concurrent-ruby (~> 1.0)
214
- logger
215
- rack (>= 2.2.4, < 4)
216
- sprockets-rails (3.5.2)
217
- actionpack (>= 6.1)
218
- activesupport (>= 6.1)
219
- sprockets (>= 3.0.0)
220
- sqlite3 (2.0.4-aarch64-linux-gnu)
221
- sqlite3 (2.0.4-aarch64-linux-musl)
222
- sqlite3 (2.0.4-arm-linux-gnu)
223
- sqlite3 (2.0.4-arm-linux-musl)
224
- sqlite3 (2.0.4-arm64-darwin)
225
- sqlite3 (2.0.4-x86-linux-gnu)
226
- sqlite3 (2.0.4-x86-linux-musl)
227
- sqlite3 (2.0.4-x86_64-darwin)
228
- sqlite3 (2.0.4-x86_64-linux-gnu)
229
- sqlite3 (2.0.4-x86_64-linux-musl)
230
- stimulus-rails (1.3.4)
231
- railties (>= 6.0.0)
232
- stringio (3.1.7)
233
- thor (1.4.0)
234
- timeout (0.4.3)
235
- turbo-rails (2.0.12)
236
- actionpack (>= 6.0.0)
237
- railties (>= 6.0.0)
238
- tzinfo (2.0.6)
239
- concurrent-ruby (~> 1.0)
240
- web-console (4.2.1)
241
- actionview (>= 6.0.0)
242
- activemodel (>= 6.0.0)
243
- bindex (>= 0.4.0)
244
- railties (>= 6.0.0)
245
- websocket-driver (0.8.0)
246
- base64
247
- websocket-extensions (>= 0.1.0)
248
- websocket-extensions (0.1.5)
249
- zeitwerk (2.6.18)
250
-
251
- PLATFORMS
252
- aarch64-linux
253
- aarch64-linux-gnu
254
- aarch64-linux-musl
255
- arm-linux
256
- arm-linux-gnu
257
- arm-linux-musl
258
- arm64-darwin
259
- x86-linux
260
- x86-linux-gnu
261
- x86-linux-musl
262
- x86_64-darwin
263
- x86_64-linux
264
- x86_64-linux-gnu
265
- x86_64-linux-musl
266
-
267
- DEPENDENCIES
268
- bootsnap
269
- content_flagging!
270
- debug
271
- importmap-rails
272
- jbuilder
273
- puma (>= 5.0)
274
- rails (~> 7.1.4)
275
- sprockets-rails
276
- sqlite3 (>= 1.4)
277
- stimulus-rails
278
- turbo-rails
279
- tzinfo-data
280
- web-console
281
-
282
- RUBY VERSION
283
- ruby 3.0.6p216
284
-
285
- BUNDLED WITH
286
- 2.5.16
data/dummy_app/README.md DELETED
@@ -1,24 +0,0 @@
1
- # README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
data/dummy_app/Rakefile DELETED
@@ -1,6 +0,0 @@
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
@@ -1,2 +0,0 @@
1
- //= link_tree ../images
2
- //= link_directory ../stylesheets .css
File without changes
@@ -1,15 +0,0 @@
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, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
6
- * 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
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
- */
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Channel < ActionCable::Channel::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Connection < ActionCable::Connection::Base
3
- end
4
- end
@@ -1,2 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- end
File without changes
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,7 +0,0 @@
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
@@ -1,4 +0,0 @@
1
- class ApplicationMailer < ActionMailer::Base
2
- default from: "from@example.com"
3
- layout "mailer"
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationRecord < ActiveRecord::Base
2
- primary_abstract_class
3
- end
File without changes
@@ -1,3 +0,0 @@
1
- class Post < ApplicationRecord
2
- acts_as_flaggable
3
- end
@@ -1,2 +0,0 @@
1
- class User < ApplicationRecord
2
- end
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>DummyApp</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", "data-turbo-track": "reload" %>
10
- </head>
11
-
12
- <body>
13
- <%= yield %>
14
- </body>
15
- </html>
@@ -1,13 +0,0 @@
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>
@@ -1 +0,0 @@
1
- <%= yield %>
@@ -1,8 +0,0 @@
1
- #!/bin/bash -e
2
-
3
- # If running the rails server then create or migrate existing database
4
- if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
5
- ./bin/rails db:prepare
6
- fi
7
-
8
- exec "${@}"
data/dummy_app/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path("../config/application", __dir__)
3
- require_relative "../config/boot"
4
- require "rails/commands"
data/dummy_app/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative "../config/boot"
3
- require "rake"
4
- Rake.application.run
data/dummy_app/bin/setup DELETED
@@ -1,33 +0,0 @@
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
@@ -1,42 +0,0 @@
1
- require_relative "boot"
2
-
3
- require "rails"
4
- # Pick the frameworks you want:
5
- require "active_model/railtie"
6
- require "active_job/railtie"
7
- require "active_record/railtie"
8
- require "active_storage/engine"
9
- require "action_controller/railtie"
10
- require "action_mailer/railtie"
11
- require "action_mailbox/engine"
12
- require "action_text/engine"
13
- require "action_view/railtie"
14
- require "action_cable/engine"
15
- # require "rails/test_unit/railtie"
16
-
17
- # Require the gems listed in Gemfile, including any gems
18
- # you've limited to :test, :development, or :production.
19
- Bundler.require(*Rails.groups)
20
-
21
- module DummyApp
22
- class Application < Rails::Application
23
- # Initialize configuration defaults for originally generated Rails version.
24
- config.load_defaults 7.1
25
-
26
- # Please, add to the `ignore` list any other `lib` subdirectories that do
27
- # not contain `.rb` files, or that should not be reloaded or eager loaded.
28
- # Common ones are `templates`, `generators`, or `middleware`, for example.
29
- config.autoload_lib(ignore: %w(assets tasks))
30
-
31
- # Configuration for the application, engines, and railties goes here.
32
- #
33
- # These settings can be overridden in specific environments using the files
34
- # in config/environments, which are processed later.
35
- #
36
- # config.time_zone = "Central Time (US & Canada)"
37
- # config.eager_load_paths << Rails.root.join("extras")
38
-
39
- # Don't generate system test files.
40
- config.generators.system_tests = nil
41
- end
42
- end
@@ -1,4 +0,0 @@
1
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
2
-
3
- require "bundler/setup" # Set up gems listed in the Gemfile.
4
- require "bootsnap/setup" # Speed up boot time by caching expensive operations.
@@ -1,10 +0,0 @@
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_app_production
@@ -1 +0,0 @@
1
- 6wSebUcMqfpLKH9r3jE/UXK03+g380MYtMA+t+Mlz7Ncn7WuEeuK3blAyL2NMKh8FAjvzaKDHuuQEBjaeIRf9pQV+6g0rXqIdRv+T6jBDjT+MJEzunr2A3BKAVxPVFVjO9tN8/VKx6i39L6EMremiTuaXaT2axbV0smkmvSd9eOPLyCx69HteNmwRjs0duy0N8KGU71L1GUOnCQvj2Omf4Vihs+5zwnXp9WO6j6CSPtlEnQAlxNz9Q+LApwkLLeVE2lpIp5zWanrjaEPxL0V1ZUzWcMa7NVinGaPx3xzXxvDITpzRc7tZIuDWOb53qnb3Y9nx5gL5JfTZocxzs1NT9Dxqp4KPeGLPIAaKuJGKJooeZ5f8K7q2v8sXm5WrraNihQ6qLhlGnNHF5uhIGf1kN++L9dD--U5AD/menY+UMfkbZ--kfFXNTXfJXPMhWTdMAqkQA==
@@ -1,25 +0,0 @@
1
- # SQLite. Versions 3.8.0 and up are supported.
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem "sqlite3"
6
- #
7
- default: &default
8
- adapter: sqlite3
9
- pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
10
- timeout: 5000
11
-
12
- development:
13
- <<: *default
14
- database: storage/development.sqlite3
15
-
16
- # Warning: The database defined as "test" will be erased and
17
- # re-generated from your development database when you run "rake".
18
- # Do not set this db to the same as development or production.
19
- test:
20
- <<: *default
21
- database: storage/test.sqlite3
22
-
23
- production:
24
- <<: *default
25
- database: storage/production.sqlite3
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require_relative "application"
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
@@ -1,76 +0,0 @@
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