view_component-form 0.2.3 → 0.2.4
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e34a41ebc599bd19cfcb44df6531abea9f69d6e411654bd30f51214f5d9b5689
|
|
4
|
+
data.tar.gz: 481a67aec41fb2ee179d9123f4140385a848ba2d1d92f0de0fdebb4eb8a07a8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e7e7d6496ce356fd2409cd67822187d0b7619d9d56ae6c5172ef26dcfbb8f65af9c9bfe4025d5c5bf2b01ceb784bd6ef97263e508ac50e1a732d9bbf670ac97
|
|
7
|
+
data.tar.gz: 449e48d08d88438c70be0888074f68871dce0ebbc20b7bcfa45d35526c60e3dd30b0c32a7114cc54574969505469eb1e3b013836c69b92b10edeb33bdd6305b9
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
Nothing yet
|
|
9
9
|
|
|
10
|
+
## [0.2.4] - 2022-04-27
|
|
11
|
+
### Changed
|
|
12
|
+
- Add ruby 3.1 to CI (#123)
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- Fix `FileFieldComponent` options for `direct_upload` and `include_hidden` (#122)
|
|
16
|
+
|
|
10
17
|
## [0.2.3] - 2022-03-24
|
|
11
18
|
### Fixed
|
|
12
19
|
- Declare empty RichTextAreaComponent if ActionText is not installed, to fix Zeitwerk error (#120)
|
|
@@ -4,6 +4,15 @@ module ViewComponent
|
|
|
4
4
|
module Form
|
|
5
5
|
class FileFieldComponent < FieldComponent
|
|
6
6
|
self.tag_klass = ActionView::Helpers::Tags::FileField
|
|
7
|
+
|
|
8
|
+
def before_render
|
|
9
|
+
if Gem::Version.new(Rails::VERSION::STRING) >= Gem::Version.new("7.0")
|
|
10
|
+
@options = { include_hidden: multiple_file_field_include_hidden }.merge!(options)
|
|
11
|
+
end
|
|
12
|
+
@options = convert_direct_upload_option_to_url(@options.dup)
|
|
13
|
+
|
|
14
|
+
super
|
|
15
|
+
end
|
|
7
16
|
end
|
|
8
17
|
end
|
|
9
18
|
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.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pantographe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-04-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionview
|
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
162
162
|
- !ruby/object:Gem::Version
|
|
163
163
|
version: '0'
|
|
164
164
|
requirements: []
|
|
165
|
-
rubygems_version: 3.3.
|
|
165
|
+
rubygems_version: 3.3.12
|
|
166
166
|
signing_key:
|
|
167
167
|
specification_version: 4
|
|
168
168
|
summary: Rails FormBuilder for ViewComponent
|