thecore_ui_commons 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03d1a89997f19015363818b765abead88599d37202e14d2595683bb89eec2da9
4
- data.tar.gz: c5f39edc2f974aa2ab8961c1d35483d0df0d31d619845584b01933c64c30ec3f
3
+ metadata.gz: ef99f016b67f373d5083fa6475a1f98dc01d7201273d0b76c5cb977e6057c4a0
4
+ data.tar.gz: b163f9c5037f6b96a54c9eba9a27e16f826c4cd869341a448e39aa992925b98f
5
5
  SHA512:
6
- metadata.gz: 5570885cde77bb6df53798bd0e1b5ddee4640546bec226cf7c66c6e6b1fa64a2ffc0404aa353864ae9111495c5dc73342127acecee3f572e0718238e9a2be9ba
7
- data.tar.gz: 5273adc7dc79d7b3055676b92c188480977b353b8b84b84e0ce356b528d086c6754fdf9b3347fe30bdf71e22665ed7a55536ce9c773ea9e12c0dd81c41afaca6
6
+ metadata.gz: 014d79daedc5d88bbe8441e7a3199267ca3ba7c37d2ee08c5c63c8f5fb435051cc787934f357f972077df84a9887933895477b8889ef893bf3db971c5028879f
7
+ data.tar.gz: '03800a14b23b6837defc2d65809e7c8338f31ba87a12481be79021c14d6534972a14cccd97e26c007210cb38fa65a44749a7c0521cf5a60fce37dd2a9df45907'
data/db/seeds.rb ADDED
@@ -0,0 +1,3 @@
1
+ puts "Loading ThecoreUiCommons seeds"
2
+ Settings.ns(:importer).import_from_folder = "tmp/imports"
3
+ Settings.ns(:importer).extension = "txt"
@@ -1,6 +1,9 @@
1
1
  module ThecoreUiCommons
2
2
  class Engine < ::Rails::Engine
3
3
  initializer 'thecore_ui_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|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
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-03-15 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_background_jobs
@@ -180,7 +180,7 @@ files:
180
180
  - config/routes.rb
181
181
  - db/migrate/20200515070620_add_username_to_user.rb
182
182
  - db/migrate/20200515132932_add_rememberable_to_user.rb
183
- - db/migrate/20210208142646_add_settings_for_uploader.rb
183
+ - db/seeds.rb
184
184
  - lib/concerns/thecore_ui_commons_user.rb
185
185
  - lib/tasks/thecore_ui_commons_tasks.rake
186
186
  - lib/thecore_ui_commons.rb
@@ -1,6 +0,0 @@
1
- class AddSettingsForUploader < ActiveRecord::Migration[6.0]
2
- def change
3
- Settings.ns(:importer).import_from_folder = "tmp/imports"
4
- Settings.ns(:importer).extension = "txt"
5
- end
6
- end