thecore_backend_commons 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45d9fb3fed95faf9f8905c3fb5f771da599bbb4d21a6a8e3b208ea907ca3f96f
4
- data.tar.gz: a7bd4fc8f3c0a7110592a32fcb7c7033f5f9d17830950e11313a5cd54666b752
3
+ metadata.gz: 97b3433311941eb67495b9938472ff960bc3dacaad6adf8b06bebbb40a99e587
4
+ data.tar.gz: 7bc3f81e1528cb1a80021620946c396b5e378770c9fdfbfc6ccf332bca61b872
5
5
  SHA512:
6
- metadata.gz: 381aad374cc92952c0b9a7b7cfac422ee381950bccb1f67950d807da896fa12e2ac0a9d3b6432d34426da14cab6c6d4be95e3627233114f6719f113481ce7682
7
- data.tar.gz: 3f1e501b3818bede3efb02787878815710d9432a2a8ad9ddc1c0adf1b77b2b133537407fa06bd29dc28c30d8e5dd3f45886d0b34c319cb56e4f61e7cf7822c55
6
+ metadata.gz: 5aec846ee1b3b5de05bcd22a4209058ef678ee0b03d7293d6ad4b8e7e0295a8bc890dd466b6539b32d13bc41f98b71d7d365d433f2a5d3a86aeb939fe30905ff
7
+ data.tar.gz: 369a4bfc44c5068477b929b44c544607be71a27969248a16369db0c4ba03c9d8d11d33b75f7cfe6b9a940de6c7bf74902edcc617397cd87baf62991b68f986e2
@@ -1,13 +1,12 @@
1
1
  Rails.application.configure do
2
+ # Session Store
3
+ config.session_store :cookie_store, expire_after: 1.year, domain: ".#{ENV["BASE_DOMAIN"].presence || "all"}"
2
4
  # I18n
3
5
  config.i18n.available_locales = %w(it en)
4
6
  config.i18n.default_locale = :it
5
7
  config.time_zone = 'Rome'
6
8
  # Active Storage
7
- config.active_storage.configure(
8
- :Disk,
9
- root: Rails.root.join("storage")
10
- )
9
+ config.active_storage.configure :Disk, root: Rails.root.join("storage")
11
10
 
12
11
  # ActionMailer
13
12
  config.action_mailer.delivery_method = :smtp
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_backend_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-06 00:00:00.000000000 Z
11
+ date: 2023-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_auth_commons
@@ -122,7 +122,6 @@ files:
122
122
  - app/assets/config/thecore_backend_commons_manifest.js
123
123
  - app/jobs/application_job.rb
124
124
  - app/mailers/application_mailer.rb
125
- - config/initializers/new_framework_defaults_6_1.rb
126
125
  - config/initializers/session_store.rb
127
126
  - config/initializers/thecore_backend_commons_app_archetypes.rb
128
127
  - config/initializers/thecore_backend_commons_app_configs.rb
@@ -1,67 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
- #
3
- # This file contains migration options to ease your Rails 6.1 upgrade.
4
- #
5
- # Once upgraded flip defaults one by one to migrate to the new default.
6
- #
7
- # Read the Guide for Upgrading Ruby on Rails for more info on each option.
8
-
9
- # Support for inversing belongs_to -> has_many Active Record associations.
10
- # Rails.application.config.active_record.has_many_inversing = true
11
-
12
- # Track Active Storage variants in the database.
13
- # Rails.application.config.active_storage.track_variants = true
14
-
15
- # Apply random variation to the delay when retrying failed jobs.
16
- # Rails.application.config.active_job.retry_jitter = 0.15
17
-
18
- # Stop executing `after_enqueue`/`after_perform` callbacks if
19
- # `before_enqueue`/`before_perform` respectively halts with `throw :abort`.
20
- # Rails.application.config.active_job.skip_after_callbacks_if_terminated = true
21
-
22
- # Specify cookies SameSite protection level: either :none, :lax, or :strict.
23
- #
24
- # This change is not backwards compatible with earlier Rails versions.
25
- # It's best enabled when your entire app is migrated and stable on 6.1.
26
- # Rails.application.config.action_dispatch.cookies_same_site_protection = :lax
27
-
28
- # Generate CSRF tokens that are encoded in URL-safe Base64.
29
- #
30
- # This change is not backwards compatible with earlier Rails versions.
31
- # It's best enabled when your entire app is migrated and stable on 6.1.
32
- # Rails.application.config.action_controller.urlsafe_csrf_tokens = true
33
-
34
- # Specify whether `ActiveSupport::TimeZone.utc_to_local` returns a time with an
35
- # UTC offset or a UTC time.
36
- # ActiveSupport.utc_to_local_returns_utc_offset_times = true
37
-
38
- # Change the default HTTP status code to `308` when redirecting non-GET/HEAD
39
- # requests to HTTPS in `ActionDispatch::SSL` middleware.
40
- # Rails.application.config.action_dispatch.ssl_default_redirect_status = 308
41
-
42
- # Use new connection handling API. For most applications this won't have any
43
- # effect. For applications using multiple databases, this new API provides
44
- # support for granular connection swapping.
45
- # Rails.application.config.active_record.legacy_connection_handling = false
46
-
47
- # Make `form_with` generate non-remote forms by default.
48
- # Rails.application.config.action_view.form_with_generates_remote_forms = false
49
-
50
- # Set the default queue name for the analysis job to the queue adapter default.
51
- # Rails.application.config.active_storage.queues.analysis = nil
52
-
53
- # Set the default queue name for the purge job to the queue adapter default.
54
- # Rails.application.config.active_storage.queues.purge = nil
55
-
56
- # Set the default queue name for the incineration job to the queue adapter default.
57
- # Rails.application.config.action_mailbox.queues.incineration = nil
58
-
59
- # Set the default queue name for the routing job to the queue adapter default.
60
- # Rails.application.config.action_mailbox.queues.routing = nil
61
-
62
- # Set the default queue name for the mail deliver job to the queue adapter default.
63
- # Rails.application.config.action_mailer.deliver_later_queue_name = nil
64
-
65
- # Generate a `Link` header that gives a hint to modern browsers about
66
- # preloading assets when using `javascript_include_tag` and `stylesheet_link_tag`.
67
- # Rails.application.config.action_view.preload_links_header = true