lato 0.1.1 → 0.1.3

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: 35641215c74d12469c1e12d24cbb40f37672c19c06967818e7857b33a56be65f
4
- data.tar.gz: 0f81f2e7a01a69e57f3f792ba4e796c8dfa3f09c748d0b0104d1fea16c54720d
3
+ metadata.gz: 8f93bc619b22e4fe6f7724048660ec707a7361024f8a63fbe5b86d776e1ff79d
4
+ data.tar.gz: 2ea9648ea293e200ec802c79f52c191df2d7d93b0e1b89e7c2d76e0b60ddca50
5
5
  SHA512:
6
- metadata.gz: bc8ea7e3c1875fd98812fec35452084e26d2c26dd17dc75dd99845227712f459d60949cb48252584f5b8b1157dff9220d6a9374ea1ceda40d92a0d147868925d
7
- data.tar.gz: 540c632a0c0289de088f2c0f88947d9b8bd7bbe8476590eb728df94fe40495bc5a1b5101c41f17e9ef33cf77f624d937daba35d3f81ec59207b7d341f07943ed
6
+ metadata.gz: 8aca32e573168d25062aa6b8548a5230cf31a692dbb9cafb6b4c8ee10552bf79c837f985d2affd916dc328638b4bd461cde21276e2301c500a874a7d055fb327
7
+ data.tar.gz: b7752b7409811ac7e6ddd609416f9d94b7712f42130a5ad59cdc0201934f5bfb81f0c47ad65ca2246760843fd48d1fb2bde59a8a19355dac8348208abc78708a
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
 
@@ -153,6 +153,18 @@ module Lato
153
153
  end
154
154
  end
155
155
 
156
+ def lato_form_item_input_select(form, key, select_options = [], options = {})
157
+ _lato_form_input_options(form, key, options, :keyup, 'form-control')
158
+
159
+ form.select key, select_options, {}, options
160
+ end
161
+
162
+ def lato_form_item_input_file(form, key, options = {})
163
+ _lato_form_input_options(form, key, options, :keyup, 'form-control')
164
+
165
+ form.file_field key, options
166
+ end
167
+
156
168
  def lato_form_submit(form, label, options = {})
157
169
  options[:class] ||= []
158
170
  options[:class].push('btn')
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
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.1
4
+ version: 0.1.3
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