phlex-rails 1.1.0 → 1.1.2
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 +4 -2
- data/lib/phlex/rails/sgml/overrides.rb +2 -1
- data/lib/phlex/rails/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 004a290d411ebda45aec3d8c40f11d21764856160d2c9aa8d0cbe54a5afb4711
|
4
|
+
data.tar.gz: 92f20c654f1eeed681af939df5e6c5dea066de22725eefda0635ae2e9f6b90d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b818ae41f6da813e4fc656060a9294a3eb9289c82ef095b9a64c56f3a9a7685c47053518ca1554830f239724f224e1c53a503263b58ef04354527bc8ddcdb26d
|
7
|
+
data.tar.gz: 50a14fe9baa23cf1be7d5af209dce14764700339138e642db5ebb8905f4e25d9ec50e28ebcc1151144900c622bb2c4b2cf713b9777b9dfd9d07ef48968b9b6e1
|
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
@@ -5,13 +5,15 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
5
5
|
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
gem "phlex"
|
8
|
+
gem "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.2
|
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:
|
11
|
+
date: 2024-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: phlex
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.9.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.9.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: railties
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
|
-
rubygems_version: 3.4.
|
146
|
+
rubygems_version: 3.4.22
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: A Phlex adapter for Rails
|