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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ea6f194e6a1f7b09577d125fb155dca62b50f8d807ca31c259666fa31f623e6
4
- data.tar.gz: 8f05825ecc0a21249c5824b953f6facf1c421b804163519d1d97d1fdd22eebfe
3
+ metadata.gz: 7a8bd607660e006f23f20771fbe0436868b61b8d6d1ad068cb594851c5acb2b0
4
+ data.tar.gz: 66667a6b88c77bfedea6b3381efc0d13c08659ebc82b82f0ab92aa7fd9c7c028
5
5
  SHA512:
6
- metadata.gz: 4b37858b1aff182875a4f11b616e5a1ba6fbb72323f77810ee815ee22858893a56fe5aa5dd318fbf60c2988239f9857d50190c6ccf8ca0fd4108eeb32894a7fd
7
- data.tar.gz: e908c96cbeb82e5396118d14b644fba152a2e08645d32fe505e5058e3776d8cd3f4294d6a34a72ae3fa1bd7c8402aa1f686d22ee9600f959cca0c1652e78e5d5
6
+ metadata.gz: b313cf89df6a1afc6effdcaceced045e32f9c58f17e2623c9672c4101842e19d2ce5b33e587034b6713f6dd0a099276e5d9425b7579a88af83e0c8ddb264fedb
7
+ data.tar.gz: 8f6e2347f5c189f8b7d893838e0eba727980c80f9f4678baea8e38cfd5f6b5d3b8b26cbe788c5dfdf56cd4ef6d238943380c7a7b5582789c79ff592481408551
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Phlex
4
4
  module Rails
5
- VERSION = "0.6.0"
5
+ VERSION = "0.6.1"
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.6.0
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 00:00:00.000000000 Z
11
+ date: 2023-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phlex