view_component-form 0.2.7 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f44ea4d5228e0e3e42b68bac848d7806d73097cbbca8b27758d5f55b11ab0a94
4
- data.tar.gz: 1fa7588808ca2371b6b82679747292b22f3ba126ead0e870906d8ccbeef3845d
3
+ metadata.gz: 124aec584d29d1b7d181aa25ee3293d0719d9cf4c531f7a0d5cb5859b6be734b
4
+ data.tar.gz: b78538a52578b141f4c6d8eb45a92d80d8f7bf4f693a63acd9ce36fce80d8921
5
5
  SHA512:
6
- metadata.gz: 36cf6c62ac032457150a59a4a1e1e8208752e01a44b3372b87b9ef4c8573523159cd34337fd784fb733fba89b0ad871883e569d0f141b115c18c6fcbc95245da
7
- data.tar.gz: 985112bbfc1157644a3213b08fe4f4ca0375d5c76b0f58c4670083b8751a2134280a9e50fc50a4886320d61bdca227f207deac779de37b2fc58dd3cc86927a9b
6
+ metadata.gz: d18ac72e6c391c0466be730ab40c6d61ebbf807bc7d2f6a6fb53e35d6f9a23f223a0250e7cf87c6ad5bef507c84e63b141f21af1f2bbcd5baaca050b3b4ab904
7
+ data.tar.gz: 31353a6e4c1ff4547981b311229cfdfd01d590601a95b38688d357f4db02c5b2ccaed71cffdf1db1290d3a5bb515132eeecd2c1c0881cb00d5eae0da349b966d
data/CHANGELOG.md CHANGED
@@ -5,7 +5,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
- Nothing yet
8
+ Nothing yet.
9
+
10
+ ## [0.2.9] - 2024-11-09
11
+ ### Added
12
+ - Support for Rails 8.0 (#179)
13
+ ### Fixed
14
+ - Fix `object_errors` when `object` is `false` (#173)
15
+
16
+ ## [0.2.8] - 2024-08-20
17
+ ### Added
18
+ - Support for Rails 7.2 (#168)
9
19
 
10
20
  ## [0.2.7] - 2024-07-18
11
21
  ### Added
@@ -114,7 +124,9 @@ Nothing yet
114
124
  - Add CHANGELOG (#50)
115
125
  - Add CI (#2)
116
126
 
117
- [Unreleased]: https://github.com/pantographe/view_component-form/compare/v0.2.7...HEAD
127
+ [Unreleased]: https://github.com/pantographe/view_component-form/compare/v0.2.9...HEAD
128
+ [0.2.9]: https://github.com/pantographe/view_component-form/compare/v0.2.8...v0.2.9
129
+ [0.2.8]: https://github.com/pantographe/view_component-form/compare/v0.2.7...v0.2.8
118
130
  [0.2.7]: https://github.com/pantographe/view_component-form/compare/v0.2.6...v0.2.7
119
131
  [0.2.6]: https://github.com/pantographe/view_component-form/compare/v0.2.5...v0.2.6
120
132
  [0.2.5]: https://github.com/pantographe/view_component-form/compare/v0.2.4...v0.2.5
data/README.md CHANGED
@@ -8,7 +8,8 @@ Development of this gem is sponsored by:
8
8
 
9
9
  ## Compatibility
10
10
 
11
- > [!WARNING] > **This is an early release, and the API is subject to change until `v1.0.0`.**
11
+ > [!WARNING]
12
+ > **This is an early release, and the API is subject to change until `v1.0.0`.**
12
13
 
13
14
  This gem is tested on:
14
15
 
@@ -12,7 +12,6 @@ module ViewComponent
12
12
  attr_reader :form, :object_name, :options
13
13
 
14
14
  delegate :object, to: :form, allow_nil: true
15
- delegate :errors, to: :object, prefix: true, allow_nil: true
16
15
 
17
16
  def initialize(form, object_name, options = {})
18
17
  @form = form
@@ -30,6 +29,12 @@ module ViewComponent
30
29
  object.errors.any?
31
30
  end
32
31
 
32
+ def object_errors
33
+ return nil unless object
34
+
35
+ object.errors
36
+ end
37
+
33
38
  def html_class
34
39
  nil
35
40
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ViewComponent
4
4
  module Form
5
- VERSION = "0.2.7"
5
+ VERSION = "0.2.9"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_component-form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pantographe
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-18 00:00:00.000000000 Z
11
+ date: 2024-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 6.1.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.2'
22
+ version: '8.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 6.1.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.2'
32
+ version: '8.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activesupport
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 6.1.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '7.2'
42
+ version: '8.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: 6.1.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '7.2'
52
+ version: '8.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: view_component
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -154,7 +154,7 @@ metadata:
154
154
  source_code_uri: https://github.com/pantographe/view_component-form
155
155
  bug_tracker_uri: https://github.com/pantographe/view_component-form/issues
156
156
  rubygems_mfa_required: 'true'
157
- post_install_message:
157
+ post_install_message:
158
158
  rdoc_options: []
159
159
  require_paths:
160
160
  - lib
@@ -169,8 +169,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0'
171
171
  requirements: []
172
- rubygems_version: 3.5.14
173
- signing_key:
172
+ rubygems_version: 3.5.22
173
+ signing_key:
174
174
  specification_version: 4
175
175
  summary: Rails FormBuilder for ViewComponent
176
176
  test_files: []