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