arbre 1.4.0 → 1.5.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: c3372e73956d615bd5690efe4c862f4e9bb312aaa8e12117caada56cbc0a1f69
4
- data.tar.gz: f6649676ae291d3d745ad53b4eb7fd932b921560af92d4a1065c1178ad8ff1c6
3
+ metadata.gz: 167ce642a1b64eb122a2d02ce8a1d738a0c480303769ad7a896df8afbfa2f197
4
+ data.tar.gz: 0a4a5d4b7e788155b66eeca1dfdae4ed138403449cda43d915e76fd52bdbdb84
5
5
  SHA512:
6
- metadata.gz: 5a510c2925f63a88a75f20c0de6d9adac67da0f8c615cbe25c1debd8b5c7f48830de8a89d947780c76f1f762a91e37c63bf118f2db1a52c218f9a2a174f91021
7
- data.tar.gz: 01347d69439526f887b81f35bf1c241d873790fe9220cd55839954df551134abfb065afea2b4c952b89447930b175e23e426329dde7ad2fc010ecec9c77c8257
6
+ metadata.gz: 31df82dc237aeb220e55fa3ae4bc1fb6d39cb7189cffe36ad2f4839a01ead4336cd1f556a7005ebfb608d258988407db479d9cef855c68016f0b646279e8a2a6
7
+ data.tar.gz: 53b572e7001fccc30d284865292613b3f33a35e73f7c4f95a56db7c6c4e96b42721c73d87130b7fc1c402b04acdd2562106efec0c8d7b60ef1ee8bd7bd5034c5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Master (unreleased)
4
4
 
5
+ ## 1.5.0 [☰](https://github.com/activeadmin/arbre/compare/v1.4.0...v1.5.0)
6
+
7
+ * Avoid mutating string literals. [#292][] by [@tomgilligan][]
8
+ * Allow activesupport 7.0. [#314][] by [@tagliala][]
9
+ * Drop ruby 2.5 support. [#315][] by [@alejandroperea][]
10
+ * Fix keyword delegation in form component. [#318][] by [@deivid-rodriguez][]
11
+
5
12
  ## 1.4.0 [☰](https://github.com/activeadmin/arbre/compare/v1.3.0...v1.4.0)
6
13
 
7
14
  * Allow activesupport 6.1 prereleases. [#242][] by [@deivid-rodriguez][]
@@ -98,10 +105,15 @@ Initial release and extraction from Active Admin
98
105
  [#202]: https://github.com/activeadmin/arbre/pull/202
99
106
  [#205]: https://github.com/activeadmin/arbre/pull/205
100
107
  [#242]: https://github.com/activeadmin/arbre/pull/242
108
+ [#292]: https://github.com/activeadmin/arbre/pull/292
109
+ [#314]: https://github.com/activeadmin/arbre/pull/314
110
+ [#315]: https://github.com/activeadmin/arbre/pull/315
111
+ [#318]: https://github.com/activeadmin/arbre/pull/318
101
112
 
102
113
  [@aramvisser]: https://github.com/aramvisser
103
114
  [@LTe]: https://github.com/LTe
104
115
  [@OscarBarrett]: https://github.com/OscarBarrett
116
+ [@alejandroperea]: https://github.com/alejandroperea
105
117
  [@alexesDev]: https://github.com/alexesDev
106
118
  [@deivid-rodriguez]: https://github.com/deivid-rodriguez
107
119
  [@dlackty]: https://github.com/dlackty
@@ -113,3 +125,5 @@ Initial release and extraction from Active Admin
113
125
  [@seanlinsley]: https://github.com/seanlinsley
114
126
  [@timoschilling]: https://github.com/timoschilling
115
127
  [@varyonic]: https://github.com/varyonic
128
+ [@tagliala]: https://github.com/tagliala
129
+ [@tomgilligan]: https://github.com/tomgilligan
data/docs/Gemfile CHANGED
@@ -1,2 +1,3 @@
1
+ # frozen_string_literal: true
1
2
  gem 'github-pages'
2
3
  gem 'jekyll-redirect-from'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  class Component < Arbre::HTML::Div
3
4
 
data/lib/arbre/context.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'arbre/element'
2
3
  require 'ruby2_keywords'
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  class Element
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  class Element
3
4
  class Proxy < BasicObject
data/lib/arbre/element.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'arbre/element/builder_methods'
2
3
  require 'arbre/element/proxy'
3
4
  require 'arbre/element_collection'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
 
3
4
  # Stores a collection of Element objects
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  module HTML
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'set'
2
3
 
3
4
  module Arbre
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  module HTML
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  module HTML
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'erb'
2
3
 
3
4
  module Arbre
@@ -119,19 +120,19 @@ module Arbre
119
120
 
120
121
  if no_child? || child_is_text?
121
122
  if self_closing_tag?
122
- html << spaces << open_tag.sub( />$/, '/>' )
123
+ html += spaces + open_tag.sub( />$/, '/>' )
123
124
  else
124
125
  # one line
125
- html << spaces << open_tag << child_content << close_tag
126
+ html += spaces + open_tag + child_content + close_tag
126
127
  end
127
128
  else
128
129
  # multiple lines
129
- html << spaces << open_tag << "\n"
130
- html << child_content # the child takes care of its own spaces
131
- html << spaces << close_tag
130
+ html += spaces + open_tag + "\n"
131
+ html += child_content # the child takes care of its own spaces
132
+ html += spaces + close_tag
132
133
  end
133
134
 
134
- html << "\n"
135
+ html += "\n"
135
136
 
136
137
  html
137
138
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'erb'
2
3
 
3
4
  module Arbre
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  module Rails
3
4
  module Forms
@@ -30,7 +31,7 @@ module Arbre
30
31
  text_node form_builder.send(method, *args, &block)
31
32
  end
32
33
 
33
- def method_missing(method, *args, &block)
34
+ ruby2_keywords def method_missing(method, *args, &block)
34
35
  if form_builder && form_builder.respond_to?(method)
35
36
  proxy_call_to_form(method, *args, &block)
36
37
  else
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  module Rails
3
4
  module Rendering
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
3
  module Rails
3
4
  class TemplateHandler
data/lib/arbre/rails.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'arbre/rails/template_handler'
2
3
  require 'arbre/rails/forms'
3
4
  require 'arbre/rails/rendering'
data/lib/arbre/version.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Arbre
2
- VERSION = "1.4.0"
3
+ VERSION = "1.5.0"
3
4
  end
data/lib/arbre.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'active_support/core_ext/string/output_safety'
2
3
  require 'active_support/hash_with_indifferent_access'
3
4
  require 'active_support/inflector'
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: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Bell
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-11 00:00:00.000000000 Z
11
+ date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 3.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.2'
22
+ version: '7.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 3.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.2'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: ruby2_keywords
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +94,7 @@ homepage: https://github.com/activeadmin/arbre
94
94
  licenses:
95
95
  - MIT
96
96
  metadata: {}
97
- post_install_message:
97
+ post_install_message:
98
98
  rdoc_options: []
99
99
  require_paths:
100
100
  - lib
@@ -102,15 +102,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - ">="
104
104
  - !ruby/object:Gem::Version
105
- version: '2.5'
105
+ version: '2.6'
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
- rubygems_version: 3.2.0
113
- signing_key:
112
+ rubygems_version: 3.3.6
113
+ signing_key:
114
114
  specification_version: 4
115
115
  summary: An Object Oriented DOM Tree in Ruby
116
116
  test_files: []