thecore_backend_commons 2.3.5 → 2.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/mailers/application_mailer.rb +4 -0
- data/config/initializers/session_store.rb +7 -0
- data/config/initializers/thecore_backend_commons_app_archetypes.rb +15 -0
- data/config/initializers/thecore_backend_commons_app_configs.rb +3 -1
- data/db/seeds.rb +12 -1
- data/lib/patches/postgresql_drop_replacement.rb +12 -12
- data/lib/thecore_backend_commons.rb +12 -1
- metadata +5 -3
- data/lib/concerns/thecore_backend_commons_user.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f0f91b3e84ddc6c4806ad7817c33ba79b7a74c5ce7dcfa0d239da3b0a8ef7a7
|
4
|
+
data.tar.gz: 370f4986ee52a29add02d79c9c79a689f7106ff5534f90068a30f55af558213f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad589b533c28130ec41e4f95597ac125a697859647b18ab6290fd0d94afb885b08ef7839117145ba6fe873f6c320e20e1ee0605913283aa2ea074a8808704b18
|
7
|
+
data.tar.gz: aa2342d04722a22fe29c5594d94e93be100f03009b206c9e79c3ea37d97e7e8b694076d1e82e7d377ed7927a1ef8692ca8d4ccbc627fd06d738abc363178b153
|
@@ -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
|
@@ -15,6 +18,5 @@ Rails.application.configure do
|
|
15
18
|
ActiveRecord::Base.send(:include, ActiveRecordExtensions)
|
16
19
|
Integer.send(:include, FixnumConcern)
|
17
20
|
String.send(:include, StringConcern)
|
18
|
-
User.send(:include, ThecoreBackendCommonsUser)
|
19
21
|
end
|
20
22
|
end
|
data/db/seeds.rb
CHANGED
@@ -1,2 +1,13 @@
|
|
1
1
|
puts "Loading ThecoreBackendCommons seeds"
|
2
|
-
|
2
|
+
Thecore::Seed.save_setting :main, :app_name, "The Core by Gabriele Tassoni"
|
3
|
+
|
4
|
+
puts "Loading ThecoreBackendCommons SMTP config"
|
5
|
+
Thecore::Seed.save_setting :smtp, :delivery_method, ""
|
6
|
+
Thecore::Seed.save_setting :smtp, :from, ""
|
7
|
+
Thecore::Seed.save_setting :smtp, :address, ""
|
8
|
+
Thecore::Seed.save_setting :smtp, :port, ""
|
9
|
+
Thecore::Seed.save_setting :smtp, :domain, ""
|
10
|
+
Thecore::Seed.save_setting :smtp, :user_name, ""
|
11
|
+
Thecore::Seed.save_setting :smtp, :password, ""
|
12
|
+
Thecore::Seed.save_setting :smtp, :authentication, ""
|
13
|
+
Thecore::Seed.save_setting :smtp, :enable_starttls_auto, ""
|
@@ -1,12 +1,12 @@
|
|
1
|
-
module ActiveRecord
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
end
|
1
|
+
# module ActiveRecord
|
2
|
+
# module Tasks
|
3
|
+
# class PostgreSQLDatabaseTasks
|
4
|
+
# # Allows drop on DBs currently in use.
|
5
|
+
# def drop
|
6
|
+
# establish_master_connection
|
7
|
+
# connection.select_all "select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where datname='#{configuration['database']}' AND state='idle';"
|
8
|
+
# connection.drop_database configuration['database']
|
9
|
+
# end
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
@@ -5,7 +5,6 @@ require 'rails-i18n'
|
|
5
5
|
require 'thecore_settings'
|
6
6
|
|
7
7
|
require 'patches/thecore'
|
8
|
-
require 'concerns/thecore_backend_commons_user'
|
9
8
|
|
10
9
|
require 'roo'
|
11
10
|
require 'roo-xls'
|
@@ -15,3 +14,15 @@ require "thecore_backend_commons/engine"
|
|
15
14
|
module ThecoreBackendCommons
|
16
15
|
# Your code goes here...
|
17
16
|
end
|
17
|
+
|
18
|
+
module Thecore
|
19
|
+
class Seed
|
20
|
+
def self.save_setting ns, setting, value
|
21
|
+
puts "Saving setting if nil #{ns}: #{setting} = #{value}"
|
22
|
+
if Settings.ns(ns)[setting].blank?
|
23
|
+
Settings.ns(ns)[setting] if value.blank?
|
24
|
+
Settings.ns(ns)[setting] = value unless value.blank?
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
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.
|
4
|
+
version: 2.3.9
|
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-
|
11
|
+
date: 2021-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_auth_commons
|
@@ -121,12 +121,14 @@ 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/session_store.rb
|
126
|
+
- config/initializers/thecore_backend_commons_app_archetypes.rb
|
124
127
|
- config/initializers/thecore_backend_commons_app_configs.rb
|
125
128
|
- config/locales/en.devise.custom.yml
|
126
129
|
- config/locales/it.devise.custom.yml
|
127
130
|
- config/routes.rb
|
128
131
|
- db/seeds.rb
|
129
|
-
- lib/concerns/thecore_backend_commons_user.rb
|
130
132
|
- lib/patches/active_record_extensions.rb
|
131
133
|
- lib/patches/application_record_loader.rb
|
132
134
|
- lib/patches/date_format.rb
|