thecore_backend_commons 2.3.1 → 2.3.5

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: f0202849e4f38b4061e22ad045921e089568105f0f93133f49f73b8a4f940b98
4
- data.tar.gz: '08f3c782440a101aebe5c6e87f471296871063e2f4410eb29c6c919a2396293c'
3
+ metadata.gz: 3c5596374237552d4ec0b1c9834ebd0961020ec277d82b559f858b68896cfc6f
4
+ data.tar.gz: 72f57b2e229e9edab1aa0b286464dee9e0fbf7345a5f8d1a2c3304032aca0d61
5
5
  SHA512:
6
- metadata.gz: e7031d0b99ffdb997d7c088c4528cd0fffe4cfa411a6eed78a93a775c552e0e3e8315b872ec042d3f38a90f5b2d1972780dba28ed6bd30c59dfd059523cf19c4
7
- data.tar.gz: 7580d85e179694ca46b3392952e8b2cda451f757387c9b4d26a810712e0c2480205271f2a91f26d002de38256b3a3ab17006edb0baf8ef1dbfd831513230d70a
6
+ metadata.gz: f3d47655895f9939f7cfd43f3c4a0b909e5b461eacc558a143a6519789ee847f6adb2fe789adbdde54beca625fc1040a606000100fe22b61ea37b5bd6e1a0995
7
+ data.tar.gz: d2155a112323a484eed5ea02c8d01af0dea485a306b4df4fa552f92707cb9ff785e744280b7c4228dbca16202ba113fa275819ef771c0a3146266e835f228638
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
@@ -2,11 +2,14 @@ require 'thecore_auth_commons'
2
2
  require 'devise-i18n'
3
3
  require 'http_accept_language'
4
4
  require 'rails-i18n'
5
- require 'rails_admin_settings'
5
+ require 'thecore_settings'
6
6
 
7
7
  require 'patches/thecore'
8
8
  require 'concerns/thecore_backend_commons_user'
9
9
 
10
+ require 'roo'
11
+ require 'roo-xls'
12
+
10
13
  require "thecore_backend_commons/engine"
11
14
 
12
15
  module ThecoreBackendCommons
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.1
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-03 00:00:00.000000000 Z
11
+ date: 2021-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_auth_commons
@@ -67,19 +67,47 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.1'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rails_admin_settings
70
+ name: thecore_settings
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.5'
75
+ version: '2.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.5'
82
+ version: '2.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: roo
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.8'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.8'
97
+ - !ruby/object:Gem::Dependency
98
+ name: roo-xls
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.2'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.2'
83
111
  description: Wrapper to keep all the common libraries and setups needed by Thecore
84
112
  UI Backend(s).
85
113
  email:
@@ -97,8 +125,7 @@ files:
97
125
  - config/locales/en.devise.custom.yml
98
126
  - config/locales/it.devise.custom.yml
99
127
  - config/routes.rb
100
- - db/migrate/20161227101954_create_rails_admin_settings.rb
101
- - db/migrate/20161227101956_add_app_name.rb
128
+ - db/seeds.rb
102
129
  - lib/concerns/thecore_backend_commons_user.rb
103
130
  - lib/patches/active_record_extensions.rb
104
131
  - lib/patches/application_record_loader.rb
@@ -131,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
158
  - !ruby/object:Gem::Version
132
159
  version: '0'
133
160
  requirements: []
134
- rubygems_version: 3.0.3
161
+ rubygems_version: 3.0.3.1
135
162
  signing_key:
136
163
  specification_version: 4
137
164
  summary: Thecore 2 foundations for the Web UI Backend.
@@ -1,25 +0,0 @@
1
- class CreateRailsAdminSettings < ActiveRecord::Migration[5.0]
2
- def change
3
- create_table :rails_admin_settings do |t|
4
- t.boolean :enabled, default: true
5
- t.string :kind, null: false, default: 'string'
6
- t.string :ns, default: 'main'
7
- t.string :key, null: false
8
- if Object.const_defined?('Geocoder')
9
- t.float :latitude
10
- t.float :longitude
11
- end
12
- t.text :raw
13
- t.string :label
14
- if defined?(Paperclip)
15
- t.attachment :file
16
- elsif defined?(CarrierWave)
17
- t.string :file
18
- end
19
- t.timestamps
20
- end
21
-
22
- add_index :rails_admin_settings, :key
23
- add_index :rails_admin_settings, [:ns, :key], unique: true
24
- end
25
- end
@@ -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