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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9e258f0b06620fbd4e7ed61bbf524913fd9ae79b9c987015e3aaa6a5adf4156
4
- data.tar.gz: c8ed48c5d805cebf6cfd21a5c3ce1b7f2992b92ac05579b8e475237b0b9dbf2c
3
+ metadata.gz: 2c8df10dce1936e269f794531e4d480716507e93686e45b542a0e053bab8da8e
4
+ data.tar.gz: 5ec345be789e08bd52396435663618b87f698ec1b527586a75e8dc8cd60e0e0f
5
5
  SHA512:
6
- metadata.gz: 50c32f594a1e8f0b8986c73616a627bf344b8d0de33b7b418bcdc6f6db11781644ef06d59fb0b310c232d1907ec0a5abc6cefd01fa66238711d9c94e76fd69a0
7
- data.tar.gz: 6c4bbd2ae0c50b1a09be41cf465f903238ced16397dd66ea0ffe948cf37a183e266b165bfe3809e631e142bdd8f508b1a7cef5f05687c12b90e218831546dedc
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
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
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: 0.1.2
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-24 00:00:00.000000000 Z
11
+ date: 2022-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails