base_editing_bootstrap 1.16.1 → 2.0.1

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: 3976906e4cb5569db0d3eb2fa5a26d5d244f73f8ee684678e322c81169b8b5ce
4
- data.tar.gz: 49b3c0c7851fcbc1fea42b195b640d25c68341684596d47f3ce3f9aedde095c2
3
+ metadata.gz: 621ce2921cb1a39524a523807983ec5e099d0646d9eb06d40a15d4f8d59d9720
4
+ data.tar.gz: d7695f7d33150def36bdc1bf5ec357f4c6cb0367b5143ec152fb338d779fba5d
5
5
  SHA512:
6
- metadata.gz: 8169a66bf959a70659d7ea1346e39eb6760a17f757b076286aa134152d5c46d5fb11358a703a63f4646d2e707eb76f984591174793e33b2b11d41e1ce29c1378
7
- data.tar.gz: da247811ccebc922a14c7c42bbad9546795a9351d2db93bb4a27b453ca4648555f5cb167a39e2420a2d51c173645af150c96f94ae311de8d0fe6cc7bbf603154
6
+ metadata.gz: 3329ab7c65c74ff2e8b5e91a0f6e3d27f2599e8ad0800f02e53cdb9f70706145a879c147c5c6224d21ac602b2789c7cae531115e899a564060f2a953470b17c5
7
+ data.tar.gz: 56b1f76f086abb48c95e9a760af3d2cfc0f5e75bfe427119a74ebb990ef9e6d8fe1c69e559c9852eafa2db813546a0e461eb87449b8183ed4dc8639c18a324b6
data/AGENTS.md CHANGED
@@ -26,6 +26,14 @@ The project uses Docker for environment setup and testing.
26
26
  docker compose up
27
27
  ```
28
28
 
29
+ - **Matrix testing OUTSIDE of DOCKER COMPOSER**
30
+ Quando devi verificare una combinazione specifica di Ruby e Rails, analizza prima `bin/local_ci_matrix.sh` per capire come vengono selezionate le versioni e poi esegui direttamente la matrix dal root del progetto con i parametri richiesti.
31
+ Esempio:
32
+ ```bash
33
+ ./bin/local_ci_matrix.sh --ruby 3.4 --rails 8.1 --keep-docker-cache
34
+ ```
35
+ Usa questo flusso per validare la compatibilità della modifica prima di considerarla conclusa.
36
+
29
37
  ## Development Workflow
30
38
  - **Naming Conventions**: Follow standard Rails/Ruby naming conventions (snake_case for files and methods, CamelCase for classes).
31
39
  - **Git Flow**: Use descriptive commit messages. No specific branching strategy is enforced, but use feature branches.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
  All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
3
3
 
4
4
  - - -
5
+ ## 2.0.1 - 2026-09-17
6
+ #### Bug Fixes
7
+ - Correzione limitazione numero sub_elements in nested - (7cc9889) - Marino Bonetti
8
+
9
+ - - -
10
+
11
+ ## 2.0.0 - 2026-09-16
12
+ #### Features
13
+ - Titolo Custom nella index - (8b7f76c) - Marino Bonetti
14
+ #### Bug Fixes
15
+ - <span style="background-color: #d73a49; color: white; padding: 2px 6px; border-radius: 3px; font-weight: bold; font-size: 0.85em;">BREAKING</span>Resolve compatibility problem with ruby-rails and remove Rails 7.0 - (cee57ee) - Marino Bonetti
16
+ - Correzione versione - (c497766) - Marino Bonetti
17
+
18
+ - - -
19
+
5
20
  ## 1.16.1 - 2026-07-03
6
21
  #### Bug Fixes
7
22
  - Search buttons with full text customizations (#28) - (bfc0a62) - Marino Bonetti
data/README.md CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  ### Active tested on:
6
6
 
7
- * rails: 7.x,8.x
8
- * ruby: 3.x
7
+ * rails: (>=7.1),8.x
8
+ * ruby: >=3.1
9
9
 
10
10
  ## Installation
11
11
 
@@ -426,6 +426,11 @@ docker compose run app spec/dummy/bin/setup
426
426
  docker compose up
427
427
  ```
428
428
 
429
+ ### Test di tutte le versioni supportate
430
+ ```bash
431
+ ./bin/local_ci_matrix.sh
432
+ ```
433
+
429
434
  ## License
430
435
 
431
436
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -3,18 +3,24 @@ import NestedForm from "@stimulus-components/rails-nested-form"
3
3
  // Connects to data-controller="nested-form"
4
4
  export default class extends NestedForm {
5
5
 
6
+ connect() {
7
+ super.connect()
8
+ this.check_for_enabling_add_button();
9
+ }
10
+
11
+
6
12
  static values = {
7
13
  limit: Number,
8
14
  }
9
15
 
10
16
  add(e) {
11
17
  super.add(e);
12
- this.check_for_enabling_add_button(e);
18
+ this.check_for_enabling_add_button();
13
19
  }
14
20
 
15
21
  remove(e) {
16
22
  super.remove(e);
17
- this.check_for_enabling_add_button(e);
23
+ this.check_for_enabling_add_button();
18
24
  }
19
25
 
20
26
  // Elenco elementi presenti visibili (e quindi non settati per essere cancellati)
@@ -29,7 +35,7 @@ export default class extends NestedForm {
29
35
  return count;
30
36
  }
31
37
 
32
- check_for_enabling_add_button(e) {
38
+ check_for_enabling_add_button() {
33
39
  if (this.hasLimitValue) {
34
40
  if (this.total_active_elements() >= this.limitValue) {
35
41
  // Aggiungiamo classe disable sull'elemento che ha lanciato questo evento
@@ -1,6 +1,14 @@
1
1
  module Utilities::PageHelper
2
2
  include Utilities::IconHelper
3
3
 
4
+ ##
5
+ # Traduzione del titolo INDEX con possibilità di modificare intestazione rispetto a modello
6
+ # - Il default è il model_name plurale
7
+ # - Viene cercato la traduzione con la chiave titles.CHIAVE_I18N_MODELLO.index
8
+ def title_index(base_class)
9
+ t("titles.#{base_class.model_name.i18n_key}.index", default: base_class.model_name.human(count: 2))
10
+ end
11
+
4
12
  ##
5
13
  # Traduzione del titolo EDIT con possibilità di modificare intestazione rispetto a modello
6
14
  # - Il default è quello di Utilizzare la chiave .edit
@@ -1,7 +1,7 @@
1
1
  <div>
2
2
  <div class="row align-items-center">
3
3
  <div class="col-md-8 col-xs-8">
4
- <h2><%= base_class.model_name.human(count: 2) %></h2>
4
+ <h2><%= title_index(base_class) %></h2>
5
5
  </div>
6
6
  <div class="col-md-4 col-xs-4 text-end">
7
7
  <%= render 'index_main_buttons' %>
@@ -1 +1 @@
1
- 1.16.1
1
+ 2.0.1
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base_editing_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.1
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino Bonetti
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-07-03 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -444,7 +443,6 @@ licenses:
444
443
  metadata:
445
444
  source_code_uri: https://github.com/oniram88/BaseEditingBootstrap
446
445
  changelog_uri: https://github.com/oniram88/BaseEditingBootstrap/blob/main/CHANGELOG.md
447
- post_install_message:
448
446
  rdoc_options: []
449
447
  require_paths:
450
448
  - lib
@@ -459,8 +457,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
459
457
  - !ruby/object:Gem::Version
460
458
  version: '0'
461
459
  requirements: []
462
- rubygems_version: 3.5.16
463
- signing_key:
460
+ rubygems_version: 3.6.9
464
461
  specification_version: 4
465
462
  summary: 'BaseEditing: funzionalità di base per cms rails'
466
463
  test_files: []