phlex-rails 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phlex/rails/helpers.rb +42 -0
- data/lib/phlex/rails/html/overrides.rb +8 -0
- data/lib/phlex/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a8bd607660e006f23f20771fbe0436868b61b8d6d1ad068cb594851c5acb2b0
|
4
|
+
data.tar.gz: 66667a6b88c77bfedea6b3381efc0d13c08659ebc82b82f0ab92aa7fd9c7c028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b313cf89df6a1afc6effdcaceced045e32f9c58f17e2623c9672c4101842e19d2ce5b33e587034b6713f6dd0a099276e5d9425b7579a88af83e0c8ddb264fedb
|
7
|
+
data.tar.gz: 8f6e2347f5c189f8b7d893838e0eba727980c80f9f4678baea8e38cfd5f6b5d3b8b26cbe788c5dfdf56cd4ef6d238943380c7a7b5582789c79ff592481408551
|
data/lib/phlex/rails/helpers.rb
CHANGED
@@ -342,6 +342,20 @@ module Phlex::Rails::Helpers
|
|
342
342
|
define_value_helper :distance_of_time_in_words_to_now
|
343
343
|
end
|
344
344
|
|
345
|
+
module DOMClass
|
346
|
+
extend Phlex::Rails::HelperMacros
|
347
|
+
|
348
|
+
# @!method dom_class(...)
|
349
|
+
define_value_helper :dom_class
|
350
|
+
end
|
351
|
+
|
352
|
+
module DOMID
|
353
|
+
extend Phlex::Rails::HelperMacros
|
354
|
+
|
355
|
+
# @!method dom_id(...)
|
356
|
+
define_value_helper :dom_id
|
357
|
+
end
|
358
|
+
|
345
359
|
module EmailField
|
346
360
|
extend Phlex::Rails::HelperMacros
|
347
361
|
|
@@ -1255,6 +1269,34 @@ module Phlex::Rails::Helpers
|
|
1255
1269
|
define_value_helper :truncate
|
1256
1270
|
end
|
1257
1271
|
|
1272
|
+
module TurboFrameTag
|
1273
|
+
extend Phlex::Rails::HelperMacros
|
1274
|
+
|
1275
|
+
# @!method turbo_frame_tag(...)
|
1276
|
+
define_output_helper_with_capture_block :turbo_frame_tag
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
module TurboIncludeTags
|
1280
|
+
extend Phlex::Rails::HelperMacros
|
1281
|
+
|
1282
|
+
# @!method turbo_include_tags(...)
|
1283
|
+
define_output_helper :turbo_include_tags
|
1284
|
+
end
|
1285
|
+
|
1286
|
+
module TurboStream
|
1287
|
+
extend Phlex::Rails::HelperMacros
|
1288
|
+
|
1289
|
+
# @!method turbo_stream(...)
|
1290
|
+
define_builder_yielding_helper :turbo_stream, Phlex::Rails::Buffered
|
1291
|
+
end
|
1292
|
+
|
1293
|
+
module TurboStreamFrom
|
1294
|
+
extend Phlex::Rails::HelperMacros
|
1295
|
+
|
1296
|
+
# @!method turbo_stream_from(...)
|
1297
|
+
define_output_helper :turbo_stream_from
|
1298
|
+
end
|
1299
|
+
|
1258
1300
|
module URLField
|
1259
1301
|
extend Phlex::Rails::HelperMacros
|
1260
1302
|
|
@@ -93,6 +93,10 @@ module Phlex
|
|
93
93
|
else
|
94
94
|
@_view_context.with_output_buffer(self) { super }
|
95
95
|
end
|
96
|
+
|
97
|
+
# If it's a C-level Proc from Symbol#to_proc, it won't have a binding
|
98
|
+
rescue ::ArgumentError
|
99
|
+
super
|
96
100
|
end
|
97
101
|
|
98
102
|
private def yield_content_with_args(*args, &block)
|
@@ -104,6 +108,10 @@ module Phlex
|
|
104
108
|
else
|
105
109
|
@_view_context.with_output_buffer(self) { super }
|
106
110
|
end
|
111
|
+
|
112
|
+
# If it's a C-level Proc from Symbol#to_proc, it won't have a binding
|
113
|
+
rescue ::ArgumentError
|
114
|
+
super
|
107
115
|
end
|
108
116
|
end
|
109
117
|
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.6.
|
4
|
+
version: 0.6.1
|
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-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: phlex
|