form_props 0.0.7 → 0.1.0

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: 90a1bcba67478294801b8ede3004d15a41d78eafa3cd7b55a2d533749979c887
4
- data.tar.gz: 1cceaf16df12dad4a4570809a745fca0046c2d616e44a2fb1bce374a83e71c03
3
+ metadata.gz: e27a5343fb9e2ffcc08684bcfc28f6091af55299cfc8cb7a4bc8c142d441fc6d
4
+ data.tar.gz: dc9e8add0d4afdff58b42bcd495917cc025ac43bf70ff55a385a234168e4a080
5
5
  SHA512:
6
- metadata.gz: b92a397b40ac479f7c54a8488b0134b7cdba4ce82cf0c581362134b06aea46ed24e8bfefda33f38b188e79c17c9214e39f6fd5c525c7892e11588e6cd149f9d3
7
- data.tar.gz: ac20f5814f8c0298758164dc6f26fa7b4a0ab793a4210d5f8bfda27ba10cf6f0c8aefe438b65539863342f1adc35fb67fc3159171141fcb26dfc4f0a55066020
6
+ metadata.gz: 8fbd73cafb16f2af98c4521313f4eec24b1dfdf8aa15270960fffc26382cf5992e054ead2a817093f18aae3eb11a75a1d31b1002c43adda5611750042f12aa12
7
+ data.tar.gz: 4fd151dafc319edcd54db12cfb8909c2eb70c0ae2c638235181d86b0ce5f0a7dbe9a7c052d6097ab9c6d4435a7810fcb1e2ea433b72f564bb3940da8e5d64c11
data/README.md CHANGED
@@ -31,7 +31,7 @@ and `bundle install`
31
31
  ```ruby
32
32
  json.some_form do
33
33
  form_props(@post) do |f|
34
- f.text :title
34
+ f.text_field :title
35
35
  f.submit
36
36
  end
37
37
  end
@@ -45,7 +45,7 @@ module FormProps
45
45
  extra_props_for_form(json, html_options)
46
46
  end
47
47
 
48
- json.props(FormProps::Helper.format_keys(html_options))
48
+ json.form(FormProps::Helper.format_keys(html_options))
49
49
  end
50
50
 
51
51
  private
@@ -102,7 +102,7 @@ module FormProps
102
102
  end
103
103
 
104
104
  def radio_button(method, tag_value, options = {})
105
- Inputs::RadioButton.new(@object_name, method, @template, tag_value, options).render
105
+ Inputs::RadioButton.new(@object_name, method, @template, tag_value, objectify_options(options)).render
106
106
  end
107
107
 
108
108
  def collection_select(method, collection, value_method, text_method, options = {}, html_options = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FormProps
4
- VERSION = "0.0.7"
4
+ VERSION = "0.1.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: form_props
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johny Ho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-05 00:00:00.000000000 Z
11
+ date: 2024-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubygems_version: 3.1.4
118
+ rubygems_version: 3.5.22
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: Form props is a Rails form builder that renders form attributes in JSON