phlex-rails 1.1.0 → 1.1.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: ae91b70fed7b9edbe9f7c617a05a88ce362c9e8a108185e80ffbf5e1e27b519f
4
- data.tar.gz: 16277016b898e55e5fba68ff0163cc652e2505d4785a5e487800cd2ea1111fe5
3
+ metadata.gz: c4a2327429781bd723b011ea5fe05007feca4a608214ddd3c461cc2685cf8742
4
+ data.tar.gz: 856d741f12167f40769a271f2a61259f46773c95ab874bce7d169364f34e8d8a
5
5
  SHA512:
6
- metadata.gz: 9f9a3961d6f6170a700844fe41230251cc31e4df5735beada75a13df1126fa058fab550b6608c1becf900f8a7f823f344f646231bafb1dba3d4e6e664a5d9282
7
- data.tar.gz: a1a8e6e3bb03c9c609074cdd2dca2e254b88fe8c169858157d4cbb07fafaf1396f32d29a76a6edd136693f499de5da30939a92b5148467dc3fac1b9b654bd9b0
6
+ metadata.gz: c38fba4634834613a6a72e9811361749f63d2d056c8b8b7cd6b8a08c04f2a04dda95146dc5ec013bcfac9453287402da583435a018fd3becf7e14deba29ccf5c
7
+ data.tar.gz: aeb62a44768d06817370f9a169807a7bf7e718f516a866fb017d90b10b9ad3942e51cdcbda3ae3f22b2397b7a925fb1b3507e1603737edf53ade9fbc75e16c1e
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
4
 
5
5
 
6
+ # [1.1.1] 2023-11-27
7
+
8
+ - Fixed a bug where Phlex would try to capture `nil` when rendered from ActionView without a block.
9
+
6
10
  ## [1.1.0] 2023-11-24
7
11
 
8
12
  - Dropped dependency on `rails` and now only depends on `railties`
data/Gemfile CHANGED
@@ -7,11 +7,13 @@ gemspec
7
7
 
8
8
  gem "phlex", github: "phlex-ruby/phlex"
9
9
  gem "phlex-testing-capybara", github: "phlex-ruby/phlex-testing-capybara"
10
- gem "rspec-rails"
11
10
  gem "combustion"
12
11
  gem "rubocop"
13
12
  gem "solargraph"
14
13
  gem "view_component"
15
14
  gem "appraisal", github: "excid3/appraisal", branch: "fix-bundle-env"
16
15
  gem "yard"
16
+
17
+ # Ensure rails is loaded before rspec-rails.
17
18
  gem "rails"
19
+ gem "rspec-rails"
@@ -23,7 +23,8 @@ module Phlex
23
23
  when Enumerable
24
24
  return super unless renderable.is_a?(ActiveRecord::Relation)
25
25
  else
26
- @_context.target << @_view_context.render(*args, **kwargs) { capture(&block) }
26
+ captured_block = -> { capture(&block) } if block
27
+ @_context.target << @_view_context.render(*args, **kwargs, &captured_block)
27
28
  end
28
29
 
29
30
  nil
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Phlex
4
4
  module Rails
5
- VERSION = "1.1.0"
5
+ VERSION = "1.1.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: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Drapper
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-24 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phlex