view_component-form 0.2.8 → 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: ebfe18c2f32926684dc1bc0a96b4711bf56fe8e30ecf6a76cd51ee88228a33f9
4
- data.tar.gz: 4220a56314d7955107d799b7fe40a364d9375c95d4b6f8cc90f4e3f985e11d26
3
+ metadata.gz: 124aec584d29d1b7d181aa25ee3293d0719d9cf4c531f7a0d5cb5859b6be734b
4
+ data.tar.gz: b78538a52578b141f4c6d8eb45a92d80d8f7bf4f693a63acd9ce36fce80d8921
5
5
  SHA512:
6
- metadata.gz: 311fd483187bebdb51d8f8a2f2358f5d9076332510cf608228eecd7988fea9c5676a3c605ed2857587682fac725036eab679e334f6c28b9059a66e7d0fb1cf3f
7
- data.tar.gz: 1f498dc61138469a5e0797993db96f5ba32cd3bc6eec8403542cdd152b4261b371d04271dcba6675d424153eb14896044ace534bbb359ed764e4f640639f699a
6
+ metadata.gz: d18ac72e6c391c0466be730ab40c6d61ebbf807bc7d2f6a6fb53e35d6f9a23f223a0250e7cf87c6ad5bef507c84e63b141f21af1f2bbcd5baaca050b3b4ab904
7
+ data.tar.gz: 31353a6e4c1ff4547981b311229cfdfd01d590601a95b38688d357f4db02c5b2ccaed71cffdf1db1290d3a5bb515132eeecd2c1c0881cb00d5eae0da349b966d
data/CHANGELOG.md CHANGED
@@ -5,7 +5,13 @@ 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)
9
15
 
10
16
  ## [0.2.8] - 2024-08-20
11
17
  ### Added
@@ -118,7 +124,8 @@ Nothing yet
118
124
  - Add CHANGELOG (#50)
119
125
  - Add CI (#2)
120
126
 
121
- [Unreleased]: https://github.com/pantographe/view_component-form/compare/v0.2.8...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
122
129
  [0.2.8]: https://github.com/pantographe/view_component-form/compare/v0.2.7...v0.2.8
123
130
  [0.2.7]: https://github.com/pantographe/view_component-form/compare/v0.2.6...v0.2.7
124
131
  [0.2.6]: https://github.com/pantographe/view_component-form/compare/v0.2.5...v0.2.6
@@ -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.8"
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.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pantographe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-20 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: '8.0'
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: '8.0'
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: '8.0'
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: '8.0'
52
+ version: '8.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: view_component
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -169,7 +169,7 @@ 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.11
172
+ rubygems_version: 3.5.22
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Rails FormBuilder for ViewComponent