thecore_backend_commons 2.2.8 → 2.3.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 748ed2ccd4d1d4e3681f79b6c9c61e2cb5d7f5422a6df1c4e29e91e8fa23115c
|
4
|
+
data.tar.gz: 2803036572704a8fbd831289cd13981ef9a52bae0295a0fd116919ce1edfe043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ddbb7898d1d2df731f2e9989c219f5dfd5bea7afbe08fd7cd13cedee6e418aae71bc8547154672daf0e576edd6afbc0f8ca8985bf29c552af9b6d8b21c968f1
|
7
|
+
data.tar.gz: 3b8faec2364b30034d25f7bba085b30884718e11a5c16dfd8940086bbad6cb6d0815b14ecea5a98044638d504cf3295c9fe35e0de406d86b4deb07cab4e3a6a0
|
@@ -0,0 +1,25 @@
|
|
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
|
data/db/seeds.rb
ADDED
@@ -2,10 +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
6
|
|
6
7
|
require 'patches/thecore'
|
7
8
|
require 'concerns/thecore_backend_commons_user'
|
8
9
|
|
10
|
+
require 'roo'
|
11
|
+
require 'roo-xls'
|
12
|
+
|
9
13
|
require "thecore_backend_commons/engine"
|
10
14
|
|
11
15
|
module ThecoreBackendCommons
|
@@ -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|
|
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
|
+
version: 2.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_auth_commons
|
@@ -66,6 +66,48 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '2.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rails_admin_settings
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.5'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.5'
|
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'
|
69
111
|
description: Wrapper to keep all the common libraries and setups needed by Thecore
|
70
112
|
UI Backend(s).
|
71
113
|
email:
|
@@ -83,6 +125,8 @@ files:
|
|
83
125
|
- config/locales/en.devise.custom.yml
|
84
126
|
- config/locales/it.devise.custom.yml
|
85
127
|
- config/routes.rb
|
128
|
+
- db/migrate/20161227101954_create_rails_admin_settings.rb
|
129
|
+
- db/seeds.rb
|
86
130
|
- lib/concerns/thecore_backend_commons_user.rb
|
87
131
|
- lib/patches/active_record_extensions.rb
|
88
132
|
- lib/patches/application_record_loader.rb
|
@@ -115,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
159
|
- !ruby/object:Gem::Version
|
116
160
|
version: '0'
|
117
161
|
requirements: []
|
118
|
-
rubygems_version: 3.0.3
|
162
|
+
rubygems_version: 3.0.3.1
|
119
163
|
signing_key:
|
120
164
|
specification_version: 4
|
121
165
|
summary: Thecore 2 foundations for the Web UI Backend.
|