thecore_backend_commons 2.3.2 → 2.3.3

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: 7e1d24d6395eea6d48915c5d165cdc8ac1350be9f50ee9e39580af7e1c64a4a8
4
- data.tar.gz: 5a7de1ca4db859ac7c0db77e7419a6f079642ff68f96b09b01ee873010abba96
3
+ metadata.gz: a71a84f3ec7b4d1f7b04f5364a3fe06cb276780877e7e42f900e2dc127db08f5
4
+ data.tar.gz: 1e4864c9729010d64fb31c01cc83cd239c926624b35490d761693220a57a81f9
5
5
  SHA512:
6
- metadata.gz: ead1c46f8be7ec8663063b8cb948ec8d6f6153a4e397edea854e9ff9fbcf6b37d5dc4a9f9ddc554e430f4ac994ece33a02623db61a5d7174a1e86ba4ee08436c
7
- data.tar.gz: a235d64f81b4d5eae8495b07e9bd8840242d126e8c5d5d1ef2abd4fb9c82b43090765c3cf41e6442652ef51384c7ee3efefb58e3b3ea86be45a3c97f6bf25db1
6
+ metadata.gz: f3461a0da170cbab9aeae2fa65b7a2c0f57bcbc454b491ae4378a4a6cbd31cf991f8e3a7c1d31132ee4b78f505269c5d055c4f8b683207b0e966975b32d830db
7
+ data.tar.gz: ed8dd31419464a8c1bc486646add1ddd099438500a478747ae93006e62403735837da75aa00b85519f240946e001c55c9a3984f9be272587a30fb825e192b13b
data/db/seeds.rb ADDED
@@ -0,0 +1,2 @@
1
+ puts "Loading ThecoreBackendCommons seeds"
2
+ Settings.app_name = "The Core by Gabriele Tassoni"
@@ -1,6 +1,9 @@
1
1
  module ThecoreBackendCommons
2
2
  class Engine < ::Rails::Engine
3
3
  initializer 'thecore_backend_commons.add_to_migrations' do |app|
4
+ # Adds the list of Thecore Engines, so to manage seeds loading, i.e.:
5
+ # Thecore::Base.thecore_engines.each { |engine| engine.load_seed }
6
+ Thecore::Base.thecore_engines << self.class
4
7
  unless app.root.to_s.match root.to_s
5
8
  # APPEND TO MAIN APP MIGRATIONS FROM THIS GEM
6
9
  config.paths['db/migrate'].expanded.each do |expanded_path|
@@ -1,3 +1,3 @@
1
1
  module ThecoreBackendCommons
2
- VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`}"
2
+ VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
3
3
  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.2
4
+ version: 2.3.3
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-01-26 00:00:00.000000000 Z
11
+ date: 2021-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_auth_commons
@@ -98,7 +98,7 @@ files:
98
98
  - config/locales/it.devise.custom.yml
99
99
  - config/routes.rb
100
100
  - db/migrate/20161227101954_create_rails_admin_settings.rb
101
- - db/migrate/20161227101956_add_app_name.rb
101
+ - db/seeds.rb
102
102
  - lib/concerns/thecore_backend_commons_user.rb
103
103
  - lib/patches/active_record_extensions.rb
104
104
  - lib/patches/application_record_loader.rb
@@ -1,5 +0,0 @@
1
- class AddAppName < ActiveRecord::Migration[5.0]
2
- def change
3
- Settings.app_name = "The Core by Gabriele Tassoni"
4
- end
5
- end