thecore_settings 2.0.4 → 2.0.5
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 +4 -4
- data/config/locales/{thecore_settings.it.yml → it.yml} +0 -0
- metadata +2 -142
- data/app/assets/config/thecore_settings_manifest.js +0 -0
- data/app/assets/images/thecore_settings/.keep +0 -0
- data/app/assets/javascripts/thecore_settings/.keep +0 -0
- data/app/assets/stylesheets/rich/editor.css +0 -20
- data/app/assets/stylesheets/thecore_settings/.keep +0 -0
- data/app/controllers/.keep +0 -0
- data/app/helpers/.keep +0 -0
- data/app/mailers/.keep +0 -0
- data/assets/javascripts/rails_admin/custom/thecore_settings.rb +0 -2
- data/config/initializers/rails_admin_requirements.rb +0 -22
- data/config/initializers/thecore_settings_abilities.rb +0 -22
- data/config/initializers/thecore_settings_post_init.rb +0 -4
- data/config/routes.rb +0 -3
- data/db/migrate/20161227101956_add_app_name.rb +0 -5
- data/lib/tasks/thecore_settings_tasks.rake +0 -4
- data/log/development.log +0 -0
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/config/manifest.js +0 -4
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/javascripts/cable.js +0 -13
- data/test/dummy/app/assets/javascripts/channels/.keep +0 -0
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/channels/application_cable/channel.rb +0 -4
- data/test/dummy/app/channels/application_cable/connection.rb +0 -4
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/jobs/application_job.rb +0 -2
- data/test/dummy/app/mailers/application_mailer.rb +0 -4
- data/test/dummy/app/models/application_record.rb +0 -3
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/app/views/layouts/mailer.html.erb +0 -13
- data/test/dummy/app/views/layouts/mailer.text.erb +0 -1
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -34
- data/test/dummy/bin/update +0 -29
- data/test/dummy/config/application.rb +0 -15
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/cable.yml +0 -9
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -54
- data/test/dummy/config/environments/production.rb +0 -86
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/application_controller_renderer.rb +0 -6
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -5
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/new_framework_defaults.rb +0 -24
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/puma.rb +0 -47
- data/test/dummy/config/routes.rb +0 -3
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/config/spring.rb +0 -6
- data/test/dummy/config.ru +0 -5
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/log/development.log +0 -16
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/.keep +0 -0
- data/test/integration/navigation_test.rb +0 -8
- data/test/test_helper.rb +0 -19
- data/test/thecore_settings_test.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b80a5227b7b718b9f7c3f4c2059b189b3fba50cb4e15e844e43d01f0516147ff
|
4
|
+
data.tar.gz: 44c8de8d6df9de9dae5221a5bee718302eb447151b107e8de469049e9b076115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bba739928691ce2e85a2cfae56b3d6f7d055c68bc7d5eb9f44653e68b1b3cf4768dcc4181c3deb6ad90f410d1baff5342d868d9b04cc558622f6a788ae0eaa48
|
7
|
+
data.tar.gz: a41bdfaef30dd124fe97b28803922ed61f95d0107d059243f6a9807da041cd2b29613e0c7146388d59e5485249a6555cd3bb46d64b9769c5de1aae2288b760ce
|
File without changes
|
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.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
@@ -344,36 +344,21 @@ files:
|
|
344
344
|
- README.md
|
345
345
|
- README.rdoc
|
346
346
|
- Rakefile
|
347
|
-
- app/assets/config/thecore_settings_manifest.js
|
348
|
-
- app/assets/images/thecore_settings/.keep
|
349
|
-
- app/assets/javascripts/thecore_settings/.keep
|
350
|
-
- app/assets/stylesheets/rich/editor.css
|
351
|
-
- app/assets/stylesheets/thecore_settings/.keep
|
352
|
-
- app/controllers/.keep
|
353
|
-
- app/helpers/.keep
|
354
|
-
- app/mailers/.keep
|
355
347
|
- app/models/.keep
|
356
348
|
- app/models/thecore_settings/setting.rb
|
357
349
|
- app/views/.keep
|
358
350
|
- app/views/rails_admin/main/_setting_value.html.haml
|
359
|
-
- assets/javascripts/rails_admin/custom/thecore_settings.rb
|
360
351
|
- bin/rails
|
361
|
-
- config/initializers/rails_admin_requirements.rb
|
362
|
-
- config/initializers/thecore_settings_abilities.rb
|
363
|
-
- config/initializers/thecore_settings_post_init.rb
|
364
352
|
- config/locales/en.yml
|
353
|
+
- config/locales/it.yml
|
365
354
|
- config/locales/pt-BR.yml
|
366
355
|
- config/locales/ru.yml
|
367
|
-
- config/locales/thecore_settings.it.yml
|
368
|
-
- config/routes.rb
|
369
356
|
- db/migrate/20161227101954_create_rails_admin_settings.rb
|
370
|
-
- db/migrate/20161227101956_add_app_name.rb
|
371
357
|
- gemfiles/mongoid-6.0.gemfile
|
372
358
|
- gemfiles/mongoid-6.3.gemfile
|
373
359
|
- lib/generators/thecore_settings/migration_generator.rb
|
374
360
|
- lib/generators/thecore_settings/templates/db/migrate/20161227101954_create_thecore_settings.rb
|
375
361
|
- lib/generators/thecore_settings/templates/migration.rb
|
376
|
-
- lib/tasks/thecore_settings_tasks.rake
|
377
362
|
- lib/thecore_settings.rb
|
378
363
|
- lib/thecore_settings/determine_mime_type.rb
|
379
364
|
- lib/thecore_settings/dumper.rb
|
@@ -393,7 +378,6 @@ files:
|
|
393
378
|
- lib/thecore_settings/uploads.rb
|
394
379
|
- lib/thecore_settings/validation.rb
|
395
380
|
- lib/thecore_settings/version.rb
|
396
|
-
- log/development.log
|
397
381
|
- spec/advanced_usage_spec.rb
|
398
382
|
- spec/carrierwave_spec.rb
|
399
383
|
- spec/database_trickery_spec.rb
|
@@ -415,68 +399,6 @@ files:
|
|
415
399
|
- spec/support/mongoid.rb
|
416
400
|
- spec/support/mongoid.yml
|
417
401
|
- spec/types_spec.rb
|
418
|
-
- test/dummy/Rakefile
|
419
|
-
- test/dummy/app/assets/config/manifest.js
|
420
|
-
- test/dummy/app/assets/images/.keep
|
421
|
-
- test/dummy/app/assets/javascripts/application.js
|
422
|
-
- test/dummy/app/assets/javascripts/cable.js
|
423
|
-
- test/dummy/app/assets/javascripts/channels/.keep
|
424
|
-
- test/dummy/app/assets/stylesheets/application.css
|
425
|
-
- test/dummy/app/channels/application_cable/channel.rb
|
426
|
-
- test/dummy/app/channels/application_cable/connection.rb
|
427
|
-
- test/dummy/app/controllers/application_controller.rb
|
428
|
-
- test/dummy/app/controllers/concerns/.keep
|
429
|
-
- test/dummy/app/helpers/application_helper.rb
|
430
|
-
- test/dummy/app/jobs/application_job.rb
|
431
|
-
- test/dummy/app/mailers/application_mailer.rb
|
432
|
-
- test/dummy/app/models/application_record.rb
|
433
|
-
- test/dummy/app/models/concerns/.keep
|
434
|
-
- test/dummy/app/views/layouts/application.html.erb
|
435
|
-
- test/dummy/app/views/layouts/mailer.html.erb
|
436
|
-
- test/dummy/app/views/layouts/mailer.text.erb
|
437
|
-
- test/dummy/bin/bundle
|
438
|
-
- test/dummy/bin/rails
|
439
|
-
- test/dummy/bin/rake
|
440
|
-
- test/dummy/bin/setup
|
441
|
-
- test/dummy/bin/update
|
442
|
-
- test/dummy/config.ru
|
443
|
-
- test/dummy/config/application.rb
|
444
|
-
- test/dummy/config/boot.rb
|
445
|
-
- test/dummy/config/cable.yml
|
446
|
-
- test/dummy/config/database.yml
|
447
|
-
- test/dummy/config/environment.rb
|
448
|
-
- test/dummy/config/environments/development.rb
|
449
|
-
- test/dummy/config/environments/production.rb
|
450
|
-
- test/dummy/config/environments/test.rb
|
451
|
-
- test/dummy/config/initializers/application_controller_renderer.rb
|
452
|
-
- test/dummy/config/initializers/assets.rb
|
453
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
454
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
455
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
456
|
-
- test/dummy/config/initializers/inflections.rb
|
457
|
-
- test/dummy/config/initializers/mime_types.rb
|
458
|
-
- test/dummy/config/initializers/new_framework_defaults.rb
|
459
|
-
- test/dummy/config/initializers/session_store.rb
|
460
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
461
|
-
- test/dummy/config/locales/en.yml
|
462
|
-
- test/dummy/config/puma.rb
|
463
|
-
- test/dummy/config/routes.rb
|
464
|
-
- test/dummy/config/secrets.yml
|
465
|
-
- test/dummy/config/spring.rb
|
466
|
-
- test/dummy/db/development.sqlite3
|
467
|
-
- test/dummy/lib/assets/.keep
|
468
|
-
- test/dummy/log/.keep
|
469
|
-
- test/dummy/log/development.log
|
470
|
-
- test/dummy/public/404.html
|
471
|
-
- test/dummy/public/422.html
|
472
|
-
- test/dummy/public/500.html
|
473
|
-
- test/dummy/public/apple-touch-icon-precomposed.png
|
474
|
-
- test/dummy/public/apple-touch-icon.png
|
475
|
-
- test/dummy/public/favicon.ico
|
476
|
-
- test/dummy/tmp/.keep
|
477
|
-
- test/integration/navigation_test.rb
|
478
|
-
- test/test_helper.rb
|
479
|
-
- test/thecore_settings_test.rb
|
480
402
|
- thecore_settings.gemspec
|
481
403
|
homepage: https://github.com/gabrieletassoni/thecore_settings
|
482
404
|
licenses:
|
@@ -523,65 +445,3 @@ test_files:
|
|
523
445
|
- spec/support/mongoid.rb
|
524
446
|
- spec/support/mongoid.yml
|
525
447
|
- spec/types_spec.rb
|
526
|
-
- test/dummy/Rakefile
|
527
|
-
- test/dummy/app/assets/config/manifest.js
|
528
|
-
- test/dummy/app/assets/images/.keep
|
529
|
-
- test/dummy/app/assets/javascripts/application.js
|
530
|
-
- test/dummy/app/assets/javascripts/cable.js
|
531
|
-
- test/dummy/app/assets/javascripts/channels/.keep
|
532
|
-
- test/dummy/app/assets/stylesheets/application.css
|
533
|
-
- test/dummy/app/channels/application_cable/channel.rb
|
534
|
-
- test/dummy/app/channels/application_cable/connection.rb
|
535
|
-
- test/dummy/app/controllers/application_controller.rb
|
536
|
-
- test/dummy/app/controllers/concerns/.keep
|
537
|
-
- test/dummy/app/helpers/application_helper.rb
|
538
|
-
- test/dummy/app/jobs/application_job.rb
|
539
|
-
- test/dummy/app/mailers/application_mailer.rb
|
540
|
-
- test/dummy/app/models/application_record.rb
|
541
|
-
- test/dummy/app/models/concerns/.keep
|
542
|
-
- test/dummy/app/views/layouts/application.html.erb
|
543
|
-
- test/dummy/app/views/layouts/mailer.html.erb
|
544
|
-
- test/dummy/app/views/layouts/mailer.text.erb
|
545
|
-
- test/dummy/bin/bundle
|
546
|
-
- test/dummy/bin/rails
|
547
|
-
- test/dummy/bin/rake
|
548
|
-
- test/dummy/bin/setup
|
549
|
-
- test/dummy/bin/update
|
550
|
-
- test/dummy/config.ru
|
551
|
-
- test/dummy/config/application.rb
|
552
|
-
- test/dummy/config/boot.rb
|
553
|
-
- test/dummy/config/cable.yml
|
554
|
-
- test/dummy/config/database.yml
|
555
|
-
- test/dummy/config/environment.rb
|
556
|
-
- test/dummy/config/environments/development.rb
|
557
|
-
- test/dummy/config/environments/production.rb
|
558
|
-
- test/dummy/config/environments/test.rb
|
559
|
-
- test/dummy/config/initializers/application_controller_renderer.rb
|
560
|
-
- test/dummy/config/initializers/assets.rb
|
561
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
562
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
563
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
564
|
-
- test/dummy/config/initializers/inflections.rb
|
565
|
-
- test/dummy/config/initializers/mime_types.rb
|
566
|
-
- test/dummy/config/initializers/new_framework_defaults.rb
|
567
|
-
- test/dummy/config/initializers/session_store.rb
|
568
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
569
|
-
- test/dummy/config/locales/en.yml
|
570
|
-
- test/dummy/config/puma.rb
|
571
|
-
- test/dummy/config/routes.rb
|
572
|
-
- test/dummy/config/secrets.yml
|
573
|
-
- test/dummy/config/spring.rb
|
574
|
-
- test/dummy/db/development.sqlite3
|
575
|
-
- test/dummy/lib/assets/.keep
|
576
|
-
- test/dummy/log/.keep
|
577
|
-
- test/dummy/log/development.log
|
578
|
-
- test/dummy/public/404.html
|
579
|
-
- test/dummy/public/422.html
|
580
|
-
- test/dummy/public/500.html
|
581
|
-
- test/dummy/public/apple-touch-icon-precomposed.png
|
582
|
-
- test/dummy/public/apple-touch-icon.png
|
583
|
-
- test/dummy/public/favicon.ico
|
584
|
-
- test/dummy/tmp/.keep
|
585
|
-
- test/integration/navigation_test.rb
|
586
|
-
- test/test_helper.rb
|
587
|
-
- test/thecore_settings_test.rb
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,20 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
This file defines the default set of CSS styles available in the Rich editor
|
3
|
-
*/
|
4
|
-
|
5
|
-
p.caption {
|
6
|
-
font-style: italic;
|
7
|
-
color: grey;
|
8
|
-
}
|
9
|
-
|
10
|
-
span.highlight {
|
11
|
-
background: yellow;
|
12
|
-
}
|
13
|
-
|
14
|
-
img.left {
|
15
|
-
float: left;
|
16
|
-
}
|
17
|
-
|
18
|
-
img.right {
|
19
|
-
float: right;
|
20
|
-
}
|
File without changes
|
data/app/controllers/.keep
DELETED
File without changes
|
data/app/helpers/.keep
DELETED
File without changes
|
data/app/mailers/.keep
DELETED
File without changes
|
@@ -1,22 +0,0 @@
|
|
1
|
-
module ThecoreSettings
|
2
|
-
module RailsAdminExtensionConfig
|
3
|
-
def self.included(base)
|
4
|
-
# IMPORTANT: To extend rails admin section in model, directly, instead of using concerns, I can
|
5
|
-
# extend the included method. Be sure to use a different module name, otherwis it will be overwritten
|
6
|
-
# See thecore_settings_rails_admin_model_extensions.rb initializer for a reference
|
7
|
-
# on how to extend rails_admin section of a model previously defined (say it's defined in another gem)
|
8
|
-
if base.respond_to?(:rails_admin)
|
9
|
-
base.rails_admin do
|
10
|
-
navigation_icon 'fa fa-cogs'
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
def display_name
|
15
|
-
"#{I18n.t "settings.namespaces.#{ns}", default: ns.titleize}: #{I18n.t "settings.names.#{name}", default: name.titleize}"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
# include the extension (loving mixins)
|
22
|
-
ThecoreSettings::Setting.send(:include, ThecoreSettings::RailsAdminExtensionConfig)
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'active_support/concern'
|
2
|
-
|
3
|
-
module TheCoreSettingsAbilitiesConcern
|
4
|
-
extend ActiveSupport::Concern
|
5
|
-
included do
|
6
|
-
def thecore_settings_abilities user
|
7
|
-
# Rails.logger.debug "Cannot Create"
|
8
|
-
cannot :create, ThecoreSettings::Setting
|
9
|
-
# Rails.logger.debug "Cannot Delete"
|
10
|
-
cannot :destroy, ThecoreSettings::Setting
|
11
|
-
cannot :show, ThecoreSettings::Setting
|
12
|
-
|
13
|
-
# cannot :manage, [ThecoreSettings::Setting]
|
14
|
-
# cannot :dashboard, [ThecoreSettings::Setting]
|
15
|
-
# # Pay attention to this errorTypeError (can't convert Class to Array (Class#to_ary gives String)):
|
16
|
-
# can [:index, :update], [ThecoreSettings::Setting] if user && user.admin?
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
# include the extension
|
22
|
-
TheCoreAbilities.send(:include, TheCoreSettingsAbilitiesConcern)
|
data/config/routes.rb
DELETED
data/log/development.log
DELETED
File without changes
|
data/test/dummy/Rakefile
DELETED
File without changes
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require_tree .
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// Action Cable provides the framework to deal with WebSockets in Rails.
|
2
|
-
// You can generate new channels where WebSocket features live using the rails generate channel command.
|
3
|
-
//
|
4
|
-
//= require action_cable
|
5
|
-
//= require_self
|
6
|
-
//= require_tree ./channels
|
7
|
-
|
8
|
-
(function() {
|
9
|
-
this.App || (this.App = {});
|
10
|
-
|
11
|
-
App.cable = ActionCable.createConsumer();
|
12
|
-
|
13
|
-
}).call(this);
|
File without changes
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
-
* It is generally better to create a new file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
File without changes
|
File without changes
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Dummy</title>
|
5
|
-
<%= csrf_meta_tags %>
|
6
|
-
|
7
|
-
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
8
|
-
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
9
|
-
</head>
|
10
|
-
|
11
|
-
<body>
|
12
|
-
<%= yield %>
|
13
|
-
</body>
|
14
|
-
</html>
|