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_locationto 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_pathvalue in the config to decide where to put the new spec file. For instance, if theview_component_pathoption has been changed toapp/views/components, the generator will put the spec file inspec/views/components. If theview_component_pathdoesn'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_testsoption, defaulting tofalse. The default will change totruein ViewComponent v4.William Mathewson