lato 0.1.2 → 0.1.4
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 +6 -0
- data/app/helpers/lato/components_helper.rb +18 -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: 2c8df10dce1936e269f794531e4d480716507e93686e45b542a0e053bab8da8e
|
4
|
+
data.tar.gz: 5ec345be789e08bd52396435663618b87f698ec1b527586a75e8dc8cd60e0e0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c5342b844effa5154b20415625da31bc645c9fc0a55202a526ca2677f9bca827e7533b19031b473bc5589f9363cb17b4f65e5924a2821a2f7bcc2f731e64be0
|
7
|
+
data.tar.gz: 01462524e3f3d18f9a04ae459f65be13a5489fe7e884c52f77a9c6fad025f5c6aa09bdcb2fe06b36e11a20e3c81e5a764be92dd0b38c439d7a422fe389c31832
|
data/README.md
CHANGED
@@ -87,6 +87,12 @@ $ rails db:migrate
|
|
87
87
|
$ foreman start -f Procfile.dev
|
88
88
|
```
|
89
89
|
|
90
|
+
## Publish
|
91
|
+
|
92
|
+
```shell
|
93
|
+
$ ruby bin/publish.rb
|
94
|
+
```
|
95
|
+
|
90
96
|
## License
|
91
97
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
92
98
|
|
@@ -130,6 +130,12 @@ module Lato
|
|
130
130
|
form.text_field key, options
|
131
131
|
end
|
132
132
|
|
133
|
+
def lato_form_item_input_number(form, key, options = {})
|
134
|
+
_lato_form_input_options(form, key, options, :keyup, 'form-control')
|
135
|
+
|
136
|
+
form.number_field key, options
|
137
|
+
end
|
138
|
+
|
133
139
|
def lato_form_item_input_email(form, key, options = {})
|
134
140
|
_lato_form_input_options(form, key, options, :keyup, 'form-control')
|
135
141
|
|
@@ -153,6 +159,18 @@ module Lato
|
|
153
159
|
end
|
154
160
|
end
|
155
161
|
|
162
|
+
def lato_form_item_input_select(form, key, select_options = [], options = {})
|
163
|
+
_lato_form_input_options(form, key, options, :keyup, 'form-control')
|
164
|
+
|
165
|
+
form.select key, select_options, {}, options
|
166
|
+
end
|
167
|
+
|
168
|
+
def lato_form_item_input_file(form, key, options = {})
|
169
|
+
_lato_form_input_options(form, key, options, :keyup, 'form-control')
|
170
|
+
|
171
|
+
form.file_field key, options
|
172
|
+
end
|
173
|
+
|
156
174
|
def lato_form_submit(form, label, options = {})
|
157
175
|
options[:class] ||= []
|
158
176
|
options[:class].push('btn')
|
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: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregorio Galante
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|