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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +3 -1
- data/lib/phlex/rails/sgml/overrides.rb +2 -1
- data/lib/phlex/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4a2327429781bd723b011ea5fe05007feca4a608214ddd3c461cc2685cf8742
|
4
|
+
data.tar.gz: 856d741f12167f40769a271f2a61259f46773c95ab874bce7d169364f34e8d8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Drapper
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: phlex
|