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: 5ee4ecdbd341f7445539331e8678e7ec1f26926e67a9f4e22aedc024f751b46b
4
- data.tar.gz: 939b0f3bc29138f049df4ba054a447028a27d3c3ef44d29743264d45d6816035
3
+ metadata.gz: 915dc909c9d1f93bb28915d3fd4991f3864814cc97755fd592722bd8c03b0de9
4
+ data.tar.gz: cab3a82d76be74142b1ff1afa4b53a4c0c68b97232f21bd4118936da1eb9b394
5
5
  SHA512:
6
- metadata.gz: 4a5772b09a6a0d84bd15311761655212176199c69eaef0ee86ece981338dc7f25404806f113d057c7217077e8fad2a29837637ac5d14e29b40ea227825600a81
7
- data.tar.gz: ded97fa05e0ada92cda27203fc6b7fa8ed6cc26d38cb8250a18abcf2cb60396e477fdc470b00e8a8f93ea43e6c6c03330cc5e4ca4d9c605a18a2098e728e6151
6
+ metadata.gz: de0fab3dce0d736a33255f9ecc5d8f9574388fa8ab2cf430842593779b8579a67e2c8e9ea46e2840074d40bc374a1c05c065b01426c573de8818b3cb8420b54a
7
+ data.tar.gz: 9abb21b64a7426105086ea0a84dc1143f359c762843ca16094ac2b190584b53cfe3415bbdb253fb4b448a03e60ba287d99316c95091980095d4eb655d4c8184f
@@ -18,6 +18,5 @@ Rails.application.configure do
18
18
  ActiveRecord::Base.send(:include, ActiveRecordExtensions)
19
19
  Integer.send(:include, FixnumConcern)
20
20
  String.send(:include, StringConcern)
21
- User.send(:include, ThecoreBackendCommonsUser)
22
21
  end
23
22
  end
data/db/seeds.rb CHANGED
@@ -1,12 +1,13 @@
1
1
  puts "Loading ThecoreBackendCommons seeds"
2
- Settings.app_name = "The Core by Gabriele Tassoni"
2
+ Thecore::Seed.save_setting :main, :app_name, "The Core by Gabriele Tassoni"
3
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
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
- Settings.ns(ns)[setting] = value if Settings.ns(ns)[setting].blank?
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.7
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-16 00:00:00.000000000 Z
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
@@ -1,8 +0,0 @@
1
- require 'active_support/concern'
2
-
3
- module ThecoreBackendCommonsUser
4
- extend ActiveSupport::Concern
5
-
6
- included do
7
- end
8
- end