arbre 2.0.2 → 2.1.0

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: ca79ec17f4cc544c67de3edffc70aef04f4d3189f4872250612ede68a4edae75
4
- data.tar.gz: 8c3a15fbe07d3a8c6767b36d71cdd672d3d38d5c6dc66e98a5645b0bccd72a9d
3
+ metadata.gz: 37ef1c5e18803525f693ca36673b54057365cd2b4656d98a6fc9be308a87f223
4
+ data.tar.gz: 66e34efd1665425eba60a36afa68ea4f4e7c1d9dfb0a03641fac726d6faff732
5
5
  SHA512:
6
- metadata.gz: 9f29bbaef6eee30a95f195759ccc467b5a609c5c2bdf7dcfa1dff99d3878ed55a24484eb8ca92457cd07460936003f94644f12f2d90a4a01141c40317a44b63f
7
- data.tar.gz: 376fa680469cb21857330e603230aa516458d7aacb804bfefdfc66104fa13bcf660b5a8e45b3e331c52d196be887c56ed0265f46ca15ebc70a09bad4300680f2
6
+ metadata.gz: a2dac5610c0987fbfd6dbeea73ca0281d0fd8af0a2831f7a2c1294c5ac74b65b47337afdf84f08c7b619d5e3aef70e396bd263fae6af128feeea6a5d81e58c11
7
+ data.tar.gz: e573386132d701114a705d4b8b938b7953b66c806a6a7aba05bdb0a6c52ba19d1c90b76944d484ad9925c390ed0e199de1017f3f38faf5a0a0ef13bb9e479094
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 2.1.0 [☰](https://github.com/activeadmin/arbre/compare/v2.0.2...v2.1.0)
4
+
5
+ * Add support for ViewComponent. [#644][] by [@budu][]
6
+ * Remove support for Ruby `< 3.1`
7
+ * Remove support for Rails `< 7.0`
8
+ * Test against Rails 8.0
4
9
 
5
10
  ## 2.0.2 [☰](https://github.com/activeadmin/arbre/compare/v2.0.1...v2.0.2)
6
11
 
@@ -148,6 +153,7 @@ Initial release and extraction from Active Admin
148
153
  [#578]: https://github.com/activeadmin/arbre/pull/578
149
154
  [#617]: https://github.com/activeadmin/arbre/pull/617
150
155
  [#622]: https://github.com/activeadmin/arbre/pull/622
156
+ [#644]: https://github.com/activeadmin/arbre/pull/644
151
157
 
152
158
  [@aramvisser]: https://github.com/aramvisser
153
159
  [@LTe]: https://github.com/LTe
@@ -172,3 +178,4 @@ Initial release and extraction from Active Admin
172
178
  [@tomascco]: https://github.com/tomascco
173
179
  [@javierjulio]: https://github.com/javierjulio
174
180
  [@Earlopain]: https://github.com/Earlopain
181
+ [@budu]: https://github.com/budu
@@ -3,8 +3,8 @@ module Arbre
3
3
  module Rails
4
4
  module Rendering
5
5
 
6
- def render(*args)
7
- rendered = helpers.render(*args)
6
+ def render(*args, &block)
7
+ rendered = helpers.render(*args, &block)
8
8
  case rendered
9
9
  when Arbre::Context
10
10
  current_arbre_element.add_child rendered
data/lib/arbre/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Arbre
3
- VERSION = "2.0.2"
3
+ VERSION = "2.1.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arbre
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Bell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-24 00:00:00.000000000 Z
11
+ date: 2024-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.0
19
+ version: '7.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.0
26
+ version: '7.0'
27
27
  description: Arbre makes it easy to generate HTML directly in Ruby
28
28
  email:
29
29
  - gregdbell@gmail.com
@@ -77,14 +77,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - ">="
79
79
  - !ruby/object:Gem::Version
80
- version: '2.7'
80
+ version: '3.1'
81
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.5.18
87
+ rubygems_version: 3.5.22
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: An Object Oriented DOM Tree in Ruby