lato 3.14.6 → 3.14.8

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: 2c6664ab48177f66d9fb4290210f2d8390fe5b9c6bbbfd7ce90640edac41ed20
4
- data.tar.gz: 7aae0d3c205a4207dce4499ff73870d0fd08c360a145fff08763c8e5181e0a25
3
+ metadata.gz: b7a5fc0821fc0c4c0221e63511492e33a9314bf1191390c61976ebb1af70d6e4
4
+ data.tar.gz: 4e78f21c86a10c0ea54517e65ff81cb6a380496e0b0ec1c72994a3a558f5880a
5
5
  SHA512:
6
- metadata.gz: 157174be653d6fb1030c1963ad66f77e54ec9d4bf69896ee7e29dd781dfb31744d1cb5a5782d73c604da161852fcb26f6ecdaf9ad8d3e43caf7898089d63fda9
7
- data.tar.gz: 397e59f83ea024e125d97ded46a4616835ba8878bc0ab1f8c85d55d5e6d6e2d46ea682137db3171f987221da43ae2347d76699c4f51bafcb092a64da793a4341
6
+ metadata.gz: 5ac88fdeee151b4ddba181779e3fbe9346265adbac043548a02d50fa04d65a7e2bb28bbb47bc335b2da40b9182a1a552db5658f9fb100fcc6c00fe86b824869c
7
+ data.tar.gz: a217c3a7872cad406a4443caad7d47d6afe5b469143770314ac5e95f6a5edacdc38448122d2aaa1f9b83bf59aa90b8a42870841b6e60bb925ed6169a4f81be66
data/README.md CHANGED
@@ -19,7 +19,9 @@ The gem is ready to be used with the **latest Rails 7+** features like **[ESM im
19
19
 
20
20
  ## Full documentation
21
21
 
22
- The full documentation is available at: 👉 👉 [THIS LINK](https://lato-oss.gregoriogalante.com) 👈 👈
22
+ The full documentation is available here: 👉 👉 [DOCUMENTATION](https://lato-oss.gregoriogalante.com) 👈 👈
23
+
24
+ The `llm.txt` file with all the context to use with LLMs is available here: 👉 [LLM CONTEXT](https://github.com/Lato-org/lato/raw/refs/heads/main/docs/llm.txt) 👈
23
25
 
24
26
  You can also use the [Lato AI Agent](https://lato-oss.gregoriogalante.com/AI.html) directly on your browser to generate code and get helps with the gem.
25
27
 
@@ -50,14 +52,23 @@ gem "sassc-rails"
50
52
  gem "lato"
51
53
  ```
52
54
 
55
+ If not already present, add `app/assets/config/manifest.js` file with the following content:
56
+
57
+ ```js
58
+ //= link_tree ../images
59
+ //= link_directory ../stylesheets .css
60
+ //= link_tree ../../javascript .js
61
+ //= link_tree ../../../vendor/javascript .js
62
+ ```
63
+
53
64
  Install gem and run required tasks:
54
65
 
55
66
  ```bash
56
- $ bundle
57
- $ rails active_storage:install
58
- $ rails lato:install:application
59
- $ rails lato:install:migrations
60
- $ rails db:migrate
67
+ bundle
68
+ rails active_storage:install
69
+ rails lato:install:application
70
+ rails lato:install:migrations
71
+ rails db:migrate
61
72
  ```
62
73
 
63
74
  Mount lato routes on the **config/routes.rb** file:
@@ -106,29 +117,29 @@ Lato integrates by default a basic PWAs manifest and service worker. To re-gener
106
117
  3. Run the following commands:
107
118
 
108
119
  ```bash
109
- $ rails lato:generate:favicon
110
- $ rails lato:generate:pwa
120
+ rails lato:generate:favicon
121
+ rails lato:generate:pwa
111
122
  ```
112
123
 
113
124
  ## Development
114
125
 
115
126
  Clone repository, install dependencies, run migrations and start:
116
127
 
117
- ```shell
118
- $ git clone https://github.com/lato-org/lato
119
- $ cd lato
120
- $ bundle
121
- $ rails db:migrate
122
- $ rails db:seed
123
- $ foreman start -f Procfile.dev
128
+ ```bash
129
+ git clone https://github.com/lato-org/lato
130
+ cd lato
131
+ bundle
132
+ rails db:migrate
133
+ rails db:seed
134
+ foreman start -f Procfile.dev
124
135
  ```
125
136
 
126
137
  ### Publish
127
138
 
128
139
  This script will publish the gem to rubygems.org. Make sure you have the correct permissions and that you are logged in to your rubygems account.
129
140
 
130
- ```shell
131
- $ ruby ./bin/publish.rb
141
+ ```bash
142
+ ruby ./bin/publish.rb
132
143
  ```
133
144
 
134
145
  ### Generate documentation
@@ -137,8 +148,8 @@ This script will generate the documentation for the gem by exporting the Rails r
137
148
 
138
149
  Make sure to have the server running on port 3000 before running the script.
139
150
 
140
- ```shell
141
- $ ruby ./bin/generate_docs.rb
151
+ ```bash
152
+ ruby ./bin/generate_docs.rb
142
153
  ```
143
154
 
144
155
  ## License
@@ -9,8 +9,9 @@ export default class extends Controller {
9
9
  this.modal = new bootstrap.Modal(this.element)
10
10
  Turbo.setConfirmMethod(this.customConfirm.bind(this))
11
11
 
12
- this.element.style.zIndex = 2001
13
12
  this.element.addEventListener('show.bs.modal', () => {
13
+ this.element.style.zIndex = 2001
14
+
14
15
  // update backdrop z-index to be sure is always above other modals
15
16
  setTimeout(() => { // use setTimeout because bsModalBackdropElement is not always ready after 'show.bs.modal' event
16
17
  const bsModalBackdropElement = this.modal._backdrop._element
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "3.14.6"
2
+ VERSION = "3.14.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.6
4
+ version: 3.14.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-18 00:00:00.000000000 Z
11
+ date: 2025-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails