arbre 2.0.1 → 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: c4f7707f8598e3efa9a8c3369e48c32b94a0900a549ea1f01e63fd12e35dee08
4
- data.tar.gz: c6997649086caa1522daa3aa72af24d6d4595af9ecaf0e83cdd68a63f5c25548
3
+ metadata.gz: 37ef1c5e18803525f693ca36673b54057365cd2b4656d98a6fc9be308a87f223
4
+ data.tar.gz: 66e34efd1665425eba60a36afa68ea4f4e7c1d9dfb0a03641fac726d6faff732
5
5
  SHA512:
6
- metadata.gz: da6f9a42e7a4cad3523230bbcdf2dec90ff5e688e0d8fd75dd00d066bd04084a14edfb726cee86ddb54b09b0dd8fd1326ef348c18f03702abb962d3c5d8339af
7
- data.tar.gz: ef4ee4698a798da1faa86412258b3cde5bc0d37394a999499c98bc67d1cdcee1533220ab4f288edc4769beb3e389c87266f4a4902ab7350c83785b7b3d0669f8
6
+ metadata.gz: a2dac5610c0987fbfd6dbeea73ca0281d0fd8af0a2831f7a2c1294c5ac74b65b47337afdf84f08c7b619d5e3aef70e396bd263fae6af128feeea6a5d81e58c11
7
+ data.tar.gz: e573386132d701114a705d4b8b938b7953b66c806a6a7aba05bdb0a6c52ba19d1c90b76944d484ad9925c390ed0e199de1017f3f38faf5a0a0ef13bb9e479094
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
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
9
+
10
+ ## 2.0.2 [☰](https://github.com/activeadmin/arbre/compare/v2.0.1...v2.0.2)
11
+
12
+ * Prefer `require_relative` for internal requires. [#622][] by [@tagliala][]
13
+
3
14
  ## 2.0.1 [☰](https://github.com/activeadmin/arbre/compare/v2.0.0...v2.0.1)
4
15
 
5
16
  * Drop dependency on ruby2_keywords. [#578][] by [@Earlopain][]
@@ -141,6 +152,8 @@ Initial release and extraction from Active Admin
141
152
  [#562]: https://github.com/activeadmin/arbre/pull/562
142
153
  [#578]: https://github.com/activeadmin/arbre/pull/578
143
154
  [#617]: https://github.com/activeadmin/arbre/pull/617
155
+ [#622]: https://github.com/activeadmin/arbre/pull/622
156
+ [#644]: https://github.com/activeadmin/arbre/pull/644
144
157
 
145
158
  [@aramvisser]: https://github.com/aramvisser
146
159
  [@LTe]: https://github.com/LTe
@@ -165,3 +178,4 @@ Initial release and extraction from Active Admin
165
178
  [@tomascco]: https://github.com/tomascco
166
179
  [@javierjulio]: https://github.com/javierjulio
167
180
  [@Earlopain]: https://github.com/Earlopain
181
+ [@budu]: https://github.com/budu
data/lib/arbre/context.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'arbre/element'
2
+ require_relative 'element'
3
3
 
4
4
  module Arbre
5
5
 
@@ -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/railtie.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
- require 'arbre/rails/template_handler'
3
- require 'arbre/rails/forms'
4
- require 'arbre/rails/rendering'
2
+ require_relative 'rails/template_handler'
3
+ require_relative 'rails/forms'
4
+ require_relative 'rails/rendering'
5
5
  require 'rails'
6
6
 
7
7
  Arbre::Element.include(Arbre::Rails::Rendering)
data/lib/arbre/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Arbre
3
- VERSION = "2.0.1"
3
+ VERSION = "2.1.0"
4
4
  end
data/lib/arbre.rb CHANGED
@@ -6,16 +6,16 @@ require 'active_support/inflector'
6
6
  module Arbre
7
7
  end
8
8
 
9
- require 'arbre/element'
10
- require 'arbre/context'
11
- require 'arbre/html/attributes'
12
- require 'arbre/html/class_list'
13
- require 'arbre/html/tag'
14
- require 'arbre/html/text_node'
15
- require 'arbre/html/document'
16
- require 'arbre/html/html5_elements'
17
- require 'arbre/component'
9
+ require_relative 'arbre/element'
10
+ require_relative 'arbre/context'
11
+ require_relative 'arbre/html/attributes'
12
+ require_relative 'arbre/html/class_list'
13
+ require_relative 'arbre/html/tag'
14
+ require_relative 'arbre/html/text_node'
15
+ require_relative 'arbre/html/document'
16
+ require_relative 'arbre/html/html5_elements'
17
+ require_relative 'arbre/component'
18
18
 
19
19
  if defined?(Rails)
20
- require 'arbre/railtie'
20
+ require_relative 'arbre/railtie'
21
21
  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.1
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-15 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