lato_settings 3.0.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 +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +53 -0
- data/Rakefile +8 -0
- data/app/assets/config/lato_settings_manifest.js +3 -0
- data/app/assets/javascripts/lato_settings/application.js +1 -0
- data/app/assets/javascripts/lato_settings/controllers/lato_settings_form_controller.js +25 -0
- data/app/assets/stylesheets/lato_settings/application.scss +15 -0
- data/app/controllers/lato_settings/application_controller.rb +20 -0
- data/app/controllers/lato_settings/settings_controller.rb +52 -0
- data/app/helpers/lato_settings/application_helper.rb +4 -0
- data/app/helpers/lato_settings/settings_helper.rb +26 -0
- data/app/jobs/lato_settings/application_job.rb +4 -0
- data/app/mailers/lato_settings/application_mailer.rb +6 -0
- data/app/models/lato_settings/setting.rb +81 -0
- data/app/views/lato_settings/settings/_form.html.erb +65 -0
- data/app/views/lato_settings/settings/edit.html.erb +13 -0
- data/app/views/lato_settings/settings/index.html.erb +17 -0
- data/app/views/lato_settings/settings/new.html.erb +13 -0
- data/config/importmap.rb +2 -0
- data/config/locales/en.yml +9 -0
- data/config/locales/it.yml +19 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20250328072343_add_lato_settings_admin_to_lato_user.rb +5 -0
- data/db/migrate/20250328073205_create_lato_settings_settings.rb +14 -0
- data/lib/lato_settings/config.rb +10 -0
- data/lib/lato_settings/engine.rb +13 -0
- data/lib/lato_settings/version.rb +3 -0
- data/lib/lato_settings.rb +15 -0
- data/lib/tasks/lato_settings_tasks.rake +11 -0
- metadata +102 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2dcd1304f183f4e1015babad8e49462c70ebd80eebe262a7e01389e2831fb69e
|
4
|
+
data.tar.gz: 724e4bb40693ab298e25f1f8754e384da6d8c66f4fa8bdc19418e47051f13403
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 326b908f481fc40495c6518cdf05ed96d47db3d6daba68792ca9c294b1be3920a5c73419349a6c9c642b5c23959a68191c9c7c03d7c33d89b79684c90d94ef6b
|
7
|
+
data.tar.gz: 3f33964e6f1be79b250e882f83b02ed8d9d476c1069214712bd4d997b961a295bdc37d9af7fd28c7b0ae1f1169434ef5792970622920f4f00d0489f3fc615521
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright Gregorio Galante
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# Lato Settings
|
2
|
+
Manage application settings on Lato projects.
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
Add required dependencies to your application's Gemfile:
|
6
|
+
|
7
|
+
```ruby
|
8
|
+
# Use lato as application panel
|
9
|
+
gem "lato"
|
10
|
+
gem "lato_settings"
|
11
|
+
```
|
12
|
+
|
13
|
+
Install gem and run required tasks:
|
14
|
+
|
15
|
+
```bash
|
16
|
+
$ bundle
|
17
|
+
$ rails lato_settings:install:application
|
18
|
+
$ rails lato_settings:install:migrations
|
19
|
+
$ rails db:migrate
|
20
|
+
```
|
21
|
+
|
22
|
+
Mount lato settings routes on the **config/routes.rb** file:
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
Rails.application.routes.draw do
|
26
|
+
mount LatoSettings::Engine => "/lato-settings"
|
27
|
+
|
28
|
+
# ....
|
29
|
+
end
|
30
|
+
```
|
31
|
+
|
32
|
+
## Development
|
33
|
+
|
34
|
+
Clone repository, install dependencies, run migrations and start:
|
35
|
+
|
36
|
+
```shell
|
37
|
+
$ git clone https://github.com/Lato-GAM/lato_settings
|
38
|
+
$ cd lato_settings
|
39
|
+
$ bundle
|
40
|
+
$ rails db:migrate
|
41
|
+
$ rails db:seed
|
42
|
+
$ foreman start -f Procfile.dev
|
43
|
+
```
|
44
|
+
|
45
|
+
## Publish
|
46
|
+
|
47
|
+
```shell
|
48
|
+
$ ruby ./bin/publish.rb
|
49
|
+
```
|
50
|
+
|
51
|
+
## License
|
52
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
53
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
console.log("Lato Settings JS loaded");
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Controller } from "@hotwired/stimulus"
|
2
|
+
|
3
|
+
export default class extends Controller {
|
4
|
+
static targets = [
|
5
|
+
"inputTypology",
|
6
|
+
"linkTypologySelected"
|
7
|
+
]
|
8
|
+
|
9
|
+
connect() {
|
10
|
+
this.onInputTypologyChange = this.onInputTypologyChange.bind(this)
|
11
|
+
|
12
|
+
if (this.hasInputTypologyTarget && this.hasLinkTypologySelectedTarget) {
|
13
|
+
this.inputTypologyTarget.addEventListener("change", this.onInputTypologyChange)
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
onInputTypologyChange(event) {
|
18
|
+
if (!this.hasInputTypologyTarget) return
|
19
|
+
if (!this.hasLinkTypologySelectedTarget) return
|
20
|
+
if (!event.target.value) return
|
21
|
+
|
22
|
+
this.linkTypologySelectedTarget.href = this.linkTypologySelectedTarget.href.replace(/typology=[^&]*/, `typology=${event.target.value}`)
|
23
|
+
this.linkTypologySelectedTarget.click()
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module LatoSettings
|
2
|
+
class ApplicationController < Lato::ApplicationController
|
3
|
+
layout 'lato/application'
|
4
|
+
before_action :authenticate_session
|
5
|
+
before_action :authenticate_lato_settings_admin
|
6
|
+
before_action { active_sidebar(:lato_settings); active_navbar(:lato_settings) }
|
7
|
+
|
8
|
+
def index
|
9
|
+
redirect_to lato_settings.settings_path
|
10
|
+
end
|
11
|
+
|
12
|
+
protected
|
13
|
+
|
14
|
+
def authenticate_lato_settings_admin
|
15
|
+
return true if @session.user.lato_settings_admin
|
16
|
+
|
17
|
+
redirect_to lato.root_path, alert: 'You have not access to this section.'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
module LatoSettings
|
2
|
+
class SettingsController < ApplicationController
|
3
|
+
def index
|
4
|
+
@settings = lato_index_collection(
|
5
|
+
Setting.all,
|
6
|
+
columns: %i[key label value updated_at actions],
|
7
|
+
searchable_columns: %i[key label value],
|
8
|
+
sortable_columns: %i[updated_at],
|
9
|
+
pagination: true,
|
10
|
+
default_sort_by: "key|asc"
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
14
|
+
def new
|
15
|
+
@setting = Setting.new(typology: params[:typology])
|
16
|
+
end
|
17
|
+
|
18
|
+
def create
|
19
|
+
@setting = Setting.new(setting_params)
|
20
|
+
if @setting.save
|
21
|
+
redirect_to settings_path
|
22
|
+
else
|
23
|
+
render 'new'
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def edit
|
28
|
+
@setting = Setting.find(params[:id])
|
29
|
+
end
|
30
|
+
|
31
|
+
def update
|
32
|
+
@setting = Setting.find(params[:id])
|
33
|
+
if @setting.update(setting_params)
|
34
|
+
redirect_to settings_path
|
35
|
+
else
|
36
|
+
render 'edit'
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def destroy
|
41
|
+
@setting = Setting.find(params[:id])
|
42
|
+
@setting.destroy
|
43
|
+
redirect_to settings_path
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
def setting_params
|
49
|
+
params.require(:setting).permit(:key, :value, :label, :description, :typology)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module LatoSettings
|
2
|
+
module SettingsHelper
|
3
|
+
def lato_settings_setting_label(setting)
|
4
|
+
content_tag(:div, class: 'd-flex flex-column') do
|
5
|
+
concat content_tag(:strong, setting.label)
|
6
|
+
if setting.description
|
7
|
+
concat content_tag(:small, setting.description, class: 'text-muted')
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def lato_settings_setting_updated_at(setting)
|
13
|
+
setting.updated_at.strftime('%d/%m/%Y %H:%M')
|
14
|
+
end
|
15
|
+
|
16
|
+
def lato_settings_setting_actions(setting)
|
17
|
+
content_tag(:div, class: 'btn-group btn-group-sm') do
|
18
|
+
concat link_to(I18n.t('lato_settings.cta_edit'), lato_settings.edit_setting_path(setting), class: 'btn btn-primary', data: { lato_action_target: 'trigger', turbo_frame: dom_id(setting, 'form'), action_title: I18n.t('lato_settings.edit_setting') })
|
19
|
+
|
20
|
+
unless setting.required
|
21
|
+
concat link_to(I18n.t('lato_settings.cta_delete'), lato_settings.setting_path(setting), class: 'btn btn-danger', data: { turbo_confirm: 'Are you sure?', turbo_method: :delete })
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
module LatoSettings
|
2
|
+
class Setting < ApplicationRecord
|
3
|
+
attr_accessor :actions
|
4
|
+
|
5
|
+
enum :typology, {
|
6
|
+
string: 0,
|
7
|
+
number: 1,
|
8
|
+
date: 2,
|
9
|
+
select: 3,
|
10
|
+
}, prefix: true
|
11
|
+
|
12
|
+
validates :key, presence: true, uniqueness: true, format: { with: /\A[a-zA-Z0-9_]+\z/ }
|
13
|
+
validates :typology, presence: true
|
14
|
+
validates :value, presence: true
|
15
|
+
validates :label, presence: true
|
16
|
+
|
17
|
+
# Hooks
|
18
|
+
##
|
19
|
+
|
20
|
+
# normalize key before validation
|
21
|
+
before_validation do
|
22
|
+
self.key = key&.to_s&.downcase&.parameterize&.underscore
|
23
|
+
end
|
24
|
+
|
25
|
+
# do not permit destroy if required is true
|
26
|
+
before_destroy do
|
27
|
+
throw(:abort) if required
|
28
|
+
end
|
29
|
+
|
30
|
+
after_save :reload_cache
|
31
|
+
after_destroy :reload_cache
|
32
|
+
def reload_cache
|
33
|
+
Rails.cache.delete('LatoSettings::Setting/cache')
|
34
|
+
@@cache = nil
|
35
|
+
end
|
36
|
+
|
37
|
+
# Helpers
|
38
|
+
##
|
39
|
+
|
40
|
+
def option_min
|
41
|
+
options&.dig('min') || nil
|
42
|
+
end
|
43
|
+
|
44
|
+
def option_max
|
45
|
+
options&.dig('max') || nil
|
46
|
+
end
|
47
|
+
|
48
|
+
def option_step
|
49
|
+
options&.dig('step') || 1
|
50
|
+
end
|
51
|
+
|
52
|
+
def option_values
|
53
|
+
options&.dig('values') || []
|
54
|
+
end
|
55
|
+
|
56
|
+
# Class
|
57
|
+
##
|
58
|
+
|
59
|
+
def self.get(key, default = nil)
|
60
|
+
load_cache
|
61
|
+
|
62
|
+
@@cache[key] || default
|
63
|
+
end
|
64
|
+
|
65
|
+
def self.load_cache
|
66
|
+
return true if defined?(@@cache) && @@cache
|
67
|
+
|
68
|
+
@@cache = Rails.cache.fetch('LatoSettings::Setting/cache') do
|
69
|
+
cache = {}
|
70
|
+
LatoSettings::Setting.all.select(:key, :value, :typology).each do |setting|
|
71
|
+
cache[setting.key] = setting.value
|
72
|
+
end
|
73
|
+
|
74
|
+
cache
|
75
|
+
end
|
76
|
+
|
77
|
+
true
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
<%
|
2
|
+
|
3
|
+
setting ||= LatoSettings::Setting.new
|
4
|
+
|
5
|
+
%>
|
6
|
+
|
7
|
+
<%= turbo_frame_tag dom_id(setting, 'form') do %>
|
8
|
+
<%= form_with model: setting, url: setting.persisted? ? lato_settings.setting_path(setting) : lato_settings.settings_path, data: { turbo_frame: '_self', controller: 'lato-form lato-settings-form' } do |form| %>
|
9
|
+
<%= lato_form_notices class: %w[mb-3] %>
|
10
|
+
<%= lato_form_errors setting, class: %w[mb-3] %>
|
11
|
+
|
12
|
+
<% if setting.typology %>
|
13
|
+
<%= form.hidden_field :typology %>
|
14
|
+
|
15
|
+
<div class="mb-3">
|
16
|
+
<%= lato_form_item_label form, :key %>
|
17
|
+
<%= lato_form_item_input_text form, :key, required: true, disabled: setting.persisted? %>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<% if setting.typology == 'number' %>
|
21
|
+
<div class="mb-3">
|
22
|
+
<%= lato_form_item_label form, :value %>
|
23
|
+
<%= lato_form_item_input_number form, :value, required: true, min: setting.option_min, max: setting.option_max, step: setting.option_step %>
|
24
|
+
</div>
|
25
|
+
<% elsif setting.typology == 'date' %>
|
26
|
+
<div class="mb-3">
|
27
|
+
<%= lato_form_item_label form, :value %>
|
28
|
+
<%= lato_form_item_input_date form, :value, required: true, min: setting.option_min, max: setting.option_max %>
|
29
|
+
</div>
|
30
|
+
<% elsif setting.typology == 'select' %>
|
31
|
+
<div class="mb-3">
|
32
|
+
<%= lato_form_item_label form, :value %>
|
33
|
+
<%= lato_form_item_input_select form, :value, options_for_select(setting.option_values, setting.value), required: true %>
|
34
|
+
</div>
|
35
|
+
<% else %>
|
36
|
+
<div class="mb-3">
|
37
|
+
<%= lato_form_item_label form, :value %>
|
38
|
+
<%= lato_form_item_input_text form, :value, required: true %>
|
39
|
+
</div>
|
40
|
+
<% end %>
|
41
|
+
|
42
|
+
<div class="mb-3">
|
43
|
+
<%= lato_form_item_label form, :label %>
|
44
|
+
<%= lato_form_item_input_text form, :label, required: true %>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div class="mb-3">
|
48
|
+
<%= lato_form_item_label form, :description %>
|
49
|
+
<%= lato_form_item_input_textarea form, :description %>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
<div class="d-flex justify-content-end">
|
53
|
+
<%= lato_form_submit form, setting.persisted? ? I18n.t('lato_settings.cta_update') : I18n.t('lato_settings.cta_confirm'), class: %w[btn-success] %>
|
54
|
+
</div>
|
55
|
+
<% elsif !setting.persisted? %>
|
56
|
+
<div class="mb-3">
|
57
|
+
<%= lato_form_item_label form, :typology %>
|
58
|
+
<%= lato_form_item_input_select form, :typology, options_for_select(LatoSettings::Setting.typologies.keys.map { |s| [s.humanize, s] }, setting.typology), required: true, data: { lato_settings_form_target: 'inputTypology' } %>
|
59
|
+
</div>
|
60
|
+
|
61
|
+
<%= link_to '', lato_settings.new_setting_path(typology: ''), class: 'd-none', data: { lato_settings_form_target: 'linkTypologySelected' } %>
|
62
|
+
<% end %>
|
63
|
+
|
64
|
+
<% end %>
|
65
|
+
<% end %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<%= lato_page_head I18n.t('lato_settings.edit_setting'), [
|
2
|
+
{ label: I18n.t('lato_settings.settings'), path: lato_settings.settings_path },
|
3
|
+
{ label: I18n.t('lato_settings.edit_setting') }
|
4
|
+
] %>
|
5
|
+
|
6
|
+
<div class="card mb-4">
|
7
|
+
<div class="card-header">
|
8
|
+
<h2 class="fs-4 mb-0"><%= I18n.t('lato_settings.edit_setting') %></h2>
|
9
|
+
</div>
|
10
|
+
<div class="card-body">
|
11
|
+
<%= render 'lato_settings/settings/form', setting: @setting %>
|
12
|
+
</div>
|
13
|
+
</div>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<%= lato_page_head I18n.t('lato_settings.settings') %>
|
2
|
+
|
3
|
+
<div class="card mb-4">
|
4
|
+
<div class="card-body">
|
5
|
+
<%= lato_index @settings,
|
6
|
+
custom_actions: {
|
7
|
+
create: {
|
8
|
+
path: lato_settings.new_setting_path,
|
9
|
+
icon: 'bi bi-plus',
|
10
|
+
aria_label: I18n.t('lato_settings.add_setting'),
|
11
|
+
title: I18n.t('lato_settings.add_setting'),
|
12
|
+
data: { lato_action_target: 'trigger', turbo_frame: dom_id(LatoSettings::Setting.new, 'form'), action_title: I18n.t('lato_settings.add_setting') },
|
13
|
+
}
|
14
|
+
}
|
15
|
+
%>
|
16
|
+
</div>
|
17
|
+
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<%= lato_page_head I18n.t('lato_settings.add_setting'), [
|
2
|
+
{ label: I18n.t('lato_settings.settings'), path: lato_settings.settings_path },
|
3
|
+
{ label: I18n.t('lato_settings.add_setting') }
|
4
|
+
] %>
|
5
|
+
|
6
|
+
<div class="card mb-4">
|
7
|
+
<div class="card-header">
|
8
|
+
<h2 class="fs-4 mb-0"><%= I18n.t('lato_settings.add_setting') %></h2>
|
9
|
+
</div>
|
10
|
+
<div class="card-body">
|
11
|
+
<%= render 'lato_settings/settings/form', setting: @setting %>
|
12
|
+
</div>
|
13
|
+
</div>
|
data/config/importmap.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
it:
|
2
|
+
lato_settings:
|
3
|
+
settings: Impostazioni
|
4
|
+
add_setting: Aggiungi Impostazione
|
5
|
+
edit_setting: Modifica Impostazione
|
6
|
+
cta_edit: Modifica
|
7
|
+
cta_update: Aggiorna
|
8
|
+
cta_delete: Cancella
|
9
|
+
cta_confirm: Conferma
|
10
|
+
activerecord:
|
11
|
+
attributes:
|
12
|
+
lato_settings/setting:
|
13
|
+
typology: Tipologia
|
14
|
+
key: Chiave
|
15
|
+
label: Etichetta
|
16
|
+
value: Valore
|
17
|
+
description: Descrizione
|
18
|
+
updated_at: Aggiornato il
|
19
|
+
actions: Azioni
|
data/config/routes.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
class CreateLatoSettingsSettings < ActiveRecord::Migration[7.1]
|
2
|
+
def change
|
3
|
+
create_table :lato_settings_settings do |t|
|
4
|
+
t.string :key, null: false, index: { unique: true }
|
5
|
+
t.integer :typology, default: 0
|
6
|
+
t.string :value
|
7
|
+
t.string :label
|
8
|
+
t.string :description
|
9
|
+
t.boolean :required, default: false
|
10
|
+
t.json :options
|
11
|
+
t.timestamps
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module LatoSettings
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
isolate_namespace LatoSettings
|
4
|
+
|
5
|
+
initializer 'lato_settings.importmap', before: 'importmap' do |app|
|
6
|
+
app.config.importmap.paths << root.join('config/importmap.rb')
|
7
|
+
end
|
8
|
+
|
9
|
+
initializer "lato_settings.precompile" do |app|
|
10
|
+
app.config.assets.precompile << "lato_settings_manifest.js"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
namespace :lato_settings do
|
4
|
+
namespace :install do
|
5
|
+
desc 'Install Lato settings engine and run tasks on main rails application'
|
6
|
+
# Usage: rails lato_settings:install:application
|
7
|
+
task :application do
|
8
|
+
# Free for future use...
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lato_settings
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Gregorio Galante
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2025-03-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 7.1.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 7.1.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: lato
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: A Rails engine to manage application settings on Lato projects!
|
42
|
+
email:
|
43
|
+
- me@gregoriogalante.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- MIT-LICENSE
|
49
|
+
- README.md
|
50
|
+
- Rakefile
|
51
|
+
- app/assets/config/lato_settings_manifest.js
|
52
|
+
- app/assets/javascripts/lato_settings/application.js
|
53
|
+
- app/assets/javascripts/lato_settings/controllers/lato_settings_form_controller.js
|
54
|
+
- app/assets/stylesheets/lato_settings/application.scss
|
55
|
+
- app/controllers/lato_settings/application_controller.rb
|
56
|
+
- app/controllers/lato_settings/settings_controller.rb
|
57
|
+
- app/helpers/lato_settings/application_helper.rb
|
58
|
+
- app/helpers/lato_settings/settings_helper.rb
|
59
|
+
- app/jobs/lato_settings/application_job.rb
|
60
|
+
- app/mailers/lato_settings/application_mailer.rb
|
61
|
+
- app/models/lato_settings/setting.rb
|
62
|
+
- app/views/lato_settings/settings/_form.html.erb
|
63
|
+
- app/views/lato_settings/settings/edit.html.erb
|
64
|
+
- app/views/lato_settings/settings/index.html.erb
|
65
|
+
- app/views/lato_settings/settings/new.html.erb
|
66
|
+
- config/importmap.rb
|
67
|
+
- config/locales/en.yml
|
68
|
+
- config/locales/it.yml
|
69
|
+
- config/routes.rb
|
70
|
+
- db/migrate/20250328072343_add_lato_settings_admin_to_lato_user.rb
|
71
|
+
- db/migrate/20250328073205_create_lato_settings_settings.rb
|
72
|
+
- lib/lato_settings.rb
|
73
|
+
- lib/lato_settings/config.rb
|
74
|
+
- lib/lato_settings/engine.rb
|
75
|
+
- lib/lato_settings/version.rb
|
76
|
+
- lib/tasks/lato_settings_tasks.rake
|
77
|
+
homepage: https://github.com/Lato-org/lato_settings
|
78
|
+
licenses:
|
79
|
+
- MIT
|
80
|
+
metadata:
|
81
|
+
homepage_uri: https://github.com/Lato-org/lato_settings
|
82
|
+
source_code_uri: https://github.com/Lato-org/lato_settings
|
83
|
+
post_install_message:
|
84
|
+
rdoc_options: []
|
85
|
+
require_paths:
|
86
|
+
- lib
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
requirements: []
|
98
|
+
rubygems_version: 3.4.1
|
99
|
+
signing_key:
|
100
|
+
specification_version: 4
|
101
|
+
summary: Another engine for Lato projects
|
102
|
+
test_files: []
|