thecore_backend_commons 2.3.6 → 2.3.7

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: 867b27ac90b393d9a597085fc1dabc9eed6d7ac11de2184fe7c93c34a3c68e86
4
- data.tar.gz: 64a51cb562f243ab30f61a4ae7fa6da45916a25cd92bde0ab3124903c80ddd40
3
+ metadata.gz: 5ee4ecdbd341f7445539331e8678e7ec1f26926e67a9f4e22aedc024f751b46b
4
+ data.tar.gz: 939b0f3bc29138f049df4ba054a447028a27d3c3ef44d29743264d45d6816035
5
5
  SHA512:
6
- metadata.gz: 1607bd4f56df8bad489fa46f16b6f515316352824b9c7758d73d6a618336fa383bee801301f77d2391d625844053e424cbcc71231997c904b2b736076c484e16
7
- data.tar.gz: 0e0c81d36aa25c19aae726752a2b8b5b31182ca97c653de0c3d7ef502c541cd141984acb30a6d3ba279d66bcca92a6939df89557caac32b16ec60d84d95a8c67
6
+ metadata.gz: 4a5772b09a6a0d84bd15311761655212176199c69eaef0ee86ece981338dc7f25404806f113d057c7217077e8fad2a29837637ac5d14e29b40ea227825600a81
7
+ data.tar.gz: ded97fa05e0ada92cda27203fc6b7fa8ed6cc26d38cb8250a18abcf2cb60396e477fdc470b00e8a8f93ea43e6c6c03330cc5e4ca4d9c605a18a2098e728e6151
@@ -0,0 +1,4 @@
1
+ class ApplicationMailer < ActionMailer::Base
2
+ layout 'mailer'
3
+ end
4
+
@@ -0,0 +1,15 @@
1
+ class NilClass
2
+ def self.to_bool
3
+ false
4
+ end
5
+ def to_bool
6
+ false
7
+ end
8
+ end
9
+
10
+ class String
11
+ def to_bool
12
+ return true if self.downcase == "true"
13
+ false
14
+ end
15
+ end
@@ -8,6 +8,9 @@ Rails.application.configure do
8
8
  :Disk,
9
9
  root: Rails.root.join("storage")
10
10
  )
11
+
12
+ # ActionMailer
13
+ config.action_mailer.delivery_method = :smtp
11
14
  # AFTER INITIALIZE Good place to load things that must have a bit of initialization
12
15
  # setup on order to work (and not be overrided).
13
16
  config.after_initialize do
data/db/seeds.rb CHANGED
@@ -1,2 +1,12 @@
1
1
  puts "Loading ThecoreBackendCommons seeds"
2
2
  Settings.app_name = "The Core by Gabriele Tassoni"
3
+
4
+ Thecore::Seed.save_setting :smtp, :delivery_method, nil
5
+ Thecore::Seed.save_setting :smtp, :from, nil
6
+ Thecore::Seed.save_setting :smtp, :address, nil
7
+ Thecore::Seed.save_setting :smtp, :port, nil
8
+ Thecore::Seed.save_setting :smtp, :domain, nil
9
+ Thecore::Seed.save_setting :smtp, :user_name, nil
10
+ Thecore::Seed.save_setting :smtp, :password, nil
11
+ Thecore::Seed.save_setting :smtp, :authentication, nil
12
+ Thecore::Seed.save_setting :smtp, :enable_starttls_auto, nil
@@ -15,3 +15,11 @@ require "thecore_backend_commons/engine"
15
15
  module ThecoreBackendCommons
16
16
  # Your code goes here...
17
17
  end
18
+
19
+ module Thecore
20
+ class Seed
21
+ def self.save_setting ns, setting, value
22
+ Settings.ns(ns)[setting] = value if Settings.ns(ns)[setting].blank?
23
+ end
24
+ end
25
+ end
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: 2.3.6
4
+ version: 2.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-27 00:00:00.000000000 Z
11
+ date: 2021-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_auth_commons
@@ -121,6 +121,8 @@ files:
121
121
  - Rakefile
122
122
  - app/assets/config/thecore_backend_commons_manifest.js
123
123
  - app/jobs/application_job.rb
124
+ - app/mailers/application_mailer.rb
125
+ - config/initializers/thecore_backend_commons_app_archetypes.rb
124
126
  - config/initializers/thecore_backend_commons_app_configs.rb
125
127
  - config/locales/en.devise.custom.yml
126
128
  - config/locales/it.devise.custom.yml