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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae91b70fed7b9edbe9f7c617a05a88ce362c9e8a108185e80ffbf5e1e27b519f
4
- data.tar.gz: 16277016b898e55e5fba68ff0163cc652e2505d4785a5e487800cd2ea1111fe5
3
+ metadata.gz: 004a290d411ebda45aec3d8c40f11d21764856160d2c9aa8d0cbe54a5afb4711
4
+ data.tar.gz: 92f20c654f1eeed681af939df5e6c5dea066de22725eefda0635ae2e9f6b90d9
5
5
  SHA512:
6
- metadata.gz: 9f9a3961d6f6170a700844fe41230251cc31e4df5735beada75a13df1126fa058fab550b6608c1becf900f8a7f823f344f646231bafb1dba3d4e6e664a5d9282
7
- data.tar.gz: a1a8e6e3bb03c9c609074cdd2dca2e254b88fe8c169858157d4cbb07fafaf1396f32d29a76a6edd136693f499de5da30939a92b5148467dc3fac1b9b654bd9b0
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", github: "phlex-ruby/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
- @_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.2"
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.2
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: 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: '1.9'
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: '1.9'
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.10
146
+ rubygems_version: 3.4.22
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: A Phlex adapter for Rails