view_component-form 0.2.3 → 0.2.4

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: 46ae76cd3c5205d98673495e26d1c654441054c297bd4d63abe9ca8f1180cc5c
4
- data.tar.gz: dd2286deed5dce2a7f7198a09977d17b8744c6e4952276e855c1a4d838ad3385
3
+ metadata.gz: e34a41ebc599bd19cfcb44df6531abea9f69d6e411654bd30f51214f5d9b5689
4
+ data.tar.gz: 481a67aec41fb2ee179d9123f4140385a848ba2d1d92f0de0fdebb4eb8a07a8a
5
5
  SHA512:
6
- metadata.gz: 7b391f6b0196c04a6db7c10c71745747a895ec4f7553c87a0ddcd68126e4897ebb979b70e8e81bb9c772a5c5f9cf0a50a65094ec5967853b6364f785a8676911
7
- data.tar.gz: 3efda4bbf9ce7e6a08f71d5f1e1025124a163d0d373e62087ba374f7e7d311bf2907dfd43bc33e14e1a821e24d0c42f7244a25a42232e71bd5503e7016204886
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ViewComponent
4
4
  module Form
5
- VERSION = "0.2.3"
5
+ VERSION = "0.2.4"
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.3
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-03-24 00:00:00.000000000 Z
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.4
165
+ rubygems_version: 3.3.12
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: Rails FormBuilder for ViewComponent