view_component-form 0.2.7 → 0.2.9
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 +4 -4
- data/CHANGELOG.md +14 -2
- data/README.md +2 -1
- data/app/components/view_component/form/base_component.rb +6 -1
- data/lib/view_component/form/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 124aec584d29d1b7d181aa25ee3293d0719d9cf4c531f7a0d5cb5859b6be734b
|
|
4
|
+
data.tar.gz: b78538a52578b141f4c6d8eb45a92d80d8f7bf4f693a63acd9ce36fce80d8921
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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]
|
|
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
|
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.
|
|
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-
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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.
|
|
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: []
|