thecore_backend_commons 2.3.7 → 2.4.0

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: 9a5898c5ad05a5670c1019f14d29998378b71d653266ff04ad8d524b381d7c6e
4
+ data.tar.gz: 1d9a36cf0d5ddb19d7c4b3746b608fde574b828a4de2f230d7717a6447a2780e
5
5
  SHA512:
6
- metadata.gz: 4a5772b09a6a0d84bd15311761655212176199c69eaef0ee86ece981338dc7f25404806f113d057c7217077e8fad2a29837637ac5d14e29b40ea227825600a81
7
- data.tar.gz: ded97fa05e0ada92cda27203fc6b7fa8ed6cc26d38cb8250a18abcf2cb60396e477fdc470b00e8a8f93ea43e6c6c03330cc5e4ca4d9c605a18a2098e728e6151
6
+ metadata.gz: 5ee8e9252e1f257b01607401025da9ad4dd3928f5e7a70299284873af7a8e8f1767d8aca5da6c2e9792a329d4b7d04dc3cb4c79401fcc7da0200afd14cf773e9
7
+ data.tar.gz: afef0a21cbf27e3c8f01802ce2935018ce7823fe23c91f02d4b00c46136bf7381a724e0d2df92a6e0423f2c00bb827c91d66b569359eb02d65537e5fde30543a
@@ -0,0 +1,9 @@
1
+ # Rails.application.config.session_store :cookie_store, {
2
+ # :key => "_#{ENV["COMPOSE_PROJECT_NAME"].presence || "localhost"}_session",
3
+ # :domain => :all,
4
+ # :same_site => :none,
5
+ # :secure => :true,
6
+ # :compress => true,
7
+ # :pool_size => 10,
8
+ # :expire_after => 1.year
9
+ # }
@@ -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.4.0
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: 2022-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_auth_commons
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.1'
19
+ version: '2.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.1'
26
+ version: '2.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails-i18n
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -122,13 +122,13 @@ 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/session_store.rb
125
126
  - config/initializers/thecore_backend_commons_app_archetypes.rb
126
127
  - config/initializers/thecore_backend_commons_app_configs.rb
127
128
  - config/locales/en.devise.custom.yml
128
129
  - config/locales/it.devise.custom.yml
129
130
  - config/routes.rb
130
131
  - db/seeds.rb
131
- - lib/concerns/thecore_backend_commons_user.rb
132
132
  - lib/patches/active_record_extensions.rb
133
133
  - lib/patches/application_record_loader.rb
134
134
  - 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