thecore_backend_commons 2.2.8 → 2.3.0

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: 18c163930b0dc1428dce0a8da5f6a5cc9a590ca158b5148c38ba786f4f4971eb
4
- data.tar.gz: 9f52d6b57af4b76fb870e98420f9df7e5046ea45f032515c17117eb1c3f0b608
3
+ metadata.gz: af21ac8ecea21c9fb0dd78bc5b43e9c7e7bb95a63d2978bf8a962809947789e2
4
+ data.tar.gz: aadccb0272be1b51ad206400814a76b4c8db0c1b83d54022409635506a8c1833
5
5
  SHA512:
6
- metadata.gz: c2ddf263b12c8966405277e1daa14ea9f6e67c44a3b413a315f32c85bd426eacafdaeff86d79856920c554ad47762cacba4c4d61e8009b20cccd14e2b8a5da20
7
- data.tar.gz: f66cf4c676eee714f5daa452b30bed0e40e28be742d9192ae215ed252e5985587c9bb26f19e88c9cf68df2cd899a9db1d1dd28e243efba369dec6f34dc40ed8f
6
+ metadata.gz: d7b165974336508398a010ed4dc260c942b01bf4245fa42a9f77bb53b23ae55de1406e0f0974992cfca7b3979feb6dffef8b78563ee3f7dd8a3433e467ac7e1a
7
+ data.tar.gz: e838fbc23edad3960728d4e1887d237509f6ff06b60aa7f23805a38d50be976c4d7467f9f9971676ee1dff6d481899e005f456b46cdb1ee160f4dfc01dea5c53
@@ -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
@@ -0,0 +1,5 @@
1
+ class AddAppName < ActiveRecord::Migration[5.0]
2
+ def change
3
+ Settings.app_name = "The Core by Gabriele Tassoni"
4
+ end
5
+ end
@@ -2,6 +2,7 @@ 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'
@@ -1,3 +1,3 @@
1
1
  module ThecoreBackendCommons
2
- VERSION = '2.2.8'
2
+ VERSION = '2.3.0'
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.2.8
4
+ version: 2.3.0
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-05-22 00:00:00.000000000 Z
11
+ date: 2020-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_auth_commons
@@ -66,6 +66,20 @@ 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'
69
83
  description: Wrapper to keep all the common libraries and setups needed by Thecore
70
84
  UI Backend(s).
71
85
  email:
@@ -83,6 +97,8 @@ files:
83
97
  - config/locales/en.devise.custom.yml
84
98
  - config/locales/it.devise.custom.yml
85
99
  - config/routes.rb
100
+ - db/migrate/20161227101954_create_rails_admin_settings.rb
101
+ - db/migrate/20161227101956_add_app_name.rb
86
102
  - lib/concerns/thecore_backend_commons_user.rb
87
103
  - lib/patches/active_record_extensions.rb
88
104
  - lib/patches/application_record_loader.rb