lato 3.14.6 → 3.14.7
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/README.md +30 -19
- data/app/assets/javascripts/lato/controllers/lato_confirm_controller.js +3 -0
- data/lib/lato/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5b3771be073f4d95535eecc8c2ea3b9804a008595a4a888e4a502d095fe97d7
|
|
4
|
+
data.tar.gz: bc9f33dbcec742df3302b2e400bcdd39e2a82abe8fa8255b8fef3fb9fa557135
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ee934fed00dc3921730aa39ede9695afd4139d109dcd762ed769523eee375f179e68b364b69679419e26c435ca6ae16fb9a9d9cf89c00dec9f5bd0faa0d3c91
|
|
7
|
+
data.tar.gz: 1a5219655c1990e103fa2c5362d173b812d17fcd58cb0d031fc38ab0784e6bf1f199293d5edb20cbbab0558d4838236f9c923a2f7df1d9579cb4dfdb16f83cf9
|
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
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
110
|
-
|
|
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
|
-
```
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
```
|
|
131
|
-
|
|
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
|
-
```
|
|
141
|
-
|
|
151
|
+
```bash
|
|
152
|
+
ruby ./bin/generate_docs.rb
|
|
142
153
|
```
|
|
143
154
|
|
|
144
155
|
## License
|
|
@@ -32,6 +32,9 @@ export default class extends Controller {
|
|
|
32
32
|
await new Promise(resolve => setTimeout(resolve, 100))
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
// add another await to ensure modal is fully hidden before returning
|
|
36
|
+
await new Promise(resolve => setTimeout(resolve, 500))
|
|
37
|
+
|
|
35
38
|
return this._result
|
|
36
39
|
}
|
|
37
40
|
|
data/lib/lato/version.rb
CHANGED
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.
|
|
4
|
+
version: 3.14.7
|
|
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-
|
|
11
|
+
date: 2025-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|