arbre 2.1.0 → 2.2.1

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: 37ef1c5e18803525f693ca36673b54057365cd2b4656d98a6fc9be308a87f223
4
- data.tar.gz: 66e34efd1665425eba60a36afa68ea4f4e7c1d9dfb0a03641fac726d6faff732
3
+ metadata.gz: 13d1a16dab3134a351e818fa4d2f5e0df3e644c198c9437541bb2751eb5bef0f
4
+ data.tar.gz: 7bcdab60be3d01b33948fda5987621d35987911bc12035dc8ae5e0b80daab9b2
5
5
  SHA512:
6
- metadata.gz: a2dac5610c0987fbfd6dbeea73ca0281d0fd8af0a2831f7a2c1294c5ac74b65b47337afdf84f08c7b619d5e3aef70e396bd263fae6af128feeea6a5d81e58c11
7
- data.tar.gz: e573386132d701114a705d4b8b938b7953b66c806a6a7aba05bdb0a6c52ba19d1c90b76944d484ad9925c390ed0e199de1017f3f38faf5a0a0ef13bb9e479094
6
+ metadata.gz: 2bfb5d2d48dd79f859b51cfc1b46cb120677f44d9a4c3d9500f8b96cf7f695f1017045677fe7ed63c2b5885c82547da7db40bd35dc663cf171c1f5765f5792e6
7
+ data.tar.gz: '098f0b8f4c6a92e7400d0b3f69d9ddd31cd4530b5c2b0b12f8accbac017d3808e17e2f24a52b4e805b374f8ac663b484dafccc6e5f6827fd62f8d90178d68859'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.2.1 [☰](https://github.com/activeadmin/arbre/compare/v2.2.0...v2.2.1)
4
+
5
+ * Ensure Arbre context is properly reset after rendering [#700][] by [@drcapulet][]
6
+
7
+ ## 2.2.0 [☰](https://github.com/activeadmin/arbre/compare/v2.1.0...v2.2.0)
8
+
9
+ * Add some missing HTML5 elements [#655][] by [@tagliala][]
10
+
3
11
  ## 2.1.0 [☰](https://github.com/activeadmin/arbre/compare/v2.0.2...v2.1.0)
4
12
 
5
13
  * Add support for ViewComponent. [#644][] by [@budu][]
@@ -154,6 +162,8 @@ Initial release and extraction from Active Admin
154
162
  [#617]: https://github.com/activeadmin/arbre/pull/617
155
163
  [#622]: https://github.com/activeadmin/arbre/pull/622
156
164
  [#644]: https://github.com/activeadmin/arbre/pull/644
165
+ [#655]: https://github.com/activeadmin/arbre/pull/655
166
+ [#700]: https://github.com/activeadmin/arbre/pull/700
157
167
 
158
168
  [@aramvisser]: https://github.com/aramvisser
159
169
  [@LTe]: https://github.com/LTe
@@ -179,3 +189,4 @@ Initial release and extraction from Active Admin
179
189
  [@javierjulio]: https://github.com/javierjulio
180
190
  [@Earlopain]: https://github.com/Earlopain
181
191
  [@budu]: https://github.com/budu
192
+ [@drcapulet]: https://github.com/drcapulet
data/lib/arbre/context.rb CHANGED
@@ -90,6 +90,7 @@ module Arbre
90
90
  raise ArgumentError, "Can't be in the context of nil. #{@_current_arbre_element_buffer.inspect}" unless tag
91
91
  @_current_arbre_element_buffer.push tag
92
92
  yield
93
+ ensure
93
94
  @_current_arbre_element_buffer.pop
94
95
  end
95
96
  alias_method :within, :with_current_arbre_element
@@ -2,17 +2,124 @@
2
2
  module Arbre
3
3
  module HTML
4
4
 
5
- AUTO_BUILD_ELEMENTS = [ :a, :abbr, :address, :area, :article, :aside, :audio, :b, :base,
6
- :bdo, :blockquote, :body, :br, :button, :canvas, :caption, :cite,
7
- :code, :col, :colgroup, :command, :datalist, :dd, :del, :details,
8
- :dfn, :div, :dl, :dt, :em, :embed, :fieldset, :figcaption, :figure,
9
- :footer, :form, :h1, :h2, :h3, :h4, :h5, :h6, :head, :header, :hgroup,
10
- :hr, :html, :i, :iframe, :img, :input, :ins, :keygen, :kbd, :label,
11
- :legend, :li, :link, :main, :map, :mark, :menu, :menuitem, :meta, :meter, :nav, :noscript,
12
- :object, :ol, :optgroup, :option, :output, :param, :pre, :progress, :q,
13
- :s, :samp, :script, :section, :select, :small, :source, :span,
14
- :strong, :style, :sub, :summary, :sup, :svg, :table, :tbody, :td,
15
- :textarea, :tfoot, :th, :thead, :time, :title, :tr, :track, :ul, :var, :video, :wbr ]
5
+ AUTO_BUILD_ELEMENTS = [
6
+ :a,
7
+ :abbr,
8
+ :address,
9
+ :area,
10
+ :article,
11
+ :aside,
12
+ :audio,
13
+ :b,
14
+ :base,
15
+ :bdi,
16
+ :bdo,
17
+ :blockquote,
18
+ :body,
19
+ :br,
20
+ :button,
21
+ :canvas,
22
+ :caption,
23
+ :cite,
24
+ :code,
25
+ :col,
26
+ :colgroup,
27
+ :command,
28
+ :data,
29
+ :datalist,
30
+ :dd,
31
+ :del,
32
+ :details,
33
+ :dfn,
34
+ :dialog,
35
+ :div,
36
+ :dl,
37
+ :dt,
38
+ :em,
39
+ :embed,
40
+ :fieldset,
41
+ :figcaption,
42
+ :figure,
43
+ :footer,
44
+ :form,
45
+ :h1,
46
+ :h2,
47
+ :h3,
48
+ :h4,
49
+ :h5,
50
+ :h6,
51
+ :head,
52
+ :header,
53
+ :hgroup,
54
+ :hr,
55
+ :html,
56
+ :i,
57
+ :iframe,
58
+ :img,
59
+ :input,
60
+ :ins,
61
+ :kbd,
62
+ :keygen,
63
+ :label,
64
+ :legend,
65
+ :li,
66
+ :link,
67
+ :main,
68
+ :map,
69
+ :mark,
70
+ :menu,
71
+ :menuitem,
72
+ :meta,
73
+ :meter,
74
+ :nav,
75
+ :noscript,
76
+ :object,
77
+ :ol,
78
+ :optgroup,
79
+ :option,
80
+ :output,
81
+ :param,
82
+ :picture,
83
+ :pre,
84
+ :progress,
85
+ :q,
86
+ :rp,
87
+ :rt,
88
+ :ruby,
89
+ :s,
90
+ :samp,
91
+ :script,
92
+ :search,
93
+ :section,
94
+ :select,
95
+ :slot,
96
+ :small,
97
+ :source,
98
+ :span,
99
+ :strong,
100
+ :style,
101
+ :sub,
102
+ :summary,
103
+ :sup,
104
+ :svg,
105
+ :table,
106
+ :tbody,
107
+ :td,
108
+ :template,
109
+ :textarea,
110
+ :tfoot,
111
+ :th,
112
+ :thead,
113
+ :time,
114
+ :title,
115
+ :tr,
116
+ :track,
117
+ :u,
118
+ :ul,
119
+ :var,
120
+ :video,
121
+ :wbr
122
+ ]
16
123
 
17
124
  HTML5_ELEMENTS = [ :p ] + AUTO_BUILD_ELEMENTS
18
125
 
data/lib/arbre/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Arbre
3
- VERSION = "2.1.0"
3
+ VERSION = "2.2.1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arbre
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Bell
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-15 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activesupport
@@ -69,7 +68,6 @@ licenses:
69
68
  - MIT
70
69
  metadata:
71
70
  rubygems_mfa_required: 'true'
72
- post_install_message:
73
71
  rdoc_options: []
74
72
  require_paths:
75
73
  - lib
@@ -84,8 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
82
  - !ruby/object:Gem::Version
85
83
  version: '0'
86
84
  requirements: []
87
- rubygems_version: 3.5.22
88
- signing_key:
85
+ rubygems_version: 3.6.9
89
86
  specification_version: 4
90
87
  summary: An Object Oriented DOM Tree in Ruby
91
88
  test_files: []