Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

appraise "rails-7.1" do
ruby "~> 3.2.0"
ruby "~> 3.2"

gem "rails", "~> 7.1.0"

Expand All @@ -12,7 +12,7 @@ appraise "rails-7.1" do
end

appraise "rails-7.2" do
ruby "~> 3.3.0"
ruby "~> 3.3"

gem "rails", "~> 7.2.0"

Expand All @@ -23,7 +23,7 @@ appraise "rails-7.2" do
end

appraise "rails-8.0" do
ruby "~> 3.4.0"
ruby "~> 3.4"

gem "rails", "~> 8.0.0"

Expand All @@ -34,7 +34,7 @@ appraise "rails-8.0" do
end

appraise "rails-8.1" do
ruby "~> 3.4.0"
ruby "~> 4.0"

gem "rails", "~> 8.1.0"

Expand All @@ -45,7 +45,7 @@ appraise "rails-8.1" do
end

appraise "rails-main" do
ruby "4.0.0.dev"
ruby "4.1.0.dev"

gem "rack", git: "https://github.com/rack/rack", ref: "8a4475a9f416a72e5b02bd7817e4a8ed684f29b0"
gem "rails", github: "rails/rails", branch: "main"
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
view_component (4.1.1)
view_component (4.2.0)
actionview (>= 7.1.0)
activesupport (>= 7.1.0)
concurrent-ruby (~> 1)
Expand Down Expand Up @@ -456,7 +456,7 @@ DEPENDENCIES
yard-activesupport-concern (< 1)

RUBY VERSION
ruby 3.3.0p0
ruby 3.4.7p58

BUNDLED WITH
2.6.2
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ nav_order: 6

## main

## 4.2.0

* Fix translation scope resolution in deeply nested component blocks (3+ levels). Translations called inside deeply nested slot blocks using `renders_many`/`renders_one` were incorrectly resolving to an intermediate component's scope instead of the partial's scope where the block was defined. The fix captures the virtual path at block definition time and restores it during block execution, ensuring translations always resolve relative to where the block was created regardless of nesting depth.

*Nathaniel Watts*
Expand Down
2 changes: 1 addition & 1 deletion docs/_data/library.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 4.1.1
version: 4.2.0
2 changes: 1 addition & 1 deletion gemfiles/rails_7.1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
view_component (4.1.1)
view_component (4.2.0)
actionview (>= 7.1.0)
activesupport (>= 7.1.0)
concurrent-ruby (~> 1)
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_7.2.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
view_component (4.1.1)
view_component (4.2.0)
actionview (>= 7.1.0)
activesupport (>= 7.1.0)
concurrent-ruby (~> 1)
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_8.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

ruby "~> 3.4.0"
ruby "~> 3.4"

gem "rails", "~> 8.0.0"

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_8.0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
view_component (4.1.1)
view_component (4.2.0)
actionview (>= 7.1.0)
activesupport (>= 7.1.0)
concurrent-ruby (~> 1)
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_8.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

ruby "~> 3.4.0"
ruby "~> 3.4"

gem "rails", "~> 8.1.0"

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_8.1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
view_component (4.1.1)
view_component (4.2.0)
actionview (>= 7.1.0)
activesupport (>= 7.1.0)
concurrent-ruby (~> 1)
Expand Down
4 changes: 2 additions & 2 deletions lib/view_component/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
module ViewComponent
module VERSION
MAJOR = 4
MINOR = 1
PATCH = 1
MINOR = 2
PATCH = 0
PRE = nil

STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")
Expand Down
Loading