thecore_backend_commons 2.4.1 → 2.4.2

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: f26facf216a7ef65d65ab5e6308b0dbd3a409e0f518b6241b0422672fcdd5cac
4
- data.tar.gz: 7d5fa5296977559734e55100ae76f90252f713e5efd3178c409f53dcee79f5ac
3
+ metadata.gz: 9d9b50144b153933f5f112d06654851f419d676bbf8870a860d7ff0950f6cfdc
4
+ data.tar.gz: 846b3a2f1199272bba51015bcc8227892f0e66fffd4491ba11b290f24f464ede
5
5
  SHA512:
6
- metadata.gz: 5685083114f7e8dc448aa1af54cb95e7776dd6645531fbda3f4e9bb25756c5898e11789c41d1e2c19374bbdc81a9b6da0959ffde33b4371de29ce83cb082c7f0
7
- data.tar.gz: 344c2717c705509af7ae7f3241d91c80bfa75011634d34213b3cecf1529b5ec8220227cc9ccc190aeedb397f53d513ee2facdf67593da82d4f5fca7828e4b813
6
+ metadata.gz: 7c8ae19d1f950f7ff645ef0a155825dc76fe828d9b53818d0589bde79df7cb5d4103c8172b5ed016d7a1875b85a3e9de693d079d743306c89e3fcbf3110fc0f5
7
+ data.tar.gz: 89322cd50c81acffa5323ee5d2f470149f00feb65beef474cbe08d31e8427f60e572165a3a8987c59a7e5e86b537304fd6f71ed090a563e9dca7337a6bf63a81
@@ -1,5 +1,25 @@
1
1
  module ThecoreBackendCommons
2
2
  class Engine < ::Rails::Engine
3
+ initializer "thecore_backend_commons.assets.precompile" do |app|
4
+ # Here you can place the assets provided by this engine in order for them to be precompiled in production and JIT
5
+ # compiled in development.
6
+ # As an example:
7
+ # app.config.assets.precompile += %w( overrides.css )
8
+ # app.config.assets.precompile += %w( android-chrome-192x192.png )
9
+ if ENV['COMPOSE_PROJECT_NAME'].present? && ENV['BASE_DOMAIN'].present?
10
+ puts "WHITE LABEL is in place for vendor/custombuilds/#{ENV['COMPOSE_PROJECT_NAME']}.#{ENV['BASE_DOMAIN']}/deltas/app"
11
+ # Somewhat white label support
12
+ app.config.autoload_paths += %W(
13
+ vendor/custombuilds/#{ENV['COMPOSE_PROJECT_NAME']}.#{ENV['BASE_DOMAIN']}/deltas/app/models
14
+ vendor/custombuilds/#{ENV['COMPOSE_PROJECT_NAME']}.#{ENV['BASE_DOMAIN']}/deltas/app/jobs
15
+ vendor/custombuilds/#{ENV['COMPOSE_PROJECT_NAME']}.#{ENV['BASE_DOMAIN']}/deltas/app/mailers
16
+ vendor/custombuilds/#{ENV['COMPOSE_PROJECT_NAME']}.#{ENV['BASE_DOMAIN']}/deltas/db
17
+ )
18
+ end
19
+ end
20
+ initializer 'thecore_backend_commons.add_to_thecore_engines_list' do |app|
21
+ Thecore::Base.thecore_engines << self.class
22
+ end
3
23
  initializer 'thecore_backend_commons.add_to_migrations' do |app|
4
24
  # Adds the list of Thecore Engines, so to manage seeds loading, i.e.:
5
25
  # Thecore::Base.thecore_engines.each { |engine| engine.load_seed }
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.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-05 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_auth_commons