thecore_backend_commons 2.3.2 → 2.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/seeds.rb +2 -0
- data/lib/patches/postgresql_drop_replacement.rb +12 -12
- data/lib/thecore_backend_commons/engine.rb +3 -0
- data/lib/thecore_backend_commons/version.rb +1 -1
- data/lib/thecore_backend_commons.rb +4 -1
- metadata +35 -8
- data/db/migrate/20161227101954_create_rails_admin_settings.rb +0 -25
- data/db/migrate/20161227101956_add_app_name.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 867b27ac90b393d9a597085fc1dabc9eed6d7ac11de2184fe7c93c34a3c68e86
|
4
|
+
data.tar.gz: 64a51cb562f243ab30f61a4ae7fa6da45916a25cd92bde0ab3124903c80ddd40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1607bd4f56df8bad489fa46f16b6f515316352824b9c7758d73d6a618336fa383bee801301f77d2391d625844053e424cbcc71231997c904b2b736076c484e16
|
7
|
+
data.tar.gz: 0e0c81d36aa25c19aae726752a2b8b5b31182ca97c653de0c3d7ef502c541cd141984acb30a6d3ba279d66bcca92a6939df89557caac32b16ec60d84d95a8c67
|
data/db/seeds.rb
ADDED
@@ -1,12 +1,12 @@
|
|
1
|
-
module ActiveRecord
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
end
|
1
|
+
# module ActiveRecord
|
2
|
+
# module Tasks
|
3
|
+
# class PostgreSQLDatabaseTasks
|
4
|
+
# # Allows drop on DBs currently in use.
|
5
|
+
# def drop
|
6
|
+
# establish_master_connection
|
7
|
+
# connection.select_all "select pg_terminate_backend(pg_stat_activity.pid) from pg_stat_activity where datname='#{configuration['database']}' AND state='idle';"
|
8
|
+
# connection.drop_database configuration['database']
|
9
|
+
# end
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
# end
|
@@ -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|
|
@@ -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 '
|
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.
|
4
|
+
version: 2.3.6
|
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-
|
11
|
+
date: 2021-08-27 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:
|
70
|
+
name: thecore_settings
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
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: '
|
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/
|
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
|