thecore_settings 2.0.7 → 2.0.8

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: d0fbb95cf02a044f75c3e5ccda3540068836c14dac1576fa32f0401f6389e47a
4
- data.tar.gz: 4dd06053f1661529b953859ab5ecf5c7e9f46fa89566411e8387cf298c9ee73c
3
+ metadata.gz: d511db8bdf434de5142cc6b76936e2e8501b2f4f2df8979cabcb0ea8c361ef39
4
+ data.tar.gz: 902cbd0e72258eaaa3b15ed0ff6444dd5a7426a9d2f29cabaef5b46c9f0f5ba1
5
5
  SHA512:
6
- metadata.gz: a7ca42c534ab5b6eea5fbb8b117901c9fea431339847f15eee44ce2daa6d6762148a0435ee7acbf263fd93cffce877fdcac79a16c0431a4a284aa636aa1af7f8
7
- data.tar.gz: bc5173798cfe9fd02c9af33647020155e4e4bb0607e52410ed85074fb04ffa65076cf29211f3357472a6c875c3668395669e377d8d3c4ef9a2e2a51165068b29
6
+ metadata.gz: e971ddb2bca7f1975d2280ab8d5ead015619676646c40bac013f6eae42dda7773d3c3deaa1d2cf3fc74dd17387954d6ac00e657e88a45ac0822bc12e0fe10918
7
+ data.tar.gz: b506208fb12ac63432f59e27e8324c4a93daeea3085c7ed7b6161cf2d92afa05497cb518bb58f7d3f59d2e5436c141950ee824b6af04e5bfea9e275ee1fc04c7
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7
4
+ version: 2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-05-11 00:00:00.000000000 Z
12
+ date: 2022-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
@@ -357,8 +357,6 @@ files:
357
357
  - db/migrate/20210825113515_migrate_from_rails_admin_settings_to_thecore_settings.rb
358
358
  - gemfiles/mongoid-6.0.gemfile
359
359
  - gemfiles/mongoid-6.3.gemfile
360
- - lib/generators/thecore_settings/migration_generator.rb
361
- - lib/generators/thecore_settings/templates/migration.rb
362
360
  - lib/thecore_settings.rb
363
361
  - lib/thecore_settings/determine_mime_type.rb
364
362
  - lib/thecore_settings/dumper.rb
@@ -1,15 +0,0 @@
1
- require 'rails/generators'
2
- require 'rails/generators/active_record'
3
-
4
- module ThecoreSettings
5
- class MigrationGenerator < Rails::Generators::Base
6
- include ActiveRecord::Generators::Migration
7
- source_root File.expand_path('../templates', __FILE__)
8
-
9
- desc 'RocketCMS migration generator'
10
- def install
11
- migration_template "migration.rb", "db/migrate/create_thecore_settings.rb"
12
- end
13
- end
14
- end
15
-
@@ -1,29 +0,0 @@
1
- class CreateThecoreSettings < ActiveRecord::Migration[5.0]
2
- def change
3
- create_table :thecore_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
- elsif defined?(Shrine)
19
- t.text :file_data
20
-
21
- end
22
- t.timestamps
23
- end
24
-
25
- add_index :thecore_settings, :key
26
- add_index :thecore_settings, [:ns, :key], unique: true
27
- end
28
- end
29
-