ariadne_view_components 0.0.30-aarch64-linux → 0.0.31-aarch64-linux

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: b79e73b3f90fc8d5503a50edbd03bc0fdee21dfeae89d74cb11b71e911bcd43a
4
- data.tar.gz: acb9abf4f5106e7ac0e5efba1889be1ca5cf5f78524b0c28b844240bdf0551d3
3
+ metadata.gz: fa526fe40ae969541058a4cff49ed3f0bf4d94e855894a33bcb3cb967fc40a91
4
+ data.tar.gz: a49d88e04f027cfff1db3cf350b8f153a24b48379efcce2a22481022ecb97175
5
5
  SHA512:
6
- metadata.gz: 96a835d381e67cd3c0b2c1e592e578a7c03c76b2a9176b0a0c979eae215df8dc805c09e72da61f1cc0f3d1e9748adb43573b5281eeb6b928a75e87727f86a9ef
7
- data.tar.gz: a5eda57e77fcef22dcfd4886114985d53c1cf5804fab6f0ed4a74d9eced019c1c0fa20142580bc8ad1c34f3cc35a0b36a15308217c71c0c371b816706580e156
6
+ metadata.gz: '091f0a75c4ab44533da22df54383b33b79998c520459fce65097df9bb89d1febadf4bdfa08adcf40df00228c047e695dc9926475e4a18122a0df861004338131'
7
+ data.tar.gz: 932a0e83d8136a0565c6342334d4994904c3c43f4b052d13b6d4d515a5c3adbe74486ab8871798b3a0399c9e58fd36be707f8518004a5109775a53af21cea8d8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.0.31](https://github.com/yettoapp/ariadne/tree/v0.0.31) (2023-03-21)
4
+
5
+ [Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.30...v0.0.31)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Fix form attrs [\#172](https://github.com/yettoapp/ariadne/pull/172) ([gjtorikian](https://github.com/gjtorikian))
10
+
3
11
  ## [v0.0.30](https://github.com/yettoapp/ariadne/tree/v0.0.30) (2023-03-08)
4
12
 
5
13
  [Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.29...v0.0.30)
@@ -10,26 +10,16 @@ module Ariadne
10
10
  def ariadne_form_with(model: nil, scope: nil, url: nil, format: nil, classes: "", attributes: {}, **options, &block)
11
11
  options[:class] = class_names(DEFAULT_FORM_CLASSES, options[:class])
12
12
  options[:builder] ||= Ariadne::FormBuilder
13
- options[:html] ||= {}
13
+ options[:html] = attributes
14
14
 
15
- data = options.delete(:data) || {}
16
- attributes = attributes.delete_if do |key, value|
17
- key_name = key.to_s
18
- if key_name.start_with?("data-")
19
- data[key_name.sub(/^data-/, "").to_sym] = value
20
- true
21
- else
22
- false
23
- end
24
- end
25
-
26
- data[:controller] = if data.fetch(:controller, {}).present?
27
- "#{data[:controller]} ariadne-form"
15
+ data_controller = options[:html].fetch(:"data-controller", "")
16
+ options[:html][:"data-controller"] = if data_controller.present?
17
+ "#{data_controller} ariadne-form"
28
18
  else
29
19
  "ariadne-form"
30
20
  end
31
21
 
32
- form_with(model: model, scope: scope, url: url, format: format, data: data, attributes: attributes, **options, &block)
22
+ form_with(model: model, scope: scope, url: url, format: format, **options, &block)
33
23
  end
34
24
  end
35
25
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ariadne
4
4
  module ViewComponents
5
- VERSION = "0.0.30"
5
+ VERSION = "0.0.31"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ariadne_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.30
4
+ version: 0.0.31
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tailwind_merge