Sourced from view_component's releases.
v3.12.1
Ensure content is rendered correctly for forwarded slots.
Cameron Dutro
v3.12.0
Remove offline links from resources.
Paulo Henrique Meneses
Fix templates not being correctly populated when caller location label has a prefix.
On the upstream version of Ruby, method owners are now included in backtraces as prefixes. This caused the call stack filtering to not work as intended and thus
source_location
to be incorrect for child ViewComponents, consequently not populating templates correctly.Allan Pires, Jason Kim
Use component path for generating RSpec files.
When generating new RSpec files for components, the generator will use the
view_component_path
value in the config to decide where to put the new spec file. For instance, if theview_component_path
option has been changed toapp/views/components
, the generator will put the spec file inspec/views/components
. If theview_component_path
doesn't start withapp/
, then the generator will fall back tospec/components/
.This feature is enabled via the
config.view_component.generate.use_component_path_for_rspec_tests
option, defaulting tofalse
. The default will change totrue
in ViewComponent v4.William Mathewson
Sourced from view_component's changelog.
3.12.1
Ensure content is rendered correctly for forwarded slots.
Cameron Dutro
3.12.0
Remove offline links from resources.
Paulo Henrique Meneses
Fix templates not being correctly populated when caller location label has a prefix.
On the upstream version of Ruby, method owners are now included in backtraces as prefixes. This caused the call stack filtering to not work as intended and thus
source_location
to be incorrect for child ViewComponents, consequently not populating templates correctly.Allan Pires, Jason Kim
Use component path for generating RSpec files.
When generating new RSpec files for components, the generator will use the
view_component_path
value in the config to decide where to put the new spec file. For instance, if theview_component_path
option has been changed toapp/views/components
, the generator will put the spec file inspec/views/components
. If theview_component_path
doesn't start withapp/
, then the generator will fall back tospec/components/
.This feature is enabled via the
config.view_component.generate.use_component_path_for_rspec_tests
option, defaulting tofalse
. The default will change totrue
in ViewComponent v4.William Mathewson
7eac9a7
release 3.12.1 (#2018)719c28a
Ensure content is rendered correctly for forwarded slots (#2016)19df77c
release 3.12.0 (#2014)0f953d9
Remove offline links from resources.md (#2011)7ace5ee
Fix typo (#2010)f6dc5be
Update filter in source_location to use base_label (#2009)c33a422
Use component path for generating RSpec files (#2005)a8e9a01
Bump dependencies per dependabot (#2007)5ae3c12
update dependencies to resolve dependabot warnings (#2001)26f3b0f
Fix small grammatical funkiness on ComponentSlot documentation (#2000)