phlex-rails 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,10 +64,9 @@ module Phlex
64
64
  end
65
65
 
66
66
  def append=(value)
67
- return unless value
68
-
69
- if value.html_safe?
70
- self.safe_append = value
67
+ case value
68
+ when ActiveSupport::SafeBuffer
69
+ @_target << value
71
70
  else
72
71
  @_target << case value
73
72
  when String then ERB::Util.html_escape(value)
@@ -1,17 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Phlex
4
- module Rails
5
- module Layout
6
- include Helpers::CSPMetaTag
7
- include Helpers::CSRFMetaTags
8
- include Helpers::FaviconLinkTag
9
- include Helpers::PreloadLinkTag
10
- include Helpers::StylesheetLinkTag
11
- include Helpers::ActionCableMetaTag
12
- include Helpers::JavaScriptIncludeTag
13
- include Helpers::JavaScriptImportmapTags
14
- include Helpers::JavaScriptImportModuleTag
15
- end
3
+ module Phlex::Rails
4
+ module Layout
5
+ include Helpers::CSPMetaTag
6
+ include Helpers::CSRFMetaTags
7
+ include Helpers::FaviconLinkTag
8
+ include Helpers::PreloadLinkTag
9
+ include Helpers::StyleSheetLinkTag
10
+ include Helpers::ActionCableMetaTag
11
+ include Helpers::AutoDiscoveryLinkTag
12
+ include Helpers::JavaScriptIncludeTag
13
+ include Helpers::JavaScriptImportMapTags
14
+ include Helpers::JavaScriptImportModuleTag
16
15
  end
17
16
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Phlex
4
4
  module Rails
5
- VERSION = "0.5.1"
5
+ VERSION = "0.6.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlex-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Drapper
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-01 00:00:00.000000000 Z
11
+ date: 2023-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phlex
@@ -73,6 +73,7 @@ extra_rdoc_files: []
73
73
  files:
74
74
  - ".editorconfig"
75
75
  - ".rubocop.yml"
76
+ - ".ruby-version"
76
77
  - Appraisals
77
78
  - CODE_OF_CONDUCT.md
78
79
  - CONTRIBUTING.md
@@ -101,9 +102,17 @@ files:
101
102
  - lib/install/phlex.rb
102
103
  - lib/phlex-rails.rb
103
104
  - lib/phlex/rails.rb
105
+ - lib/phlex/rails/buffered.rb
106
+ - lib/phlex/rails/buffered_checkbox_builder.rb
107
+ - lib/phlex/rails/buffered_form_builder.rb
108
+ - lib/phlex/rails/buffered_label_builder.rb
109
+ - lib/phlex/rails/buffered_radio_button_builder.rb
104
110
  - lib/phlex/rails/engine.rb
105
111
  - lib/phlex/rails/form.rb
112
+ - lib/phlex/rails/helper_macros.rb
106
113
  - lib/phlex/rails/helpers.rb
114
+ - lib/phlex/rails/helpers/routes.rb
115
+ - lib/phlex/rails/helpers/tag.rb
107
116
  - lib/phlex/rails/html/append_method_added_warning.rb
108
117
  - lib/phlex/rails/html/class_methods.rb
109
118
  - lib/phlex/rails/html/overrides.rb
@@ -136,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
145
  - !ruby/object:Gem::Version
137
146
  version: '0'
138
147
  requirements: []
139
- rubygems_version: 3.4.3
148
+ rubygems_version: 3.4.6
140
149
  signing_key:
141
150
  specification_version: 4
142
151
  summary: A Phlex adapter for Rails