phlex 1.10.2 → 1.10.3

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: cba68a9129cc5ece4a9fc967617121682b75409634a7d125f510ace4348cd77b
4
- data.tar.gz: 434168d192738d11c66d0ea9291dd7f4cc96b8b122f02e38d85f2a9f7afaad01
3
+ metadata.gz: 4a86bca32b72f150179b586843c71432ebfea0d892ad70b426ef0f8ce6d58f3f
4
+ data.tar.gz: 235a24dc555ffcb1598660c9c5d539a5b050780a1ccec4d81b8b5115ea5b7f0e
5
5
  SHA512:
6
- metadata.gz: 4cbcbb20ab4093f9877bac0a03a3686aaceffc883984a7fa25f93c1862988257afc9e71af93772c67760794bcbdfab6fb9a995f71ed492fbbd436b8311f8961c
7
- data.tar.gz: 07f4e11850deef3538c1296693dd9897eea0d7a26eefb3757bd1afbd89b6c9f486b974e0fdfb7f31cd602fe5e776560a5964f679b62ae72b9a0ba601448bd055
6
+ metadata.gz: 0b4ab7f24ba4955cc0622da21a363436a0b54cae4505ec0fd599dd2ddd53731175386b5fc9f62981807f7836d34edd7de851dd662a18b1e01c3935aa37956454
7
+ data.tar.gz: eb0b42b41d70b8fb28ae3c9134f0ecddcc517698ac812c2f1c69b05c4b41d7d9148aca244d88b1bb8e8d817abcfafa9ac6968342890584b9b6cf539b320e2b27
data/lib/phlex/sgml.rb CHANGED
@@ -216,10 +216,14 @@ module Phlex
216
216
  # Capture a block of output as a String.
217
217
  # @note This only works if the block's receiver is the current component or the block returns a String.
218
218
  # @return [String]
219
- def capture(&block)
219
+ def capture(*args, &block)
220
220
  return "" unless block
221
221
 
222
- @_context.capturing_into(+"") { yield_content(&block) }
222
+ if args.length > 0
223
+ @_context.capturing_into(+"") { yield_content_with_args(*args, &block) }
224
+ else
225
+ @_context.capturing_into(+"") { yield_content(&block) }
226
+ end
223
227
  end
224
228
 
225
229
  private
data/lib/phlex/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Phlex
4
- VERSION = "1.10.2"
4
+ VERSION = "1.10.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.2
4
+ version: 1.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Drapper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-29 00:00:00.000000000 Z
11
+ date: 2024-06-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A high-performance view framework optimised for fun.
14
14
  email: