thecore_backend_commons 2.3.7 → 2.3.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 915dc909c9d1f93bb28915d3fd4991f3864814cc97755fd592722bd8c03b0de9
|
4
|
+
data.tar.gz: cab3a82d76be74142b1ff1afa4b53a4c0c68b97232f21bd4118936da1eb9b394
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de0fab3dce0d736a33255f9ecc5d8f9574388fa8ab2cf430842593779b8579a67e2c8e9ea46e2840074d40bc374a1c05c065b01426c573de8818b3cb8420b54a
|
7
|
+
data.tar.gz: 9abb21b64a7426105086ea0a84dc1143f359c762843ca16094ac2b190584b53cfe3415bbdb253fb4b448a03e60ba287d99316c95091980095d4eb655d4c8184f
|
data/db/seeds.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
puts "Loading ThecoreBackendCommons seeds"
|
2
|
-
|
2
|
+
Thecore::Seed.save_setting :main, :app_name, "The Core by Gabriele Tassoni"
|
3
3
|
|
4
|
-
|
5
|
-
Thecore::Seed.save_setting :smtp, :
|
6
|
-
Thecore::Seed.save_setting :smtp, :
|
7
|
-
Thecore::Seed.save_setting :smtp, :
|
8
|
-
Thecore::Seed.save_setting :smtp, :
|
9
|
-
Thecore::Seed.save_setting :smtp, :
|
10
|
-
Thecore::Seed.save_setting :smtp, :
|
11
|
-
Thecore::Seed.save_setting :smtp, :
|
12
|
-
Thecore::Seed.save_setting :smtp, :
|
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, ""
|
@@ -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'
|
@@ -19,7 +18,11 @@ end
|
|
19
18
|
module Thecore
|
20
19
|
class Seed
|
21
20
|
def self.save_setting ns, setting, value
|
22
|
-
|
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
|
23
26
|
end
|
24
27
|
end
|
25
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.8
|
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-09-
|
11
|
+
date: 2021-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_auth_commons
|
@@ -128,7 +128,6 @@ files:
|
|
128
128
|
- config/locales/it.devise.custom.yml
|
129
129
|
- config/routes.rb
|
130
130
|
- db/seeds.rb
|
131
|
-
- lib/concerns/thecore_backend_commons_user.rb
|
132
131
|
- lib/patches/active_record_extensions.rb
|
133
132
|
- lib/patches/application_record_loader.rb
|
134
133
|
- lib/patches/date_format.rb
|