thecore_backend_commons 2.1.0 → 2.2.2

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: 5cd557b68b33195bfd41fe54df86144a1fa5f28c69d2d9b819132a08ebd746c3
4
- data.tar.gz: 55b2fa3ecd550c4d8c3b01238340b9927a9defa9c9e740c8db7b7a033160f070
3
+ metadata.gz: e135c1e63f9bd67e4932130a85db7d0540f354efa7c6f1284a795aa5c55e5869
4
+ data.tar.gz: ee11c1f08733bff375e8dee1ead83e975afa46f3cb6b3d9015e8f6726565b221
5
5
  SHA512:
6
- metadata.gz: b49f181a32f75ac7cd0b6f5a4141f5b69164f5e7bbf6dbe8d7eca5f83c50eea86952cbc0486e92d27ca15f37a22cb702738b15e9ddfacaf2f8ea82b82b01f02c
7
- data.tar.gz: 797f6cc2e0e213e3bdf4114b0bb7045f19d6d19b34b8c2dbd34da07e97f8f8a65e4bcebcd76f512de6318056aab0f1464277bfcf8e8013da02d51efeea6de10e
6
+ metadata.gz: 63ff58bf5f374ebaae3eacc007131dd450b924f00fcce6567a379db7f5694fb5c10724b9f444ec79a6ed61be2431c6e0e7cb12b75d246eb3f834c05185a3e9c6
7
+ data.tar.gz: 5dd68de92d5320a296c3121af74afe5ba8541d9c011fa6c8c3a4410e65171656383a7cb1c8ba8454a4b59fa44152c9ce7a6763ff8f97869e1ef115ec36ecfff0
@@ -0,0 +1,6 @@
1
+ Rails.application.config.i18n.available_locales = %w(it en)
2
+ Rails.application.config.i18n.default_locale = :en
3
+ Rails.application.config.active_storage.configure(
4
+ :Disk,
5
+ root: Rails.root.join("storage")
6
+ )
@@ -0,0 +1,27 @@
1
+ # This migration comes from active_storage (originally 20170806125915)
2
+ class CreateActiveStorageTables < ActiveRecord::Migration[5.2]
3
+ def change
4
+ create_table :active_storage_blobs do |t|
5
+ t.string :key, null: false
6
+ t.string :filename, null: false
7
+ t.string :content_type
8
+ t.text :metadata
9
+ t.bigint :byte_size, null: false
10
+ t.string :checksum, null: false
11
+ t.datetime :created_at, null: false
12
+
13
+ t.index [ :key ], unique: true
14
+ end
15
+
16
+ create_table :active_storage_attachments do |t|
17
+ t.string :name, null: false
18
+ t.references :record, null: false, polymorphic: true, index: false
19
+ t.references :blob, null: false
20
+
21
+ t.datetime :created_at, null: false
22
+
23
+ t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true
24
+ t.foreign_key :active_storage_blobs, column: :blob_id
25
+ end
26
+ end
27
+ end
@@ -1,6 +1,8 @@
1
1
  require "thecore_backend_commons/engine"
2
2
 
3
3
  require 'thecore_auth_commons'
4
+ require 'devise-i18n'
5
+ require 'http_accept_language'
4
6
 
5
7
  module ThecoreBackendCommons
6
8
  # Your code goes here...
@@ -1,3 +1,3 @@
1
1
  module ThecoreBackendCommons
2
- VERSION = '2.1.0'
2
+ VERSION = '2.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_backend_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
@@ -24,6 +24,34 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: devise-i18n
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.5'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: http_accept_language
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.1'
27
55
  description: Wrapper to keep all the common libraries and setups needed by Thecore
28
56
  UI Backend(s).
29
57
  email:
@@ -36,8 +64,10 @@ files:
36
64
  - README.md
37
65
  - Rakefile
38
66
  - app/assets/config/thecore_backend_commons_manifest.js
39
- - config/after_initialize_thecore_backend_commons.rb
67
+ - config/initializers/after_initialize_thecore_backend_commons.rb
68
+ - config/initializers/thecore_backend_commons_application.rb
40
69
  - config/routes.rb
70
+ - db/migrate/20190920115549_create_active_storage_tables.active_storage.rb
41
71
  - lib/tasks/thecore_backend_commons_tasks.rake
42
72
  - lib/thecore_backend_commons.rb
43
73
  - lib/thecore_backend_commons/engine.rb