activeadmin 3.2.3 → 3.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: cd51d7cc81eac3cbb01358076ca98368ccd5879f96dd9dfaed3f4e6b5c511648
4
- data.tar.gz: 95913536dfd3ccf746a0848545b81685ead621cd2536776ede879a9b02196058
3
+ metadata.gz: 96cc413b7ce2a101b6d54a8d4e8c31a6bb4bb8bd9ba8078252e7210088d6eddc
4
+ data.tar.gz: cfefd3ac1c3a6d60eed87faf31be9fb04980fcb91d6a4f9bc1533702a5c44887
5
5
  SHA512:
6
- metadata.gz: 0b296e6597a76172815063ca7b63ba359308b9a13c26874b6ea6b746dbd25bb8d6929c4da2f1b8682dfbd998cc7a752c73d2eca70b356fdfad8362294273aac9
7
- data.tar.gz: ac965d5a5b2308a064e0e47816c1739f8482570ce926feb72fcf1031b12ac1e738719571faae48d03128c1d8af790e74e47c04e7f62484e791cd654749373417
6
+ metadata.gz: 8d3a3562deed7b19ff4ac7230810de7a270deaf9449026bb80f2a4b0b62fe98093b8c0948f2ebb236a6fe18c5d6d0122a94207a697c861ec029491ce421033fc
7
+ data.tar.gz: c67fd515ee902ffa551bea1a5b0b01e9c6ef84704dae5966892dadf2af69baf593d1f5f35f44d2b7638afbd5eee5ff2af79465efe6d90c539b3ad4bbfb37ef33
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 3.2.4 [☰](https://github.com/activeadmin/activeadmin/compare/v3.2.3..v3.2.4)
6
+
7
+ ### Enhancements
8
+
9
+ * Test against Rails 7.2 [#8434] by [@mgrunberg]
10
+
11
+ ### Bug Fixes
12
+
13
+ * Backport Improve form f.inputs attributes rendering [#8446] by [@amiel]
14
+
5
15
  ## 3.2.3 [☰](https://github.com/activeadmin/activeadmin/compare/v3.2.2..v3.2.3)
6
16
 
7
17
  ### Enhancements
@@ -932,6 +942,8 @@ Please check [0-6-stable] for previous changes.
932
942
  [#8349]: https://github.com/activeadmin/activeadmin/pull/8349
933
943
  [#8405]: https://github.com/activeadmin/activeadmin/pull/8405
934
944
  [#8412]: https://github.com/activeadmin/activeadmin/pull/8412
945
+ [#8434]: https://github.com/activeadmin/activeadmin/pull/8434
946
+ [#8446]: https://github.com/activeadmin/activeadmin/pull/8446
935
947
 
936
948
  [@1000ship]: https://github.com/1000ship
937
949
  [@5t111111]: https://github.com/5t111111
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveAdmin
3
- VERSION = "3.2.3"
3
+ VERSION = "3.2.4"
4
4
  end
@@ -127,12 +127,24 @@ module ActiveAdmin
127
127
  html_options[:class] ||= "inputs"
128
128
  legend = args.shift if args.first.is_a?(::String)
129
129
  legend = html_options.delete(:name) if html_options.key?(:name)
130
- legend_tag = legend ? "<legend><span>#{ERB::Util.html_escape(legend)}</span></legend>" : ""
131
- fieldset_attrs = html_options.map { |k, v| %Q{#{k}="#{v}"} }.join(" ")
130
+ legend_tag = legend ? helpers.tag.legend(legend, class: "fieldset-title") : ""
131
+ fieldset_attrs = tag_attributes html_options
132
132
  @opening_tag = "<fieldset #{fieldset_attrs}>#{legend_tag}<ol>"
133
133
  @closing_tag = "</ol></fieldset>"
134
134
  super(*(args << html_options), &block)
135
135
  end
136
+
137
+ private
138
+
139
+ def tag_attributes(html_options)
140
+ if Rails::VERSION::MAJOR <= 6
141
+ # Reimplement tag.attributes to backport support for Rails 6.1.
142
+ # TODO: this can be removed when support for Rails 6.x is dropped
143
+ helpers.tag.tag_options(html_options.to_h).to_s.strip.html_safe
144
+ else
145
+ helpers.tag.attributes html_options
146
+ end
147
+ end
136
148
  end
137
149
 
138
150
  class SemanticActionsProxy < FormtasticProxy
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3
4
+ version: 3.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Maresh
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2024-08-02 00:00:00.000000000 Z
18
+ date: 2024-08-24 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: arbre