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.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/.ruby-version +1 -0
- data/Gemfile +2 -1
- data/lib/phlex/rails/buffered.rb +65 -0
- data/lib/phlex/rails/buffered_checkbox_builder.rb +13 -0
- data/lib/phlex/rails/buffered_form_builder.rb +97 -0
- data/lib/phlex/rails/buffered_label_builder.rb +11 -0
- data/lib/phlex/rails/buffered_radio_button_builder.rb +13 -0
- data/lib/phlex/rails/helper_macros.rb +95 -0
- data/lib/phlex/rails/helpers/routes.rb +8 -0
- data/lib/phlex/rails/helpers/tag.rb +17 -0
- data/lib/phlex/rails/helpers.rb +1395 -155
- data/lib/phlex/rails/html/overrides.rb +3 -4
- data/lib/phlex/rails/layout.rb +12 -13
- data/lib/phlex/rails/version.rb +1 -1
- metadata +12 -3
@@ -64,10 +64,9 @@ module Phlex
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def append=(value)
|
67
|
-
|
68
|
-
|
69
|
-
|
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)
|
data/lib/phlex/rails/layout.rb
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
module Phlex
|
4
|
-
module
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
data/lib/phlex/rails/version.rb
CHANGED
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.
|
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-
|
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.
|
148
|
+
rubygems_version: 3.4.6
|
140
149
|
signing_key:
|
141
150
|
specification_version: 4
|
142
151
|
summary: A Phlex adapter for Rails
|